ccusage-viz
简体中文 · Usage guide · Design philosophy · Architecture · Versioning
Alpha · 0.1.3 — interfaces may change before 1.0. See the roadmap for planned work.
ccusage-viz is an independent, unofficial terminal visualizer for
ccusage token data. It turns
ccusage command output into interactive terminal charts without creating a
second usage database. It currently relies primarily on ccusage for real
data; ccusage is required and is not bundled with this project.
Quick start
uv tool install ccusage-viz
ccuv dashboard
Supported agents
Agent coverage follows ccusage. Its current supported agents include Claude
Code, Codex, OpenCode, Amp, Droid, Codebuff, Hermes Agent, pi-agent, Goose,
OpenClaw, Kilo, Kimi, Qwen, GitHub Copilot CLI, Gemini CLI, Antigravity, Grok
Build CLI, and ZCode. See the ccusage support list for
the authoritative and up-to-date list, plus setup and source-specific details.
Product scope
ccusage-viz focuses exclusively on token consumption and metrics derived from token consumption, such as observed tokens per minute (TPM). It does not provide session analytics, request counts, elapsed-time metrics, costs, pricing, balances, quotas, allowances, or other non-token account analytics.
This project is not affiliated with or endorsed by the
ccusageproject or its maintainers.
Dashboard presets
dashboard composes independently configured charts in one terminal. Start
with the default overview:
ccuv dashboard wide
wide (default)
ccuv dashboard wide
A balanced 2×2 overview of Timeline, Stack, Ranking, and Monitor panes.
narrow
ccuv dashboard narrow
A compact, vertically focused layout for a narrower terminal.
all
ccuv dashboard all
A broad gallery that keeps several representative pane forms visible at once.
spotlight-wide
ccuv dashboard spotlight-wide
Timeline receives the leading full-width row; the remaining panes follow below.
spotlight-wide2
ccuv dashboard spotlight-wide2
Timeline and Stack receive consecutive full-width rows before the smaller panes.
When to use a standalone chart
Choose a standalone view when you need to focus on one question rather than an overview composed from multiple panes.
Timeline
Use Timeline for daily token trends, grouped by model, agent, or project:
ccuv timeline
The 14-day view makes recent daily movement easy to compare.
The 13-month view makes longer-term changes visible at a coarser scale.
Calendar
Use Calendar to scan a longer period for active days, streaks, and concentrated usage:
ccuv calendar
Stack
Use Stack to compare input, output, and cache-token composition over time:
ccuv stack --cache split
This view emphasizes the overall composition of token types.
This variation separates cache reads from cache creation.
Ranking
Use Ranking to find the projects, models, or agents with the most tokens in a range:
ccuv ranking --by project
Project attribution coverage
The compatibility baseline below was verified on macOS with ccusage 20.0.23. “Token totals” means ccusage reports the agent in unified usage data. “Historical project attribution” requires a stable, real project identity for each record.
| Agent | Token totals | Historical project attribution | Agent version | ccusage version | Evidence |
|---|---|---|---|---|---|
| Claude Code | Verified | Verified | 2.1.278 | 20.0.23 | claude daily --instances --json provides project records. |
| Codex | Verified | Verified | 0.139.0 | 20.0.23 | Uses ccusage cwd/project fields when present; otherwise resolves only matching local session_meta.cwd metadata. |
| OpenCode | Verified | Unsupported (verified) | 1.17.20 | 20.0.23 | Real session output has no project identity field. |
| Antigravity | Verified | Unsupported (verified) | 2.0.10 | 20.0.23 | Real projectPath values were the generic constant Antigravity, not workspaces. |
Historical project views with OpenCode, Antigravity, or another unsupported agent show a warning and do not manufacture project rows; that agent's project usage may therefore be absent or incomplete. Default Name project aggregation only combines an unambiguous Claude–Codex pair; it never merges projects within one Agent and may use private parent segments only to disambiguate a shared basename. It does not prove those records came from one checkout. Use Exact project aggregation to keep every source identity separate.
To move an agent to Verified, include in the same change a sanitized, non-empty real-data fixture, parser/provider coverage, project-ranking end-to-end validation, reconciliation with unified daily token totals, and the exact tested agent plus ccusage version.
Monitor
Use Monitor for process-local throughput observed from repeated cumulative snapshots—not reconstructed hourly history:
ccuv monitor
An observed throughput window starts after a sampling baseline is established. Timeline views mark this Monitor invocation's start while it remains in the visible window, so time before the mark means unobserved rather than zero usage. The marker is a line at every density; its label is shown at full and compact density when space allows. Ranking and list presentations do not show it.
Use cumulative bars to inspect retained Monitor token increments across the local calendar day, rather than TPM or reconstructed historical activity:
ccuv monitor --style cumulative-bars
Press w to switch between Today and Yesterday, and g to switch hourly and
half-hour buckets. Unobserved periods remain distinct from observed zero values.
The grouped view ranks the selected dimension within the observed window.
The list view provides process and item detail alongside the observation.
For commands, filters, controls, styles, and data semantics, see the usage guide. The architecture overview is intended for maintainers.
Install, update, and remove
Requires Python 3.11–3.13. ccuv is the short alias for ccusage-viz; both
installed commands behave the same way.
From uv
Install the isolated command-line tool:
uv tool install ccusage-viz
ccuv --version
Update or remove it:
uv tool upgrade ccusage-viz
uv tool uninstall ccusage-viz
From pip
Use an activated virtual environment, then install or update the package:
python -m pip install --upgrade ccusage-viz
ccuv --version
Remove it from that environment:
python -m pip uninstall ccusage-viz
From source
Clone the repository and install an editable tool:
git clone https://github.com/Cookie-HOO/ccusage-viz.git
cd ccusage-viz
uv sync --all-groups
uv tool install -e .
ccuv --help
After pulling newer source, refresh or remove the editable tool:
uv tool install --reinstall -e .
uv tool uninstall ccusage-viz
Missing ccusage?
Real-data commands need ccusage on PATH (or an explicit --ccusage-bin).
If the default command is missing in an interactive terminal, ccuv offers:
npm install -g ccusage
An empty Enter or y/Y confirms that installation. Any other input,
Ctrl-C, or EOF cancels it. Demo mode, redirected/noninteractive runs, and custom
--ccusage-bin runs never prompt or install automatically. Install
ccusage manually when npm is
unavailable.
Further reading
ccusage-viz is token-only and stateless: it does not analyze Agent transcripts,
store a usage database, or calculate cost, quota, QPM, or rate-limit metrics. For Codex
project attribution only, it may read the matching local session's session_meta.cwd; it
never stores or displays session-log content.
These documents answer the deeper questions:
| Document | What it answers |
|---|---|
| Usage guide | How do I install, configure, compose, and adjust charts and Dashboards? |
| Design philosophy | Which product boundaries, ownership rules, and presentation principles are intentional? |
| Architecture | How do CLI routes, hosts, panes, providers, processing, and renderers fit together for maintainers? |
| Roadmap | What is planned, deferred, or open for feedback? |
| Known issues | Which intermittent ccusage problems are recognized, and how can I recover safely? |
Report reproducible problems with the bug report form, or propose improvements through the feature request form.
Licensed under the GNU General Public License v3.0 only.
Metadata
Release files for ccusage-viz 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ccusage_viz-0.1.3.tar.gz | 1.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ccusage_viz-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.9 MB
Release files / ccusage_viz-0.1.3.tar.gz
| Download URL | ccusage_viz-0.1.3.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06f2336642737619f29890df6aa59cef015272d8e195a1873847cb29d45b552d
|
|
BLAKE2b-256 checksum How to use checksums |
3e4d3cc4bd095138aada77d16165e25a9362f71f26c0927137ec7300ab603a24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / ccusage_viz-0.1.3-py3-none-any.whl
| Download URL | ccusage_viz-0.1.3-py3-none-any.whl |
|---|---|
| Size | 189.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d3f788d6952887879ea16aef1aae5c9a76bd6aa762180a170078fe0a0e94a18
|
|
BLAKE2b-256 checksum How to use checksums |
cabac99dc40eeff8d44922eb30b1f399531751d4f8aec9d9212a61f6773804f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency log