Overview
Thedaily command displays Claude Code usage statistics aggregated by day. It shows token usage (input, output, cache creation, and cache read tokens), costs, and models used for each day.
Usage
Flags
Command-Specific Flags
Show usage breakdown by project/instance. When enabled, groups data by project directories and displays each project separately.Short flag:
-iFilter to specific project name. Only shows usage data for the specified project.Short flag:
-pCommon Flags
Filter from date in YYYYMMDD format (e.g., 20240301).Short flag:
-sFilter until date in YYYYMMDD format (e.g., 20240331).Short flag:
-uOutput in JSON format instead of a formatted table.Short flag:
-jProcess JSON output with jq command. Requires jq binary installed. Implies —json.Short flag:
-qExample: ccusage daily --jq '.daily[] | select(.totalCost > 0.10)'Cost calculation mode:
auto: Use costUSD if exists, otherwise calculate from tokenscalculate: Always calculate costs from token countsdisplay: Always use pre-calculated costUSD values
-mChoices: auto, calculate, displayShow per-model cost breakdown. Displays detailed token usage for each model used.Short flag:
-bUse cached pricing data for Claude models instead of fetching from API.Short flag:
-ONegatable: Use --no-offline to disableSort order:
asc: Oldest firstdesc: Newest first
-oChoices: asc, descShow pricing mismatch information for debugging.Short flag:
-dNumber of sample discrepancies to show in debug output.
Timezone for date grouping (e.g., UTC, America/New_York, Asia/Tokyo). Default: system timezone.Short flag:
-zLocale for date/time formatting (e.g., en-US, ja-JP, de-DE).Short flag:
-lForce compact mode for narrow displays (better for screenshots).
Path to configuration file. Default: auto-discovery.
Enable colored output (default: auto). FORCE_COLOR=1 has the same effect.
Disable colored output (default: auto). NO_COLOR=1 has the same effect.
Output Formats
Table Output (Default)
Displays a formatted table with columns:- Date: Day in YYYY-MM-DD format
- Input: Input tokens
- Output: Output tokens
- Cache Creation: Cache creation tokens
- Cache Read: Cache read tokens
- Total: Total tokens
- Cost: Total cost in USD
- Models: Models used that day
In narrow terminals or with
--compact flag, some columns (cache metrics and total tokens) may be hidden. A message will indicate compact mode is active.JSON Output
With--json flag, outputs structured JSON: