Multi-source analytics
One unified dashboard for Claude Code, OpenAI Codex CLI, or both merged in an All view. Real provider logos, persisted via URL + cookie.
ccgauge is a local-only dashboard for Claude Code and OpenAI Codex CLI. Track tokens, cost, cache savings, and 5h-block usage across every project, model, and session — without sending a single byte off your machine.
npx ccgauge One command. Opens a dashboard at localhost:3737. No login, no telemetry, no API keys.
Every feature is built around two ideas: your data stays on your machine, and you get answers in seconds — not after building a spreadsheet.
One unified dashboard for Claude Code, OpenAI Codex CLI, or both merged in an All view. Real provider logos, persisted via URL + cookie.
No server, no browser — just `ccgauge report`. Colored summary, trend chart, top-N breakdown, JSON output. Pipes cleanly into your scripts.
Read the CLI reference
Let Claude Desktop / Cursor / Cline query your usage directly. Eight MCP tools cover totals, time series, per-model and per-session breakdowns.
MCP integration guide
7×24 day-of-week × hour-of-day grid with hover tooltips for message counts, tokens, and share-of-total. Find your peak coding hours at a glance.
ccgauge reads your existing JSONL session files and never makes outbound calls. Bind to 127.0.0.1 by default. Open source, MIT.
Privacy by design
English and 简体中文 throughout the UI and CLI. Dark / light / system themes with no flash on first paint. Cross-platform npm install.
Every assistant call is grouped into its real conversation turn. Expand a turn to see each call's tool list, prompt fragment, and cost — search, filter, sort, export.
Token counts come straight from the JSONL your CLI already writes. Cost uses ccgauge's built-in price tables for each model.
See the full methodologyRead directly from the assistant records in your CLI's JSONL files. We dedupe identical (messageId, requestId) pairs across sub-agent forks.
Per-million-token rates per model. Unknown variants fall back to the family-latest rate (e.g. gpt-5.5-foo → gpt-5.5).
We compute what you would have paid if every cache-hit had been a fresh read at full input rate, and show the delta as "Saved by cache".
Wall-clock progress of the active 5-hour conversation window. Not Anthropic's plan-quota counter — that lives server-side and isn't exposed to clients.
Add three lines to Claude Desktop's config and ask the model: "how much did I spend on Opus this week broken down by project?" Eight MCP tools answer that and a dozen variations like it.
See all 8 MCP tools{
"mcpServers": {
"ccgauge": {
"command": "npx",
"args": ["-y", "ccgauge", "mcp"]
}
}
} One command — opens a local dashboard, no signup. Stop guessing what Claude Code costs you.