EvalRegoBETA
Create conditions. Evaluate decisions.

OPA playground Rego v1

Write, test and debug Open Policy Agent rules in Rego.

policy.rego
Rego
13 lines · Ctrl+Space for suggestionsUTF-8 Rego v1
mock_input.json
mock_data.json

An OPA playground for writing and testing Rego policies

EvalRego helps you develop policies for Open Policy Agent (OPA). Write Rego v1, supply JSON input and data, and evaluate a decision to see whether your policy behaves as expected. Start with the free editor, guided rule builder and test scenarios without creating an account.

Test access rules with realistic inputs

Explore role-based access control (RBAC) and attribute-based access control (ABAC). Try an administrator who can deploy, an employee who needs a premium licence, or a manager with different permissions. Change the input and compare the results.

Debug why a Rego policy returns false

Use the execution trace to inspect evaluated rules and jump to the relevant policy line. Check syntax diagnostics and decision output, then run multiple scenarios with expected results. Export an OPA test suite for your own pipeline.

Keep policy changes together with Pro

EvalRego Pro adds saved workspaces, policy snapshots, version comparisons and regression reports. Build multiple named decisions and test exact JSON outputs. Optional AI assistance uses your own provider API key.