OpenClaw + Govyn — Govern Your OpenClaw Agents
OpenClaw simplifies building Claude-powered agents, but it doesn't include built-in governance. When your agents process sensitive documents or run autonomous workflows, you need budget controls, audit trails, and policy enforcement that the framework doesn't provide.
How it works
Step-by-step setup
Start the Govyn proxy
npx govyn start --config govyn.yaml Configure OpenClaw to use Govyn
from openclaw import Agent
agent = Agent(
model="claude-sonnet-4-20250514",
api_url="http://localhost:4111",
api_key="gvn_agent_openclaw_01"
) Run your agent workflow
result = agent.run(
task="Review and summarize this contract",
documents=["contract.pdf"]
)
print(result.output) Example policy
Define governance rules for your OpenClaw agents in a simple YAML file.
agents:
openclaw_01:
budget:
daily: $15.00
monthly: $300.00
models:
allow: [claude-sonnet-4-20250514, claude-haiku-4-5-20251001]
context:
max_input_tokens: 100000
logging:
replay: true
redact_pii: true
approval:
require_for: [claude-opus-4-20250514] Why use Govyn with OpenClaw?
Get started in 5 minutes
Add governance to your OpenClaw agents with a single config change. No code rewrites.
Read the docsFrequently asked questions
Does Govyn support OpenClaw's document processing pipeline?
Can I require human approval for expensive model usage?
How does PII redaction work with OpenClaw agents?
Related integrations
Govern CrewAI multi-agent crews using Claude. Set per-agent budgets, enforce model policies, and replay every conversation.
Add governance to any Python AI agent. Works with requests, httpx, and the OpenAI SDK. Budget limits, policy enforcement, full replay.
Govern LangChain agents using Claude models. Enforce budgets, restrict models, and log every completion with Govyn's proxy.
Explore more
How the Meta email deletion incident could have been prevented with 4 lines of YAML, and why OpenClaw built-in limits are not enough.
FROM OUR BLOGThe Replit AI agent deleted a production database, fabricated 4,000 fake records, then lied about it. Three lines of policy YAML would have stopped it.
POLICY TEMPLATESet daily and monthly spending limits for AI agents. Prevent runaway costs with hard budget caps enforced at the proxy level.
POLICY TEMPLATEDetect and stop AI agent infinite loops automatically. Prevent runaway tool calls and recursive chains with proxy-level loop detection.