Skip to content

All Sources (Default)

ccusage daily report showing unified token usage and costs across sources

ccusage aggregates every detected supported data source by default. You do not need a special all command or flag for the common case.

Basic Usage

bash
# Daily usage across every detected source
ccusage
ccusage daily

# Other unified views
ccusage weekly
ccusage monthly
ccusage session

The --all flag is accepted for compatibility, but it is optional because unified views are already the default.

bash
ccusage daily --all

How Unified Views Work

ccusage detects local usage files from Claude Code, Codex, OpenCode, Amp, and pi-agent. The same daily, weekly, monthly, and session views can run in two modes:

ModeCommand exampleWhat it shows
Unifiedccusage dailyEvery detected supported source
Focusedccusage codex dailyOne source using the same report shape
Focusedccusage claude dailyOne source with source-specific options

Unified tables include an Agent column so you can compare sources in one view. Focused views remove that comparison layer and show the selected source in more detail where applicable.

Supported Sources

SourceNamespaceExample focused view
Claude Codeclaudeccusage claude daily
Codexcodexccusage codex daily
OpenCodeopencodeccusage opencode weekly
Ampampccusage amp session
pi-agentpiccusage pi monthly

When to Focus a Source

Use a source namespace when you want source-specific options or when you are debugging one local data format:

bash
ccusage codex daily --speed fast
ccusage claude daily --mode display
ccusage opencode session --json
ccusage amp monthly --compact
ccusage pi session --pi-path /path/to/sessions

Next Steps

Released under the MIT License.