Your first report
Run your first usage report with the default daily view:- Date-by-date breakdown of token usage
- Input, output, cache creation, and cache read tokens
- Total costs in USD
- Models used for each day
Basic commands
ccusage provides several report types to analyze your usage:Daily report
View token usage and costs aggregated by date:This is the default command when you run
ccusage without arguments.Monthly report
View token usage and costs aggregated by month:Perfect for understanding your long-term usage patterns.
Session report
View usage grouped by conversation sessions:Ideal for tracking costs per project or conversation.
Common options
Filter by date range
Filter reports to a specific date range using--since and --until:
Date filters use YYYYMMDD format (e.g., 20250525 for May 25, 2025).
JSON output
Export data in JSON format for programmatic consumption:Model breakdown
View per-model cost breakdown with the--breakdown flag:
Compact mode
Force compact table layout, perfect for narrow terminals or screenshots:Project analysis
Group by project
View usage breakdown by project or instance:Filter to specific project
Filter the report to a specific project:--instances for detailed project analysis:
Advanced options
Timezone configuration
Configure timezone for date grouping:Locale formatting
Customize date/time formatting with locale:Offline mode
Use pre-cached pricing data without network connectivity (Claude models only):Statusline integration
ccusage includes a compact statusline mode for integration with Claude Code status bar hooks:The statusline feature is currently in Beta. It provides a compact usage display optimized for status bars.
Next steps
Daily reports
Learn more about daily usage reports and filtering options
Session tracking
Understand session-based usage analysis
MCP integration
Set up the MCP server for Claude Desktop integration
Configuration
Configure ccusage with JSON configuration files