Мониторинг затрат на API в реальном времени
★ 6.8 · general
cost-accrual-tracker is a Claude Code skill that tracks real-time API cost accrual during LLM execution and correctly captures partial costs when executions are aborted. It implements incremental cost accumulation after each API response — including streaming chunks — with separate accounting for prompt caching tokens (cache_read and cache_write), which are priced differently and would otherwise skew totals. Budget threshold logic triggers warnings at a configurable percentage and auto-stops execution when the limit is exceeded. The skill is designed to be embedded in execution pipelines or used to build cost display widgets in UIs, and pairs with cost-optimizer, cost-verification-auditor, and llm-router. It is not intended for pre-execution cost estimation, billing system design, or historical analytics dashboards.