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.

Researched and fact-checked by Bartu Cavusoglu · Updated July 18, 2026

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.

Comparisons

Compare security tools side by side →

Related Tools

More Security tools

All Security tools

Recently updated tools

Tool pages we refreshed lately, from across the directory.

  • WePicked Updated Nov 29, 2026
    AI · Gather favourite things, passions and little clues from friends, family or colleagues. WePicked turns them into a…
  • StoryCV Updated Oct 26, 2026
    AI Writing · StoryCV is an AI resume writer that interviews users about their work and turns their answers into concise,…
  • Frisbii Updated Nov 30, 2026
    Invoicing · Frisbii is a European subscription billing and recurring-revenue platform that combines invoicing, dunning, and an…
  • Paritok Updated Nov 29, 2026
    AI Coding · Paritok drops in between your coding agent and the LLM, non-destructively compressing tools, files, and history on…
  • Wellfound Updated Oct 26, 2026
    Recruitment · Wellfound is a talent marketplace and AI recruiting platform for startups. It offers free job posts, self-serve AI…
  • Revliu Updated Oct 26, 2026
    Analytics · Revliu is a revenue attribution and conversion tracking platform that connects campaigns, tracked links and content…
  • LessFlux Updated Nov 30, 2026
    Media & Audio/Video Tools · Optimize images and videos with external processing, WebP and AVIF conversion, compression, and global CDN delivery.…
  • PXZ.AI Updated Oct 26, 2026
    AI Image Generation · PXZ.AI is an all-in-one AI platform for generating images and videos, applying effects, and editing media from one…
  • DemoKraft AI Updated Oct 26, 2026
    AI Video Generation · DemoKraft AI is a product and solution content platform for creating videos, guides and GIFs from screen recordings,…
  • Clayzo Updated Nov 29, 2026
    Developer Tools · An animation engine built for coding agents. Ask Claude Code, Codex or Cursor for motion graphics, product animations…