Leash Documentation
Everything you need to deploy apps and connect integrations.
New to Leash? Start with the Quickstart→
Get your code online in 60 seconds.
Ship something
Make it do more
Building with Leash
The tiered model — when to install the SDK and what each tier adds
Local dev
The canonical local-dev flow — SDK, API key, dev-auth handler
Integrations
Call third-party APIs without managing OAuth
User identity
Read the calling user server-side with leash.auth.user()
Dynamic env vars
Rotate keys without redeploys, audit every read
Reference
SDK API
Per-namespace surface reference for the Leash client
CLI
Installation, auth, commands, secrets
Custom OAuth
Bring your own OAuth client
Custom MCP
Register your own MCP endpoints
Error handling
LeashError codes and recovery patterns
API keys
Create, list, and revoke API keys
Plugins
Claude Code and Codex plugins
Troubleshooting
Common pitfalls
Glossary
One-line definitions for terms used across the docs