GovernanceforAIagents.Onelineofcode.
Register every agent, scope what it can touch, watch what it does in real time, and kill it mid-run when it goes sideways.
See it in action
Watch Leash govern an agent through three real scenarios — a clean run, an approval gate, and a kill switch.
Your AI agents have admin access and nobody's watching.
Every AI agent you deploy acts as a super-admin by default. It has the same access as the service account it runs on — and most of those accounts have far more permissions than any agent needs.
80% of organizations have already experienced unintended agent behavior. Agents that read files they shouldn't, call APIs outside their scope, or make decisions no human approved.
Existing identity tools were built for humans who log in once a day. They weren't designed for agents that make 5,000 API calls a minute, spawn sub-agents, and operate autonomously around the clock.
Everything you need to govern your AI agents
From registration to revocation, Leash gives you complete visibility and control over every agent in your stack.
Agent registry
Every agent gets an ID, a human owner, and declared scopes. One SDK call to register, no IT ticket required.
Scoped permissions
Least-privilege access enforced on every tool call. Agents only touch what you explicitly allow.
Live audit log
Every action, every decision, every risk score — searchable, exportable, and ready for your next compliance review.
Anomaly detection
Rule-based plus LLM-powered risk scoring flags suspicious action sequences before they cause damage.
Human approval flow
Pause high-risk actions automatically. Approvers get pinged on Slack, SMS, or email. One tap to allow or deny.
Kill switch
Revoke an agent mid-execution. JWT invalidated, sessions terminated, pending actions cancelled in under five seconds.
Three lines of code. Complete control.
Register your agent
Give it an ID, assign a human owner, and declare exactly what it's allowed to touch.
Wrap your runtime
One function call wraps your existing agent. No refactoring, no migration.
Watch the dashboard
Every action streams to your audit log in real time. Set alerts, require approvals, or pull the kill switch.
1import { Leash } from "@leash-ai/sdk"23const leash = new Leash({ apiKey: process.env.LEASH_KEY })45// 1. Register the agent6const agent = await leash.agents.register({7 name: "refactor-bot",8 owner: "eng-team@acme.com",9 scopes: ["repo:read", "repo:write", "ci:trigger"],10})1112// 2. Wrap your runtime13const session = await leash.sessions.start({14 agentId: agent.id,15 ttl: "1h",16 approvalPolicy: "auto",17})1819// 3. Every action is now logged20await session.action("file.read", {21 path: "/src/index.ts",22})Get early access.
Founding customers get six months free and a direct line to the roadmap. Put your agents on a leash before they put you on notice.