Cost Guard¶
Track Claude Code usage. Measure session costs. Optimize token spend. Control budget.
What Is Cost Guard?¶
- Session tokens — input, output, cache hits per Claude Code session
- Model costs — Opus / Sonnet / Haiku → USD per token via Anthropic pricing
- Budget alerts — set daily spend cap, CLI warns or blocks when exceeded
- Usage trends — dashboard analytics by model, project, date range
Quick Install¶
pip install cost-guard
cost-guard auth set cg_live_...
cost-guard push
Next Steps¶
Getting Started — full walkthrough.