Repository navigation
v16.1.0: Per-Model Token Tracking
What's New
Per-Model Token Tracking 🎯
- Added detailed token usage breakdown by Claude model
- Use
--breakdownflag with blocks, daily, monthly, and session commands to see per-model stats - Live monitoring now displays model breakdowns in real-time
- Server component updated to store and aggregate per-model data
Example Usage
# Show blocks with model breakdown
ccusage blocks --breakdown
# Show daily usage with model breakdown
ccusage daily --breakdown
# Live monitoring automatically shows model breakdowns
ccusage blocks --liveChanges
- Updated SessionBlock type to include modelBreakdowns array
- Modified data aggregation to track per-model statistics
- Enhanced display formatting for model breakdowns
- Updated server client to submit per-model tokens
- Fixed TypeScript imports and test compatibility
Bug Fixes
- Fixed missing modelBreakdowns in test blocks
- Resolved TypeScript import issues
- Fixed ESLint formatting issues
Server Updates
- Flask server now stores and returns per-model breakdowns
- Backward compatible with clients not sending model data
Full Changelog: v16.0.0...v16.1.0