Security & Privacy · Identity & Access Management (IAM)
Cerbos
Policy-based authorization for applications, services, and AI agents
Cerbos is an open-source authorization layer with a stateless Policy Decision Point that evaluates context-aware YAML policies for applications, gateways, workloads, services, and AI agents. It exposes HTTP and gRPC APIs, runs in customer infrastructure, and supports Git, disk, cloud, and database policy storage. Cerbos Hub adds hosted authoring, testing, distribution, and audit management from $25 per month.
Key facts
- License
- Apache-2.0
- Main language
- Go
- Maintainer
- Cerbos Ltd
- First released
- 2021
- Latest release
- v0.56.0, September 30, 2026
- GitHub stars
- 4,626, October 2026
- Hosted option
- Cerbos Hub from $25/month
What Cerbos is
Cerbos is an open-core authorization management platform founded in 2021 by Emre Baran, Alex Olivier, and Charith Ellawala. The repository was created on March 21, 2021, lists Apache License 2.0, and had 4,626 stars in the October 2026 . Cerbos describes authorization for identities, applications, gateways, workloads, services, and AI agents. Its company page says the product runs at thousands of companies and processes more than 2 billion authorization decisions monthly. The team is headquartered in London and fully remote. Cerbos separates the open-source Policy Decision Point from management, enrichment, and enforcement components, allowing teams to begin with a locally operated authorization service before adopting broader platform capabilities.
How it works
A Cerbos workflow defines principals, resources, actions, roles, attributes, conditions, and derived roles in structured YAML policies. Teams can store those policies in Git, validate updates through CI, and distribute them to one or more stateless Policy Decision Points. Applications submit CheckResources or PlanResources requests through HTTP or gRPC APIs, either directly or through supported language SDKs. The PDP evaluates request context and returns access decisions with policy metadata, while audit information supports review, troubleshooting, operational analysis, and compliance activities. Cerbos Hub provides collaborative authoring, testing, versioning, compilation, distribution, managed CI/CD, embedded policy bundles, and audit visibility. Cerbos Synapse can retrieve identity, resource, and relationship data from external systems before evaluation, allowing policies to use enriched context without placing authorization logic inside application code.
Architecture and recent releases
Cerbos is primarily implemented in Go and provides a stateless Policy Decision Point designed for horizontal scaling across services, sidecars, Kubernetes workloads, systemd services, and AWS Lambda functions. Its HTTP and gRPC APIs accept CheckResources or PlanResources requests, while the engine evaluates principals, resources, actions, attributes, conditions, derived roles, and other request context through structured YAML policies. Documentation describes decision times below 1 millisecond. Policies can come from Git, disk, S3, Google Cloud Storage, S3-compatible storage, SQLite, MySQL, PostgreSQL, or Cerbos Hub. Version 0.56.0, released September 30, 2026, included fixes for policy precedence, role evaluation, audit ingestion, storage behavior, dependencies, and operational errors. This separation supports local enforcement without requiring the Hub control plane.
License and pricing
The Cerbos repository and open-source PDP use Apache License 2.0, supporting commercial use, modification, redistribution, and proprietary integration subject to the license terms. The open-source tier includes distributed PDPs, YAML policy definition, audit logs, CI/CD and IDE tooling, community support, and Git, disk, cloud, or database storage. Cerbos Hub is the commercial control plane. Its Proof of Concept tier costs $0 monthly for up to 100 monthly active principals, Development starts at $25 monthly with 100 included, and Production starts at $933 monthly with 5,000 included. Enterprise plans are custom and include options such as self-hosted Hub, SSO, retention, training, and support.
Limitations and how it compares
Cerbos places authorization outside application code, so teams can change permissions through policy updates instead of application releases and can introduce adoption incrementally. The documented rollout starts with one service, permissive policies, decision logging, comparison against existing authorization, and enforcement after validation. This approach requires policy ownership, identity integration, deployment operations, and audit review. Cerbos fits teams seeking YAML policy-as-code, contextual rules, a stateless Go PDP, local enforcement, and multiple storage choices. Open Policy Agent, OpenFGA, Casbin, and Oso are alternatives with different policy or relationship models. Cerbos is most aligned with centralized decisions while keeping PDP execution in customer infrastructure.
Main features
- Context-aware policies. Evaluate principals, resources, actions, attributes, conditions, and request context through structured YAML policies.
- Stateless policy engine. Run horizontally scalable Policy Decision Points as services, sidecars, Kubernetes workloads, systemd services, or Lambda functions.
- Authorization APIs. Submit CheckResources and PlanResources requests through HTTP or gRPC APIs and supported language SDKs.
- Policy storage. Store policies in Git, disk, S3, Google Cloud Storage, S3-compatible storage, SQLite, MySQL, PostgreSQL, or Hub.
- Policy management. Use Cerbos Hub for collaborative authoring, testing, versioning, compilation, distribution, CI/CD, and audit visibility.
- External enrichment. Use Cerbos Synapse to retrieve identity, resource, and relationship data before policy evaluation.
- Audit trails. Collect authorization decision information for review, troubleshooting, operational analysis, and compliance activities.
Self-hosting Cerbos
Cerbos can run as a binary, container, Kubernetes service or sidecar, systemd service, or AWS Lambda function. The stateless PDP supports disk, Git, S3, Google Cloud Storage, S3-compatible storage, SQLite, MySQL, PostgreSQL, and other documented drivers. Git is the preferred policy storage method. Database deployments require schema preparation and cache planning across multiple PDP instances, including reload requests or cache duration settings after changes. Teams can operate Cerbos in cloud, on-premises, or air-gapped environments. Cerbos Hub remains optional, and its Hub storage driver requires an account.
Strengths
- Apache License 2.0 supports commercial self-hosting subject to its terms.
- Stateless PDPs support service, sidecar, Kubernetes, and serverless deployments.
- YAML policies separate authorization changes from application code releases.
- Multiple storage drivers support varied deployment and policy-management models.
Drawbacks
- Teams must provide identity and authentication components separately.
- Cerbos Hub features add a commercial hosted management layer.
- Policy modeling and operations require dedicated authorization ownership.
What teams replace with it
Teams usually evaluate Cerbos when they want to move off Auth0 Fine-Grained Authorization, AWS Verified Permissions, Permit.io.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to Cerbos
- Open Policy Agent
- OpenFGA
- Casbin
- Oso
Frequently asked questions
Is Cerbos free?
The Cerbos PDP is free and licensed under Apache License 2.0, including for commercial self-hosting subject to the license terms. Cerbos Hub has a $0 Proof of Concept tier for up to 100 monthly active principals. Hub Development starts at $25 per month, while Production starts at $933 per month with 5,000 included.
Can companies use Cerbos commercially?
Yes. The repository and PDP use Apache License 2.0, which permits commercial use, modification, and redistribution subject to its terms. Cerbos Hub is a separate commercial service. Enterprise options include custom pricing, self-hosted Hub, SSO support, custom audit retention, training, and enterprise support.
How do I self-host Cerbos?
Deploy the PDP as a binary, container, Kubernetes service or sidecar, systemd service, or AWS Lambda function. Supply policies from Git, disk, object storage, or supported databases. The PDP is stateless. Multi-instance database deployments require cache expiration or reload planning so policy changes reach every instance.
How does Cerbos compare with OpenFGA?
Cerbos uses YAML policies with principals, resources, actions, contextual conditions, derived roles, and a Policy Decision Point. The Cerbos identify OpenFGA as an alternative but do not document its implementation details. Cerbos therefore fits the documented policy format and deployment model described here.
Does Cerbos keep authorization data in its cloud?
The PDP runs in the customer’s environment, including cloud, on-premises, or air-gapped infrastructure. Cerbos Hub runs in the cloud and manages PDPs that continue running in customer environments. Teams can therefore keep enforcement local while choosing whether to use hosted policy management, distribution, audit visibility, and enrichment features.
Similar projects to compare
- AuthentikMIT (core), mixed repository; enterprise code under separate enterprise licenseAuthentik is an open-source identity provider for teams needing OIDC, OAuth2, SAML, LDAP, RADIUS, SCIM, and proxy access in one self-hosted service. Its core is MIT licensed, while enterprise code is separately licensed. There is no general hosted cloud product advertised, and enterprise pricing starts at $0.02 per external user monthly when billed annually.
- AuthgearApache-2.0Authgear is an Apache-2.0 open-source authentication and user-management platform maintained by Skymakers Digital Ltd. It supports self-hosting and Authgear Cloud, with a Free plan priced at $0 monthly. Documented capabilities include passwordless login, passkeys, MFA, social and enterprise login, SSO, user management, APIs, customizable interfaces, user import, and export.
- Better AuthMITBetter Auth is an MIT licensed, framework agnostic authentication and authorization framework for TypeScript. It embeds authentication in an application backend, supports application managed databases and stateless sessions, and offers email, password, social sign on, passkeys, magic links, usernames, and extensible plugins. Better Auth joined Vercel on July 7, 2026, while its open source framework remains framework and platform agnostic.
- HankoAGPL-3.0 for backend; MIT for Hanko Elements and hanko-frontend-sdkHanko is an open-source authentication and user-management system built around an API. It supports passwords, passkeys, passcodes, MFA, social login, SAML SSO, sessions, webhooks, and customizable web components. The backend is AGPL-3.0, while Hanko Elements and the frontend SDK are MIT licensed. Hanko is available for self-hosting or Hanko Cloud, whose free plan includes 10,000 monthly active users.
- HexclavePackage-specific: client code and examples generally MIT; server components generally AGPL-3.0; enterprise licenses availableHexclave is an open-source platform for authentication, teams, RBAC, payments, email, analytics, webhooks, API keys, launch checks, and secure data vaults. Its applications share one user model and can be used with a chosen frontend, backend, and database. The project supports hosted cloud access, data export, and self-hosting. Package licenses generally separate MIT client code from AGPL-3.0 server components.
- JumpServerGPL-3.0JumpServer is an open-source privileged access management platform for DevOps and IT teams. It provides a unified workspace for SSH, RDP, Kubernetes, databases, websites, RemoteApp, VirtualApp, VNC, and Telnet access, with authentication, authorization, session recording, and audit functions. The core repository uses GPL-3.0. Community Edition is free for production use up to 5,000 assets, while Enterprise Edition adds commercial features, deployment options, and support for larger environments.