cyberneticlibrary

Monitor Claude Code spend per project

budgetclawpluginsetup L33,035
davepoon/buildwithclaude
What it does

Enforce per-project budget caps with SIGTERM and alerts

Best for

Teams running Claude Code agents on metered LLM budgets who need hard spend guardrails with immediate notification of overages.

Inputs
  • · project name
  • · branch name
  • · budget cap (currency)
Outputs
  • · real-time spend tracking
  • · phone alert via ntfy on overspend
  • · SIGTERM on hard limit
Requires
  • · ntfy (push notifications)
  • · POSIX signals (SIGTERM)
Preconditions
  • · Claude Code running locally
  • · ntfy account or self-hosted ntfy server configured
  • · project/branch budget defined in config
Failure modes
  • · ntfy service unavailable — alerts fail silently
  • · SIGTERM kill may leave locks — requires cleanup
  • · spend calculation lags cloud API reporting
Trust signals
  • · enforces SIGTERM (irreversible termination)
  • · explicit phone alert mechanism
  • · per-project/branch isolation