Skip to main content

ccusage-viz

简体中文 · Usage guide · Design philosophy · Architecture

PyPI Python License: GPL v3 CI

Alpha · 0.1.0 — 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. ccusage is required for real data and is not bundled with this project.

This project is not affiliated with or endorsed by the ccusage project or its maintainers.

Dashboard presets

dashboard composes independently configured charts in one terminal. Start with the default overview:

ccuv dashboard wide

wide (default)

A balanced 2×2 overview of Timeline, Stack, Ranking, and Monitor panes.

Wide Dashboard preset: balanced 2×2 overview

narrow

A compact, vertically focused layout for a narrower terminal.

Narrow Dashboard preset: vertically focused compact layout

all

A broad gallery that keeps several representative pane forms visible at once.

All Dashboard preset: broad gallery of representative panes

spotlight-wide

Timeline receives the leading full-width row; the remaining panes follow below.

Spotlight-wide Dashboard preset: Timeline leads in a full-width row

spotlight-wide2

Timeline and Stack receive consecutive full-width rows before the smaller panes.

Spotlight-wide2 Dashboard preset: Timeline and Stack lead in consecutive full-width rows

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.

Timeline view: 14-day daily token trend

The 13-month view makes longer-term changes visible at a coarser scale.

Timeline view: 13-month long-range trend

Calendar

Use Calendar to scan a longer period for active days, streaks, and concentrated usage:

ccuv calendar

Calendar view: contribution heatmap with activity intensity

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.

Stack view: token composition over time

This variation separates cache reads from cache creation.

Stack view: cache reads versus cache creation

Ranking

Use Ranking to find the projects, models, or agents with the most tokens in a range:

ccuv ranking --by project

Ranking view: projects ordered by total tokens

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.

Monitor view: observed token throughput window

The grouped view ranks the selected dimension within the observed window.

Monitor view: grouped ranking

The list view provides process and item detail alongside the observation.

Monitor view: process and list detail

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 read raw Agent logs, store a usage database, or calculate cost, quota, QPM, or rate-limit metrics. 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?

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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ccusage-viz 0.1.0
File Size Uploaded
ccusage_viz-0.1.0.tar.gz 1.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ccusage-viz 0.1.0
File Interpreter ABI Platform
ccusage_viz-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / ccusage_viz-0.1.0.tar.gz

Download URL ccusage_viz-0.1.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
e3b9fefbe5d9ef1323bb96f9b314a5b98a5ea9725237746e1dff51a5727be799
BLAKE2b-256 checksum
How to use checksums
7d5c0529e5c55a285ffee679d12b42a31d7aa0b7d216785167cca3996dd77d1b
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 20, 2026.

Transparency log

Release files / ccusage_viz-0.1.0-py3-none-any.whl

Download URL ccusage_viz-0.1.0-py3-none-any.whl
Size 159.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cfb42cad4d3ed4ccb9ec9c2bed683812abd859cb575ca8be6d4d70c8be2e322
BLAKE2b-256 checksum
How to use checksums
1f5879f483ffba97f6b08bf9e7e48414e00540e3399b81273978e565168436c7
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 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page