Leash CLI — Development skill for Claude Code
The circuit breaker for coding agents.
How to install Leash CLI
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open shalevamin/leash-cli and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Leash CLI does
The circuit breaker for coding agents. Leash CLI, hooks and local mode for Claude Code, Codex and Cursor.
Alternatives in Development
- Coding Agent Session Search — Unified TUI and CLI to index and search your local coding agent session history across 11+ providers (Codex, C 708 ★
- Skill Manager — Manage skills across Codex CLI, Claude Code, Cursor, OpenCode, and OpenClaw from one local app 117 ★
- FlowBoard — Local-first project management and persistent context for OpenClaw, Claude Code, Codex, Cursor, and multi-agen 94 ★
README

**[useleash.dev](https://useleash.dev)** · [Try the demo](https://useleash.dev/demo) · Install: `npm i -g useleash`
[](https://www.npmjs.com/package/useleash) [](LICENSE) [](https://github.com/shalevamin/leash-cli/actions/workflows/ci.yml)
Leash is a circuit breaker for coding agents: Claude Code, Codex and Cursor. It tracks usage metadata, checks budgets and blocks the next prompt or tool call when the workspace is stopped.
Install
Requires Node.js 22.13 or later. Node 24 is recommended.
npm i -g useleash
leash --version
leash login
leash hooks install claude # or codex, cursor
The npm package is [`useleash`](https://www.npmjs.com/package/useleash); the command it installs is `leash`. Leash is not published under any other npm name.
From source
git clone https://github.com/shalevamin/leash-cli.git
cd leash-cli
pnpm install --frozen-lockfile
pnpm build
npm link
leash --version
Connect and install hooks
leash login
leash whoami
leash hooks install claude
leash hooks install codex
leash hooks install cursor
Install only the hooks for agents you use. Login opens a browser approval flow and saves a Leash credential privately. The default API is `https://api.useleash.dev`. Use `leash login --api https://api.example.com` for another compatible service. Remote APIs must use HTTPS; loopback HTTP is allowed for development.
In Codex, open `/hooks` and trust the installed Leash hooks. Restart an agent if it does not reload its hook configuration. Leash preserves other hooks and backs up an existing configuration before changing it.
leash hooks unin
Related Skills
Agentfuse
AgentFuse — a local-only cost circuit breaker for Claude Code. Hooks veto runaway tool calls when daily/sessio
Step Back
Circuit breaker — stop, diagnose why attempts are failing, propose a fundamentally new direction before trying
Sdlc Loop
Run the SDLC orchestration loop — auto-dispatch eligible tasks until a gate, blocker, circuit-breaker, or comp
Claude Nim
Proxy Anthropic Messages API para Claude Code: modelos NVIDIA NIM + passthrough Anthropic real. Binário Rust ú
ClaudPer
ClaudPer v4: zero-hallucination, self-correction and token-saving skill for Claude Code - asks instead of gues
Agentd
🛡️ Local daemon that guards & observes coding-agent hooks — one policy for Claude, Cursor, Codex & more
Related Agents
Claude Code Writer
Explicit file-writing Claude Code CLI mode; requires local authentication and trusted user settings/hooks
Async Code
Use Claude Code or CodeX CLI to perform multiple tasks in parallel with a Codex-style UI, functioning as a per
Monk Installer
Install, upgrade, and troubleshoot monk-agent plus Monk CLI/daemon for Claude, Codex, and Cursor users.