Back to directory

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

Sources

Last updated 2026-10-22.