OpenLeash
Authorization guardrails for AI agents and organizations.
An open-source authorization layer where owners and organizations set policies, agents ask before acting, and counterparties can verify the agent was authorized.
Works as a sidecar for OpenClaw. Also works with any agent. Learn more
See the owner portal in action
Welcome! Install OpenLeash below and check out the docs to get started.
Hey, we built this for you. Read the agent integration guide — TL;DR: call POST /v1/authorize before doing anything risky.
› Quickstart
Installs the openleash CLI, local policy engine, audit logger, and proof-token signer. No cloud dependency — everything runs on your machine.
› Next steps
SDK usage
› How AI Agent Authorization Works
Alice's agent purchases headphones from StoreCo's agent. Both sides use OpenLeash to authorize actions and exchange cryptographic proofs.
- Authorization
- Alice → Alice's Agent"Buy headphones from StoreCo"
- Alice's Agent → OpenLeashauthorize(purchase, $85)
- OpenLeash → Alice's AgentALLOW + proof token
- Transaction
- Alice's Agent → StoreCo AgentPurchase request + proof
- StoreCo Agent → OpenLeashverify + authorize(sell)
- OpenLeash → StoreCo AgentALLOW + seller proof
- Confirmation
- StoreCo Agent → Alice's AgentConfirmed + seller proof
- Alice's Agent → AliceDone — proofs attached
Both agents independently authorize through OpenLeash. Cryptographic proof tokens flow with every request, creating a verifiable chain of authorization.
› AI Agent Authorization Use Cases
Purchases with limits
Set spending caps per agent, per vendor, or per time window. Agents cannot exceed policy limits without step-up approval.
Appointment booking
Differentiate trust levels: a haircut booking might auto-approve while a medical appointment requires human confirmation.
Government submissions
Regulated filings and submissions can require step-up authentication, producing auditable proof tokens for compliance.
Communication rules
Enforce allowlists and denylists for API calls, emails, or messages. Agents only reach approved endpoints.
› Features
Core Authorization
Define authorization rules in YAML. Expressions, constraints, obligations. No database, no cloud dependency.
Cryptographic tokens bound to specific actions. Verifiable by any counterparty without calling home.
Human-in-the-loop for high-risk actions. Agents request approval, owners approve or deny via the portal.
Agents propose policies for owner review. Owners approve, reject, or modify before activation.
Same input, same output. No probabilistic logic. Policies evaluate to predictable results.
Identity & Organizations
Create organizations, manage members, and assign roles. Role hierarchy: org_admin, org_member, org_viewer. System-level admin role for instance management.
Track identities with contact info, government IDs for 27 EU countries, and 11 company ID types with country-specific validation.
Organization member invites, agent registration invites, and setup invites. Time-limited with automatic expiry.
Track domain ownership per organization with verification levels. Link corporate domains to org identity.
Developer Experience
TypeScript, Python, and Go SDKs with 13 functions each. Authorize, sign requests, verify proofs, manage approvals and policy drafts.
Test policies against scenarios locally before deploying. See the evaluation trace step by step.
Transparent governance proxy for MCP tool calls. Works as a sidecar for OpenClaw and other MCP servers.
Official Docker images with multi-platform support. Run with Docker Compose or deploy to any container platform.
Extend OpenLeash with server plugins. Custom authentication, storage backends, identity verification providers, and notification channels.
Interactive API reference with Scalar UI. Full OpenAPI 3.0 spec for all endpoints — public, agent, owner, and admin.
Operations
Owner portal for agents, policies, approvals, and org management. Built-in dark and light themes.
Separate admin interface for system-wide management. Users, organizations, agents, policies, audit, and configuration.
Append-only JSONL log of every authorization and key event. Scope filtering by user, organization, or agent.
Real-time notifications for authorization events. Get alerts when agents request approval or policies trigger.
Invite-based onboarding with Ed25519 keys. Owners and orgs create invite URLs, agents self-register.
› Community
OpenLeash is open source under the Apache-2.0 license. We welcome contributions — whether that's reporting issues, improving docs, adding policy templates, or building integrations.