Casbin Review, Pricing & Features

Casbin is an open-source access control library supporting ACL, RBAC, and ABAC models across Go, Python, Java, Node.js, and other languages. Free to use.

Category
Security
Pricing
Free/Open-source, from Free
Verified
Not yet
Last updated
July 18, 2026
Founded
2017
APIOpen SourceSelf-Hosted

Overview

Casbin is an open-source authorization library created in 2017 by Yang Luo, then a student at Peking University, and now developed as an incubating project under the Apache Software Foundation. It is distributed free under the Apache 2.0 license and is embedded directly into applications as a code library rather than run as a hosted service.

Its core abstraction, the PERM metamodel, lets developers define an access control model in a configuration file and switch between paradigms like ACL, RBAC, and ABAC without rewriting application logic.

Key Features

Casbin separates the access control model from the policy data, which can be stored in files, SQL/NoSQL databases, or custom adapters and updated at runtime via API calls. Its runtime API supports permission checks, role queries, and dynamic policy management.

The library is available across many languages — Go (core), Python, Java, Node.js, .NET, Rust, Ruby, C/C++, and PHP — all maintained under the Apache organization on GitHub, letting teams apply a consistent authorization model across polyglot codebases.

Pricing

Casbin is completely free and open-source under the Apache 2.0 license, with no commercial tiers, subscriptions, or paid support contracts offered by the project itself.

Teams that need a full identity and access management product with a management UI typically pair Casbin with a companion open-source project such as Casdoor, which uses Casbin as its underlying authorization engine.

Key Features

Pros & Cons

Pros

  • Framework- and language-agnostic authorization model usable across polyglot codebases
  • Mature and widely adopted in production, with 20,000+ GitHub stars on the core repository
  • Flexible enough to model ACL, RBAC, and ABAC without rewriting application logic
  • Backed by Apache Software Foundation incubation for open governance
  • Free and open source with no licensing cost

Cons

  • Requires developers to learn its model/policy configuration syntax
  • No built-in user interface or hosted service on its own
  • Documentation depth varies somewhat across the different language SDKs
  • Fully self-managed, with no vendor support contract available

Frequently Asked Questions

Is Casbin free to use?

Yes, Casbin is fully open-source under the Apache 2.0 license and free to use in commercial and non-commercial projects.

What access control models does Casbin support?

Casbin supports Access Control Lists (ACL), Role-Based Access Control (RBAC), Attribute-Based Access Control (ABAC), and hybrid models such as RBAC with domains, all defined through its PERM metamodel.

Which programming languages does Casbin support?

Casbin's core is written in Go, with actively maintained ports for Python, Java, Node.js/JavaScript, .NET/C#, Rust, Ruby, C/C++, and PHP.

Who created Casbin?

Casbin was created in 2017 by Yang Luo while at Peking University, and is now developed as an incubating project under the Apache Software Foundation.

Does Casbin include a user interface?

No, Casbin is a library, not a hosted product with a UI. Projects that need a management interface typically pair it with a companion tool like Casdoor.

Related Tools