Python SDK, REST API, CLI, and 7+ framework adapters. Zero-config decorators. Type-safe clients. Local dev mode.
Pick your integration method. All roads lead to governed agents.
from governor import governed
@governed(agent_id="finance-agent-v1")
def run_agent(input, __gov_ctx__=None):
# Every tool call goes through GovernorAI
result = __gov_ctx__.execute(
"erp.process_payment",
{"amount": 100, "currency": "USD"}
)
return result curl -X POST http://localhost:8080/api/v1/gateway/execute \
-H "Content-Type: application/json" \
-d '{
"agent_id": "finance-agent-v1",
"session_id": "sess-123",
"tool": "erp.process_payment",
"args": {"amount": 100, "currency": "USD"}
}' # Install the CLI
pip install governor-cli
# Validate a policy locally
governor validate policy.yaml
# Test a policy against mock actions
governor test policy.yaml --mock actions.json
# Deploy a policy to your gateway
governor deploy policy.yaml --env production Drop-in governance for every major agent framework.
Tool callback wrapper
Task-level governance
Action group interceptor
Function call governance
Agent toolkit integration
Unity Catalog bridge
Sidecar & admission control
Query engine governance
Everything you need to integrate, test, and deploy governed agents.
Fully typed Python client with auto-generated models. IDE autocomplete for every API call.
Automatic session lifecycle. Context injection. Step tracking. Cost attribution per session.
Zero-config context injection via decorators. Every tool call automatically routed through GovernorAI.
Test policies locally before deploying. Mock actions, validate rules, catch misconfigurations early.
Run GovernorAI locally with Docker Compose. Full governance stack on your laptop in 30 seconds.
Policy validation in your pipeline. Block deployments with untested or invalid policies.
Validate and test governance policies before they reach production. Catch misconfigurations in CI, not in production.
# Validate policy syntax
governor validate policy.yaml
✓ Schema valid
✓ OPA rules compiled
✓ No conflicting rules detected
# Run test suite against policy
governor test policy.yaml --mock actions.json
Running 12 test cases...
✓ allow: erp.read_account (2ms)
✓ allow: email.send (1ms)
✓ deny: shell.exec (1ms)
✓ require_approval: erp.process_payment > $5000 (3ms)
12/12 passed Validate, test, deploy, and rollback policies from the terminal. Scriptable for CI/CD pipelines.
Syntax highlighting, linting, and inline validation for GovernorAI policy files. YAML + Rego support.
Real-time event notifications for approvals, kill switches, anomalies, and policy violations. Integrate with Slack, PagerDuty, or custom endpoints.
Get early access to the GovernorAI SDK and start governing your agents in minutes.