Cost Budget Check
技能 已验证 活跃Read accumulated cost-tracking spend + budget config, compute utilization, emit 50/75/90/100% alert ladder
To automatically monitor and alert on cloud cost utilization against predefined budgets, ensuring cost control and preventing overspending.
功能
- Compute cost utilization against budget
- Emit 4-tier alert ladder (INFO, WARNING, CRITICAL, HARD_STOP)
- Support for filtering by time period (today, week, month, all)
- Provide machine-readable JSON output
- Allow setting and retrieving budget limits
使用场景
- Automatically alert teams when cost utilization reaches predefined thresholds
- Prevent accidental overspending by halting non-essential operations at 100% utilization
- Integrate cost monitoring into CI/CD pipelines or agent workflows
- Continuously monitor costs via cron jobs or agent loops
非目标
- Performing actual cost optimization actions
- Tracking costs for non-LLM related services
- Providing historical cost trend analysis beyond the current budget period
工作流
- Read accumulated cost-tracking spend and budget configuration
- Compute current utilization percentage
- Compare utilization against the 4-tier alert ladder
- Emit a markdown summary or JSON output detailing status and recommended action
- Exit with code 1 if utilization reaches 100% (HARD_STOP)
实践
- Cost Management
- Alerting
- Budgeting
先决条件
- Node.js runtime
- Access to cost-tracking data (session-* records from cost-track)
安装
请先添加 Marketplace
/plugin marketplace add ruvnet/ruflo/plugin install ruflo-cost-tracker@ruflo质量评分
已验证类似扩展
Cost Tracker
98Track session costs, set budget alerts, and optimize token spend. Use to check costs mid-session or set spending limits.
Ops Revenue
100Revenue and costs tracker. AWS spend via aws ce, credits tracker, project revenue stages. Shows burn rate, runway estimate, credits expiring.
Usage Tracker
100跟踪每次本地 Claude Code 使用情况并进行报告:消耗的 token 数、预估成本(欧元)、会话数、项目数以及工具细分。当用户询问有关消耗、积分、使用情况、每次请求的成本、想要查看报告、询问特定请求为何昂贵、怀疑某个进程正在消耗 token、想要优化 Claude Code 使用情况或想要审核每次请求的工具使用情况时使用。还会触发对西班牙语短语的响应:'cuánto me está costando', 'cuántos tokens', 'consumo de hoy', 'qué petición fue cara', 'está consumiendo mucho', 'optimizar consumo', 'reporte de uso', 'ver uso', 'instalar tracker', 'hook no registra'。命令:/usage-tracker report [hoy|semana|mes|all] [proyecto], /usage-tracker top-requests [hoy|semana], /usage-tracker install, /usage-tracker status
Mcp Audit
99Audit connected MCP servers for token overhead, redundancy, and security. Use when sessions feel slow or before adding new MCPs.
Cost Summary
98Single-shot programmatic dump of all cost data — total spend, per-tier, top session, budget status, federation aggregate. JSON or markdown.
Cost Federation
98Consumer-side wiring for ADR-097 Phase 3 federation_spend events — per-peer rolling windows + suspension-threshold check