Online Editor
The online editor lets you write and test Casbin models and policies in the browser, with syntax highlighting and completion.
Features
AI assistance
Get suggestions and help while editing models and policies.

Engine selection
Run enforcement with Go, Java, Node.js, Python, Rust, or .NET.

Multiple engines
Switch implementations to check behavior across languages.

Custom endpoint
Point the editor at your own Casbin service for live testing.

File upload
Import existing model and policy files to start working immediately.

Use Custom Functions
Add custom matching functions (for example, "RBAC with Patterns") by clicking the "Add Role Matching" button in the bottom left corner.
.
To implement custom matching functions in your code, configure them through the Casbin API. See RBAC with Pattern for details.
The editor supports Node-Casbin (Node.js), JCasbin (Java), Casbin (Go), Casbin-rs (Rust), PyCasbin (Python), and Casbin.NET (C#). Switch between implementations in the upper right corner to test your configuration.
The editor validates models through a remote CLI. Results may vary slightly from your local environment due to implementation differences. Report any issues to the appropriate Casbin implementation repository.