weekly command groups your Claude Code usage by week, providing a balanced view between daily granularity and monthly aggregation.
Basic Usage
- Input and output tokens
- Cache creation and read tokens
- Total tokens consumed
- Total cost in USD
- Models used
Command Options
Customize Week Start Day
By default, weeks start on Sunday. You can change this with--start-of-week:
sunday(default)mondaytuesdaywednesdaythursdayfridaysaturday
Filter by Date Range
Use--since and --until to filter results:
Dates must be in
YYYYMMDD format. The command groups usage into weeks based on the configured start day.Model Breakdown
See per-model costs within each week:JSON Output
Export data in JSON format:jq Integration
Process JSON output with jq:Common Flags
Day to start the week on (default: sunday). Options: sunday, monday, tuesday, wednesday, thursday, friday, saturday
Filter from date (YYYYMMDD format)
Filter until date (YYYYMMDD format)
Show per-model cost breakdown (default: false)
Output in JSON format (default: false)
Process JSON output with jq command (requires jq binary, implies —json)
Cost calculation mode:
auto (use pre-calculated if available), calculate (always calculate from tokens), display (always use pre-calculated)Timezone for date grouping (e.g., UTC, America/New_York, Asia/Tokyo). Default: system timezone
Locale for date/time formatting (e.g., en-US, ja-JP, de-DE). Default: en-US
Force compact mode for narrow displays
Use cached pricing data instead of fetching from API (default: false)
Show pricing mismatch information for debugging (default: false)
Examples
Last 4 Weeks
Monday-Starting Weeks
Weekly Sprint Report
Weeks Above Budget
Understanding Week Format
Weeks are displayed in ISO week format:YYYY-Wxx (e.g., 2025-W10 for the 10th week of 2025).
The week number depends on your --start-of-week setting: