Leashr documentation
Leashr is a local agent that checks what a coding agent is about to do, enforces spending caps, keeps an audit log and measures cost per mission. It is built and tested for Claude Code. Limits on the other agents are listed.
PublicThe code is public on GitHub (Leashr/leashr-skills) and the package is on npm: npx leashr init works. The hosted dashboard is not released yet. Or run the agent from a clone of the repository: see Installation.
Every function below carries a status. “Tested” means two things: an automated test of the repository covers it (the proof file is named, results of 25/11/2026) and the behavior was observed on the real agent whose version is named. “Planned” means no code exists. Costs are estimates in USD, not invoices.
What you can do on your own
| Task | Command or file | Page |
|---|---|---|
| Install | node skills/lsh-init/scripts/init.js --target <project> | Installation |
| Write a rule | .leashr/rules.json, rules.js test | Hooks and rules |
| Name a mission | mission.js start <slug> | Cost and missions |
| Set a spending cap | cap.js set --mission 2 --day 10 | Spending caps |
| Require approval | an ask rule | Mobile approval |
| Read the audit | audit.js --summary | Event format |
| Stop everything | cap.js kill | Spending caps |
What each page covers
| Page | Status |
|---|---|
| Installation | npx leashr init: published on npm. From a clone: tested |
| Local agent | Tested |
| Hooks and rules | Tested |
| Cost and missions | Tested |
| Spending caps | Tested |
| Event format | Tested |
| Data policy | Tested |
| Mobile approval | Planned. The local ask decision is tested |
| API | Planned |
| Limits by agent | Tested, per agent |
Tests of 28/11/2026: node --test in each skill folder, all passing (rules 155, cap 73, init 65, mission 24, agents 34, audit 18, cost 14, learn 12, quota 6, custom 26, sync 23; Node.js 24.14). Real sessions: Claude Code 2.1.310.
The local agent is public. Join the waitlist to hear when the hosted dashboard opens.
Join the waitlist