Claude

Claude Code

Use ccusage to track the token consumed.

# run on the fly npx ccusage@latest # Basic usage ccusage # Show daily report (default) ccusage daily # Daily token usage and costs ccusage monthly # Monthly aggregated report ccusage session # Usage by conversation session ccusage blocks # 5-hour billing windows ccusage statusline # Compact status line for hooks (Beta) # Live monitoring ccusage blocks --live # Real-time usage dashboard # Filters and options ccusage daily --since 20250525 --until 20250530 ccusage daily --json # JSON output ccusage daily --breakdown # Per-model cost breakdown ccusage daily --timezone UTC # Use UTC timezone ccusage daily --locale ja-JP # Use Japanese locale for date/time formatting # Project analysis ccusage daily --instances # Group by project/instance ccusage daily --project myproject # Filter to specific project ccusage daily --instances --project myproject --json # Combined usage # Compact mode for screenshots/sharing ccusage --compact # Force compact table mode ccusage monthly --compact # Compact monthly report