Cost Guard — Daily Budget Enforcement Skill
CommunityKeep LLM spend on-budget automatically.
Finance & Accounting#api monitoring#throttling#cost accounting#telegram alerts#budget enforcement#llm cost control#orchestrator routing
Authorbuzzbysolcex
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents runaway daily LLM costs by enforcing a hard MiniMax daily spend cap and automatically routing excess requests through a cheaper gateway until the UTC midnight reset.
Core Features & Use Cases
- Daily budget enforcement: Monitors a persisted daily tracker (cost-tracker.json) and throttles once the configured cap is reached.
- Threshold alerts: Sends a single Telegram alert at a configurable % of the cap to warn before throttling triggers.
- Automatic routing & logging: Routes calls to Bankr models when the cap is exceeded, updates daily totals, and logs activity to a dedicated file.
- Operational API integration: Exposes cost summaries and per-agent costs via REST endpoints (for dashboards and monitoring).
- Use Case: Run a multi-agent autonomous research workflow where you want predictable daily spend for orchestrator reasoning while still leveraging fallback models when the budget is tight.
Quick Start
Enable the cost-guard skill in your orchestrator hook so daily MiniMax spend is capped at DAILY_MINIMAX_CAP_USD and exceeding calls are routed to THROTTLE_MODEL until the UTC day resets.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Cost Guard — Daily Budget Enforcement Skill Download link: https://github.com/buzzbysolcex/buzz-bd-agent/archive/main.zip#cost-guard-daily-budget-enforcement-skill Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.