
Open Policy Agent
Open Policy Agent (OPA) is a free, open-source policy engine for separating policy decisions from the systems that enforce them.
What Open Policy Agent is
Open Policy Agent (OPA) is a free, open-source policy engine for separating policy decisions from the systems that enforce them. It evaluates policies against structured input and can return structured data, making it applicable to microservices, Kubernetes, CI/CD pipelines and API gateways. Policies are written in Rego, a declarative language designed for complex hierarchical data. Applications can request evaluations through a REST API, Go API, WebAssembly runtimes or custom evaluators using OPA's intermediate representation. Bundles distribute policy and data to OPA instances, while discovery bundles carry flexible configuration. Management interfaces support policy distribution, health and status checks, and decision logs. The project lists integrations for Kubernetes, Terraform, Envoy and code editors, and recommends OPA Gatekeeper for Kubernetes admission control. Installation documentation covers macOS, Linux/Unix, Windows and Docker. OPA is a graduated Cloud Native Computing Foundation project. Its security guidance says authentication and authorization are off by default and recommends configuring TLS, authentication and authorization when securing the API.
Good
- Separates policy decisions from enforcement.
- Supports REST, Go API and WebAssembly evaluation.
- Bundles distribute policy and data.
- Integrates with Kubernetes, Terraform and Envoy.
- Free and open source under Apache License 2.0.
Watch out
- API authentication and authorization are off by default.
- Policies use the Rego language.
Who it suits
OPA suits teams that need policy decisions across services, Kubernetes, CI/CD pipelines or API gateways, and can work with Rego and its evaluation interfaces. Those exposing its API should account for the fact that authentication and authorization are off by default.
Verdict
OPA offers multiple ways to evaluate and distribute policies across software systems. Its API security settings need attention because authentication and authorization are disabled by default.
Plans and prices
From Open Policy Agent's own pricing page, checked 3 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| Open Policy Agent | Free | Open-source policy engine · Apache License, Version 2.0 |
The facts
Each one read from Open Policy Agent's own pages, with the date it was checked.
What it does
- API security
- OPA's security guidance describes TLS, authentication, and Rego-based authorization, and says authentication and authorization are off by default.checked 2 Oct 2026
- Binary checksums
- The installation guide says binary checksums are available by appending .sha256 to the binary filename.checked 2 Oct 2026
- Community support
- The official site links to an OPA Slack community for users to talk with other users and maintainers.checked 2 Oct 2026
- Decision input and output
- OPA evaluates policies against arbitrary structured input and can return arbitrary structured data as output.checked 3 Oct 2026
- Deployment
- The documentation describes installing OPA on macOS, Linux/Unix, and Windows, and running it with Docker.checked 3 Oct 2026
- Downloads
- The official installation guide provides options for macOS, Linux/Unix, Windows, and Docker.checked 2 Oct 2026
- Governance
- OPA is a graduated Cloud Native Computing Foundation project.checked 3 Oct 2026
- Integration options
- OPA supports policy evaluation through a REST API, a Go API, WebAssembly, and custom evaluators using its intermediate representation.checked 2 Oct 2026
- Integrations
- The project lists integrations for Kubernetes, Terraform, Envoy, and code editors.checked 3 Oct 2026
- Kubernetes
- The OPA documentation recommends OPA Gatekeeper for Kubernetes admission control.checked 2 Oct 2026
- Policy distribution
- OPA bundles distribute policy and data to OPA instances, while discovery bundles distribute flexible configuration.checked 3 Oct 2026
- Policy engine
- OPA is an open source, general-purpose policy engine that separates policy decision-making from policy enforcement.checked 2 Oct 2026
- Policy evaluation
- Policies can be evaluated through a REST API, the Go API, WebAssembly runtimes, or custom evaluators using OPA's intermediate representation.checked 3 Oct 2026
- Policy language
- OPA policies are written in Rego, a declarative language designed for expressing rules over complex hierarchical data.checked 3 Oct 2026
- Policy management
- OPA provides management interfaces for distributing policies, checking status and health, and collecting decision logs.checked 2 Oct 2026
- Project status
- OPA is a graduated Cloud Native Computing Foundation project.checked 2 Oct 2026
- Purpose
- OPA is an open-source, general-purpose policy engine that unifies policy enforcement across software systems.checked 3 Oct 2026
- Security configuration
- Authentication and authorization are off by default, and the security guide recommends configuring TLS, authentication, and authorization when securing the API.checked 3 Oct 2026
- Security reporting
- The project asks security reporters to email its security team and says it aims to acknowledge reports and keep reporters informed about remediation.checked 3 Oct 2026
- Support
- The project lists third-party companies offering commercial support and says the listings are not vetted endorsements.checked 3 Oct 2026
- Use cases
- OPA can enforce policies in microservices, Kubernetes, CI/CD pipelines, and API gateways.checked 3 Oct 2026
The full review of Open Policy Agent
Overview
Open Policy Agent (OPA) is an open-source engine for evaluating policies across software systems. It suits teams that need a shared policy layer across services and infrastructure; its flexibility is valuable, but securing its API takes deliberate configuration.
OPA separates policy decisions from the software that enforces them. Policies use Rego, a declarative language for rules over hierarchical data, and can evaluate structured input to produce structured output. That makes OPA a strong fit when different systems need to apply a common policy approach, rather than when a team needs only a narrowly scoped control.
OPA is a graduated Cloud Native Computing Foundation project, with integrations for Kubernetes, Terraform, Envoy, and code editors. Browse Infrastructure Policy as Code Tools for related options.
Key features
Flexible policy evaluation
Applications can evaluate policies through a REST API, Go API, WebAssembly runtimes, or custom evaluators using OPA's intermediate representation. Teams can choose an integration style that fits their systems, but OPA is an engine to integrate rather than a turnkey enforcement layer: the surrounding software still acts on policy decisions.
Its use cases include microservices, Kubernetes, CI/CD pipelines, and API gateways. OPA supports admission control, runtime enforcement, CI/CD integration, and policy testing. For Kubernetes admission control specifically, its documentation recommends OPA Gatekeeper, a useful distinction for teams planning a Kubernetes deployment.
Policy distribution and operations
OPA bundles distribute policy and data to instances; discovery bundles distribute flexible configuration. Management interfaces support distribution, status and health checks, and decision-log collection. These capabilities help teams operate policies across multiple instances, though they also make OPA a better fit for teams prepared to manage policy distribution and the systems around it.
Supported infrastructure-as-code formats include Terraform plan JSON, JSON, and YAML. The combination of broad input formats and multiple evaluation routes gives teams room to apply policy beyond one infrastructure tool.
Security and support
Authentication and authorization are off by default. Teams exposing the API should configure TLS, authentication, and Rego-based authorization; this is an important deployment responsibility, not a minor setup detail. Suspected security issues can be reported to the OPA security team by email. Users can also turn to the OPA Slack community to talk with other users and maintainers. Commercial support is offered by third-party companies, whose listings are not vetted endorsements.
Pricing
OPA is free and open source under the Apache License, Version 2.0. Its Open Policy Agent plan costs nothing and includes an open-source policy engine. There is no paid tier to weigh against it; the trade-off is that teams must integrate and operate the engine themselves, and any commercial support comes from third parties.
Platforms
OPA supports API, Linux, macOS, self-hosted, web, and Windows environments. Installation guidance covers macOS, Linux/Unix, Windows, and Docker, giving teams common options for local, server, or container deployment. Binary checksums are available by appending .sha256 to a binary filename, a practical verification step when downloading releases.
Who it's for
OPA is best for engineering and platform teams that want to centralize policy decisions across services, infrastructure, and delivery pipelines, and can work with Rego and manage integrations. It is less suitable for teams seeking a managed, ready-configured policy service or a narrow tool that handles one platform-specific task without broader policy integration.
Pros and cons
- Pros: Multiple evaluation options—REST, Go, WebAssembly, and custom evaluators—let teams connect policy to varied software systems.
- Pros: Policy and data bundles, health and status interfaces, and decision logs support coordinated operation across OPA instances.
- Pros: Free, Apache-licensed software avoids a product subscription and supports use across several listed infrastructure and application contexts.
- Cons: Rego and the integration work require engineering effort; OPA does not itself replace the systems that enforce its decisions.
- Cons: API authentication and authorization are disabled by default, so secure deployment requires explicit configuration.
Alternatives
Google Cloud Terraform Policy Validation is a free beta client-side tool for Linux, macOS, and Windows. Choose it when the need is specifically Terraform policy validation rather than a general-purpose engine spanning multiple systems.
Terraform has a free plan at no cost, capped at 500 managed resources, one concurrent remote run, and one concurrent agent run. Choose it when the priority is Terraform infrastructure management within those limits, rather than a general policy engine.
AWS CloudFormation is free for the service itself, while underlying AWS resources are billed at their own rates. It is the alternative to consider for AWS CloudFormation workflows rather than policy enforcement across unrelated systems.
Cloud Custodian is a free, open-source Apache 2.0 option. Conftest is also free and Apache 2.0 licensed. cfn-lint is free, MIT-0 licensed, and supports Python 3.10–3.14. KICS is a free open-source project, and Kyverno is a free open-source project under Apache 2.0. Consider these alternatives alongside OPA when comparing infrastructure policy tools.
Verdict
Choose OPA if your team needs a free, general-purpose policy engine that can connect decisions to multiple software systems and has the engineering capacity to integrate and secure it. Its breadth and flexible evaluation paths are the main reasons to choose it; look elsewhere if you need a managed service or want API security configured by default.
Getting started
- Open the OPA website
- Choose an installation for macOS, Linux/Unix, Windows, or Docker
- Install the OPA binary or run the Docker deployment
- Write policies in the Rego language
- Connect evaluations through REST, Go, WebAssembly, or a custom evaluator
- Configure TLS, authentication, and authorization when securing the API
Limits worth knowing
OPA is free and open source, with no paid usage tier described. API authentication and authorization must be configured because both are disabled by default.
Questions
Is Open Policy Agent free?
Yes. The listed Open Policy Agent plan costs nothing and is open source under the Apache License, Version 2.0.
Which platforms support OPA?
Platforms listed are API, Linux, macOS, self-hosted, web, and Windows. Installation guidance also covers Docker.
What language does OPA use for policies?
OPA policies use Rego, a declarative language designed for complex hierarchical data.
How can applications evaluate OPA policies?
They can use the REST API, Go API, WebAssembly runtimes, or custom evaluators based on OPA’s intermediate representation.
Does OPA support Kubernetes admission control?
Yes. OPA supports admission control, and its documentation recommends OPA Gatekeeper for Kubernetes admission control.
What integrations are listed for OPA?
The project lists integrations for Kubernetes, Terraform, Envoy, and code editors.
Alternatives to Open Policy Agent
- 1

Terraform
Free planWebAPILinuxmacOS8.0Free plan - 2

AWS CloudFormation
Free planiOSWebAPILinux7.7Free plan - 3
Kyverno
Free planOpen sourceWebAPILinuxmacOS7.7Free plan - 4

Open Policy Agent Gatekeeper
Free planOpen sourceAPILinuxSelf-hosted7.2Free plan - 5

Fairwinds Polaris
Free planWebLinuxmacOSSelf-hosted7.1Free plan - 6
Google Cloud Organization Policy
Free planWebAPILinuxmacOS7.1Free plan
