Skip to content
ccgauge
Features

Every feature ccgauge ships, in one page.

Eight feature areas, all built around the same two ideas: keep your data on your machine, and answer the "where is my AI spend going" question in seconds.

Product screenshots

The docs now show the real running dashboard.

These captures come from the local ccgauge app running on this machine, so the feature tour reflects the actual product surfaces instead of placeholder art.

ccgauge overview dashboard screenshot, showing KPI cards and the token usage trend. ccgauge overview dashboard screenshot, showing KPI cards and the token usage trend.
Overview
English · KPI and cost summary
ccgauge usage page screenshot, showing per-turn and per-call usage rows. ccgauge usage page screenshot, showing per-turn and per-call usage rows.
Usage
Turn grouping · filters · export-ready rows
ccgauge sessions page screenshot, showing session rollups and model mix. ccgauge sessions page screenshot, showing session rollups and model mix.
Sessions
Conversation drill-down and model mix
ccgauge projects page screenshot, showing project spend and token distribution. ccgauge projects page screenshot, showing project spend and token distribution.
Projects
Worktree-aware project analytics
ccgauge models page screenshot, showing model comparison cards. ccgauge models page screenshot, showing model comparison cards.
Models
Per-model cost and token comparison
ccgauge settings page screenshot, showing preferences and detected data sources. ccgauge settings page screenshot, showing preferences and detected data sources.
Settings
English · source and preference checks

Multi-source web dashboard

A single Next.js dashboard that understands both Claude Code (Anthropic) and OpenAI Codex CLI. The top-of-nav switcher offers three states — `Claude`, `Codex`, or `All` (merged) — each rendered with the real provider logo. URL and cookie remember your choice across reloads and tabs.

KPI cards + live 5h block tracker

Headline numbers update silently in the background — no spinners, no scroll resets. The 5-hour block card tracks the wall-clock progress of your active conversation window with elapsed %, burn rate per minute, and projected total spend.

Activity heatmap + drill-downs

Day-of-week × hour-of-day grid that shows where your assistant time actually goes. Hover a cell to see message count, total tokens, share-of-total, and share-of-peak. Token-count and message-count are separate heatmaps; share calculations use both.

Usage table + CSV export

Every assistant API call is grouped into its real conversation turn (the parent chain is walked through the JSONL). Expand a turn to see each call's tool list, prompt fragment, and cost. Export to CSV with one click.

CLI report

Run `ccgauge report` for a one-shot, no-server terminal summary. Aligned tables, colored bar-chart trend, top-N breakdown. Pipe `--json` into your scripts; pipe colorless output into your CI logs.

MCP server (for LLMs)

Eight MCP tools let Claude Desktop, Cursor, Cline and other MCP clients query your local usage directly. No screenshots, no copy-paste — you ask, the model answers from structured data.

Privacy & polished local UI

100% local. Reads the JSONL session files your CLI already writes. Zero outbound network calls at runtime. Bound to 127.0.0.1 by default. MIT licensed.

Background service + multi-profile

Treat ccgauge as a daemon when you want it. Full lifecycle: `start --background`, `stop`, `restart`, `status`, `open`, `logs`. State persists under `~/.ccgauge/` so reboots don't lose your config.

Methodology

How ccgauge counts tokens and cost.

Source of truth: your CLI's JSONL

ccgauge never re-runs an API call. It reads the JSONL session files that Claude Code (~/.claude/projects/) and Codex CLI (~/.codex/sessions/) already write to disk, and dedupes (messageId, requestId) across sub-agent forks and worktree mirrors.

Pricing: snapshot, not lookup

Per-million-token rates ship inside ccgauge. Unknown variants fall back to family-latest (e.g. gpt-5.5-foogpt-5.5). When Anthropic or OpenAI publish new prices, you bump ccgauge and get fresh numbers — no API calls, no rate-limit dependence.

Codex cost model

Codex CLI emits cumulative usage per token_count event. ccgauge computes forward-only deltas and skips duplicate refresh events. The displayed cost is the "what the OpenAI API would have charged" equivalent for users on subscription / managed plans.

Cache savings

We compute what every cache-read would have cost at full input rate, then show the delta as "Saved by cache". Cache-creation tokens are billed at their actual rate; the savings headline is upper-bounded by what a cold prompt would have cost.

Ready to try it?

One command — opens a dashboard at localhost:3737.