Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By phurynv1.0.0MITIn 1 marketplace
Caps a Claude Code session at a token or dollar budget and halts the run when spend crosses it. Auto-arms $50 when a /goal starts; a Stop hook halts loops and says nothing leaves your machine.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
budget-cap, token-budget, cost-control, runaway-agents, circuit-breaker, spend-limit, guardrail, budget ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Cap a Claude Code session in tokens or dollars. When spend crosses the line — your subagents counted — the run halts cleanly. It auto-arms $50 the moment you start a
/goal, and trips when an agent gets stuck in a loop.

Native hook. No proxy, no API key, nothing leaves your machine, fully within Anthropic's Terms of Service.
Claude Code now runs autonomously for long stretches — /goal loops until a condition is met, agents retry, subagents fan out. That's powerful, and it's exactly how a session quietly burns through your budget: a stuck loop or a goal that never converges can run up your tokens (or, on API billing, real dollars) while you're away from the keyboard.
Claude Code shows usage after the fact (/usage) but it won't stop. burnstop is the missing circuit breaker: set a cap, and when the session crosses it, the run halts — even mid-/goal.
As a plugin (recommended):
/plugin marketplace add phuryn/burnstop
/plugin install burnstop
Or locally — and the recommended path on Windows (where python3 is awkward and Claude Code runs hooks through bash):
git clone https://github.com/phuryn/burnstop
cd burnstop
python cli.py install # registers the hooks + /budget commands with your own python
Use one path or the other, not both. After installing, restart Claude Code (or open a new session) — commands hot-reload into a running session, but hooks load at session start.
Just start a goal — it auto-arms. /goal ... caps the goal at $50 automatically (change with /budget-default $100; an explicit budget is never overridden). A runaway goal halts at the cap.
Set a budget yourself — type /budget to discover them all:
/budget-arm $1 cap from now ($ or tokens), incl. subagents
/budget-status spend vs cap
/budget-reset fresh allowance, keep the cap
/budget-disarm remove the cap
/budget-default $100 set the budget auto-armed on /goal
Budgets accept dollars ($1, 1$, $0.10) or tokens (200k, 5M, 1.5m, 200000). When the cap is hit:
burnstop: budget exhausted: $1.04 / $1.00 this session (incl. subagents). Halting.
/budget-reset and /budget-disarm work even after a halt — the fuse exempts burnstop's own commands, so it can't block you from clearing it. (You can also cap a whole session at launch: BURNSTOP_BUDGET=$1 claude.)
A Stop hook recomputes spend from Claude Code's own local transcripts each turn (no ledger, nothing written during a run), prices each turn by its model for dollar budgets, and returns continue:false to halt — which overrides /goal so a runaway can't resurrect. It also trips on a structural loop (the same tool call repeated). Full design, pricing table, loop detection, subagent handling, and limitations: docs/architecture.md. Why a hook and not a proxy: docs/spikes.md.
pip install, no build step. (Anyone running Claude Code already has Python.)Bounded overshoot, not surgical: the fuse is ~one turn behind, and a subagent already mid-run can't be killed (only the parent halts and new spawns are blocked) — set the cap with headroom and bound subagents with maxTurns. Loop detection is a heuristic; the budget cap is the deterministic backstop. On a subscription there's no per-token dollar bill, so a dollar budget is computed from list prices as a proxy for usage burn.
PRs welcome — see CONTRIBUTING.md. Agent/contributor guide: AGENTS.md.
MIT — see LICENSE.
7-day copy clicks
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground