# Apache Casbin

Go library for access control that enforces ACL, RBAC and ABAC models defined in a configuration file.


Source: https://findsoftware.frbit.cloud/casbin/
Last reviewed: 2026-11-04
Listed since: 2026-11-04

## Record

### Links

- home: https://casbin.apache.org/
- repository: https://github.com/apache/casbin
- docs: https://casbin.apache.org/docs/overview
- x: https://twitter.com/casbinHQ
- discord: https://discord.gg/S5UjpzGZjN
- forum: https://groups.google.com/g/casbin

### Identity

- status: active
- maintainer: The Apache Software Foundation
- maintainerType: foundation
- parent: unknown
- firstRelease: 2017
- hqCountry: unknown

### Kind

- category: auth
- hosting: binary
- language: go
- runtime: binary
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: mysql, postgres, oracle, mongodb
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: go get

### License

- licenseModel: open-source
- license: Apache-2.0

### Releases

- currentMajor: 3
- latestReleaseDate: 2026-08-20

### Adoption

- githubStargazers: 20477
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 156
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 2
- dependentPackages: 3

### Sources

- urls: https://casbin.apache.org/ (read 2026-11-04)
- urls: https://api.github.com/repos/apache/casbin (read 2026-11-04)
- urls: https://casbin.apache.org/docs/overview (read 2026-11-04)
- maintainer: https://raw.githubusercontent.com/apache/casbin/master/NOTICE (read 2026-11-04)
- language: https://api.github.com/repos/apache/casbin (read 2026-11-04)
- category: https://raw.githubusercontent.com/apache/casbin/master/README.md (read 2026-11-04)
- runtime: https://raw.githubusercontent.com/apache/casbin/master/README.md (read 2026-11-04)
- installMethod: https://casbin.apache.org/docs/get-started (read 2026-11-04)
- license: https://api.github.com/repos/apache/casbin (read 2026-11-04)
- licenseModel: https://raw.githubusercontent.com/apache/casbin/master/LICENSE (read 2026-11-04)
- firstRelease: https://api.github.com/repos/apache/casbin/releases (read 2026-11-04)
- currentMajor: https://api.github.com/repos/apache/casbin/releases (read 2026-11-04)
- latestReleaseDate: https://api.github.com/repos/apache/casbin/releases (read 2026-11-04)
- githubStargazers: https://api.github.com/repos/apache/casbin (read 2026-11-04)
- contributors: https://api.github.com/repos/apache/casbin/contributors?per_page=1 (read 2026-11-04)
- databases: https://casbin.apache.org/ (read 2026-11-04)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fcasbin%2Fcasbin%2Fv3 (read 2026-11-04)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fcasbin%2Fcasbin%2Fv3 (read 2026-11-04)

## Notes

Apache Casbin is an access control library for Go. An application loads an access model and a policy, then asks the library whether a request is allowed. The model and policy cover the ACL, RBAC and ABAC models, and the library is installed as a Go module.

The homepage names MySQL, Postgres, Oracle and MongoDB among the storage backends. Ports in other languages, such as node-casbin and PyCasbin, are separate projects under the same name. The project is an incubating project of the Apache Software Foundation.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
