ccusage tells you what you spent.
LoopGuard stops you spending it.
Budget fuses and a runaway-loop killer for Claude Code, Codex CLI and Cursor. One install, no proxy, works on subscriptions — and it pings your phone when something trips.
npx loopguard init # hooks into Claude Code, Codex and Cursor (backs up configs) loopguard config set sessionCapUsd 20 loopguard report --by agent # Pro: alerts + remote pause → https://tryloopguard.com/login loopguard login --key lg_… # then: loopguard sync
Hard caps
Per-session and daily dollar caps across every agent. When a cap trips, the tool call is denied and the session halts.
Loop killer
Catches the same tool call repeating and cost spirals ($ per minute), before you notice them in the logs.
Local first
Reads the logs your agents already write. No API keys, no proxy. Only aggregate numbers ever leave your machine — and only if you turn on sync.
Away-from-keyboard alerts
Email, Slack or Discord the moment something trips, and pause or resume enforcement from your phone.
Pricing
Free
Open-source CLI (MIT). Caps, loop detection, local reports.
Pro
or $79/year. Dashboard, alerts, remote pause, history across machines.
Team
Min 3 seats. Everything in Pro for your whole team.
Costs are estimates at API list prices. Not affiliated with Anthropic, OpenAI or Anysphere. Terms · Privacy