shalevamin

Leash CLI — Development skill for Claude Code

Development community

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

![Leash: The circuit breaker for coding agents.](https://raw.githubusercontent.com/shalevamin/leash-cli/main/assets/banner.png)

**[useleash.dev](https://useleash.dev)** · [Try the demo](https://useleash.dev/demo) · Install: `npm i -g useleash`

[![npm version](https://img.shields.io/npm/v/useleash?color=F2A900&labelColor=1A1A17)](https://www.npmjs.com/package/useleash) [![MIT license](https://img.shields.io/badge/license-MIT-F2A900?labelColor=1A1A17)](LICENSE) [![CI](https://github.com/shalevamin/leash-cli/actions/workflows/ci.yml/badge.svg)](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