Developer Experience

Governance in 3 Lines of Code

Python SDK, REST API, CLI, and 7+ framework adapters. Zero-config decorators. Type-safe clients. Local dev mode.

Quick Start

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

Framework Adapters

Drop-in governance for every major agent framework.

LC

LangChain

Tool callback wrapper

CA

CrewAI

Task-level governance

BR

Bedrock Agents

Action group interceptor

AZ

Azure AI Agents

Function call governance

GC

GCP ADK

Agent toolkit integration

DB

Databricks

Unity Catalog bridge

K8

Kubernetes

Sidecar & admission control

LI

LlamaIndex

Query engine governance

SDK Features

Everything you need to integrate, test, and deploy governed agents.

Type-Safe Clients

Fully typed Python client with auto-generated models. IDE autocomplete for every API call.

Session Management

Automatic session lifecycle. Context injection. Step tracking. Cost attribution per session.

Governance Context

Zero-config context injection via decorators. Every tool call automatically routed through GovernorAI.

Policy Testing

Test policies locally before deploying. Mock actions, validate rules, catch misconfigurations early.

Local Dev Mode

Run GovernorAI locally with Docker Compose. Full governance stack on your laptop in 30 seconds.

CI/CD Integration

Policy validation in your pipeline. Block deployments with untested or invalid policies.

CI/CD

Policy Testing Pipeline

Validate and test governance policies before they reach production. Catch misconfigurations in CI, not in production.

  • Local policy validation
  • Mock action testing
  • OPA/Rego syntax checking
  • GitHub Actions / GitLab CI support
Bash
# 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

Developer Tools

CLI

Validate, test, deploy, and rollback policies from the terminal. Scriptable for CI/CD pipelines.

VS Code Extension

Syntax highlighting, linting, and inline validation for GovernorAI policy files. YAML + Rego support.

Webhooks

Real-time event notifications for approvals, kill switches, anomalies, and policy violations. Integrate with Slack, PagerDuty, or custom endpoints.

Start Integrating

Get early access to the GovernorAI SDK and start governing your agents in minutes.