# Casbin > Embeddable multi-language authorization library, now an Apache Incubator project Profile: https://idsync.com/directory/casbin Vendor site: https://casbin.apache.org/ [Observed, recorded 2026-09-27, source https://casbin.apache.org/] Primary category: Authorization (https://idsync.com/directory/category/authorization) Record last updated: 2026-09-28. Claim status: unclaimed. ## What it is Casbin is an open-source, in-process authorization library rather than a hosted service. Created by Yang Luo at Peking University in April 2017, it entered the Apache Software Foundation Incubator on 7 February 2026; the code and language ports now live under the apache/ GitHub organisation and casbin.org redirects to casbin.apache.org. Code is Apache 2.0 licensed. Casbin separates the access-control model from policy data: a model.conf file written in the PERM metamodel (Policy, Effect, Request, Matchers, plus an optional role_definition) declares how requests are matched, and a policy.csv or a storage adapter supplies the rules. One engine covers ACL, RBAC with role hierarchies and domains/tenants, ABAC via attribute expressions, RESTful path matching, deny-override and priority effects, plus BLP, Biba and UCON. Production-ready implementations exist for Go, Java, Node.js, PHP, Python, .NET, C++ and Rust, with experimental ports for Lua, Dart, Elixir and Delphi. Roughly 80 adapters (GORM, Xorm, MongoDB, Redis, DynamoDB, etcd, Firestore), watchers for multi-instance policy sync, a Raft-based dispatcher, an optional gRPC casbin-server, a Kubernetes admission webhook and dozens of web-framework middlewares surround the core. There is no commercial edition or paid tier; funding is via Open Collective donations, and Casbin does not handle authentication or user storage. Casdoor, a sibling IAM project from the same founder, is a separate product and was not part of the Apache donation. [Editorial, recorded 2026-09-28] ## Fit Best for: Backend teams that want to embed a fast, model-driven RBAC/ABAC engine directly inside their own services in Go, Java, Node.js, Python, .NET, PHP or Rust without running a separate authorization server. [Editorial, recorded 2026-09-28] When to choose: Choose Casbin when you want a permissively licensed, in-process authorization engine that speaks RBAC, RBAC-with-tenants and ABAC through one config format across several languages, and you are comfortable owning policy storage and distribution. [Editorial, recorded 2026-09-28] When not to choose: Avoid Casbin if you need a turnkey managed authorization service with UI, audit and SLA, or Google Zanzibar-style relationship graphs at very large scale, where OpenFGA, SpiceDB (AuthZed) or Permit.io are a closer fit. [Editorial, recorded 2026-09-28] Company size: startup; smb; mid_market; enterprise [Editorial, recorded 2026-09-28] Deployment: self_hosted [Observed, recorded 2026-09-27, source https://casbin.apache.org/docs/overview] Source model: open_source [Observed, recorded 2026-09-27, source https://casbin.apache.org/docs/overview] ## Strengths [Editorial, recorded 2026-09-28] - Apache 2.0 licence with Apache Software Foundation governance since February 2026 (Incubating), reducing single-vendor risk - Single PERM model.conf format shared across eight production-ready language ports (Go, Java, Node.js, PHP, Python, .NET, C++, Rust) - Broad model coverage in one engine: ACL, RBAC, RBAC with domains, ABAC, RESTful, deny-override, priority, BLP/Biba/LBAC, UCON - In-process evaluation with sub-millisecond latency for small policy sets in Go (published benchmarks: ACL ~0.015 ms/op, RBAC ~0.022 ms/op) - Roughly 80 storage adapters plus watchers for etcd, Redis, Kafka, NATS, RabbitMQ, PostgreSQL, ZooKeeper and cloud pub/sub - Named adopters include VMware Harbor, Argo CD, Intel RMD and the Docker authz plugin - Rich Management and RBAC APIs (AddPolicy, GetImplicitPermissionsForUser, EnforceEx with explanation) and an online model editor - Long-running project (2017) with a 20k+ star Go repository and active 2026 releases (3.11.0, August 2026) ## Limitations [Editorial, recorded 2026-09-28] - It is a library, not a platform: no bundled admin UI, audit log, policy versioning, or hosted control plane; you build or assemble those yourself - Multi-instance consistency depends on wiring adapters, watchers or a dispatcher correctly; the docs warn dispatchers only sync changes made after all nodes start identical - ABAC attributes can only be read from request elements, not policy elements, and JSON request parsing adds roughly 1.1-1.5x overhead - Large policy sets are evaluated in memory (published Go benchmark ~24 ms/op at 110,000 RBAC rules) and there is no native relationship-graph engine of the Zanzibar type - Apache Incubator status means governance and release processes are still maturing; feature parity and maintenance cadence vary across language ports, and there is no commercial support contract ## Pricing [Observed, recorded 2026-09-27, source https://casbin.apache.org/] Model: free (open source) Summary: Casbin is free under the Apache 2.0 licence with no paid edition, hosted tier or public price list. The project accepts voluntary donations via Open Collective (Backer USD 5/month, Sponsor USD 100/month, as published September 2026); these are contributions, not a commercial support contract. ## Integrations [Observed, recorded 2026-09-27, source https://casbin.apache.org/docs/overview] Go; Java; Node.js; Python; .NET; PHP; Rust; C++; gRPC; REST; Kubernetes; Kong; Apache APISIX; Traefik; Nginx; Kafka; Redis; etcd; Docker; PostgreSQL ## Alternatives - Open Policy Agent (OPA): https://idsync.com/directory/opa (compare: https://idsync.com/compare/casbin-vs-opa) - Oso: https://idsync.com/directory/oso (compare: https://idsync.com/compare/casbin-vs-oso) - Cerbos: https://idsync.com/directory/cerbos (compare: https://idsync.com/compare/casbin-vs-cerbos) - AuthZed (SpiceDB): https://idsync.com/directory/authzed (compare: https://idsync.com/compare/authzed-vs-casbin) - OpenFGA: https://idsync.com/directory/openfga (compare: https://idsync.com/compare/casbin-vs-openfga) ## How we sourced this Each fact above carries a label. Observed: read from the vendor's own pages on the date shown. Editorial: written or checked by the IDSync editor. AI-drafted: drafted by a model and not yet confirmed by a person. Owner-edited: changed by the verified vendor owner and reviewed. Dates are when the record was saved, never a verification date. Structured copy: https://idsync.com/directory/casbin/facts.json Cite as: IDSync. "Casbin: vendor profile." https://idsync.com/directory/casbin. Facts as recorded 2026-09-28. Casbin and its logo are trademarks of their respective owner. IDSync is an independent buyer resource and does not imply endorsement.