Loading...
Loading...
Tracks cumulative API spend against a monthly budget and pauses non-essential automations when thresholds are crossed
npx skill4agent add archieindian/openclaw-superpowers spend-circuit-breakerpython3 check.py --set-budget 50 # $50/month hard cap
python3 check.py --set-alert 0.5 0.75 # Alert at 50% and 75%cron: "0 */4 * * *"~/.openclaw/skill-state/spend-circuit-breaker/state.yamlmonthly_budget_usdspend_this_month_usd~/.openclaw/sessions/last_checked_atspend_this_month_usdlast_checked_at| Spend % | Action |
|---|---|
| < 50% | Log silently — nothing to surface |
| ≥ 50% | Notify user: "You've used ~50% of your $X budget this month" |
| ≥ 75% | Notify user + suggest which cron skills to pause |
| ≥ 100% | Notify user + automatically pause all |
circuit_open: trueinstall.shpython3 check.py --reset-circuitcircuit_open: falsepython3 check.py --add-model my-model-name --input-cost 3.00 --output-cost 15.00