Reads files on disk
Uses usage fields written by Claude and Codex instead of estimating totals from a partial chat view.
Open-source local usage inspector
Open-source desktop app for inspecting Claude and Codex token cost from local session records.
See model cost, session attribution, and drilldown details from files already on your machine.
No account, no upload, no closed calculator.

Works with
What it does
The app stays intentionally narrow: read local records, apply known prices, and preserve enough context to check where every number came from.
Uses usage fields written by Claude and Codex instead of estimating totals from a partial chat view.
Each session keeps its source, model list, and working directory so totals stay tied to a concrete run.
If a store does not expose token usage, the app leaves the gap visible instead of inventing a cost.
Counting rules stay visible, including dedup behavior and how cumulative session totals are selected.
Input, output, cache-read, and cache-write prices can be corrected per model from the app.
Claude CLI, Claude Desktop Cowork/agent modes, VS Code, and Codex CLI records can be viewed in one place.
Views
These screens cover the normal audit path: start with session attribution, open the drilldown, then inspect model totals and pricing corrections.
Sessions
The session list keeps agent source, model, cost, and working directory together so totals can be traced back to a concrete run.

Drilldown
A session detail view shows how token usage accumulated across conversation entries, including thinking, tool-use, and tool-result blocks where the records expose them.

Models
The model table ranks cost and keeps token classes separate so missing prices and expensive models are easy to spot.

Pricing
Pricing can be corrected in place when model names or provider prices change.

What it reads
If a store exposes token usage, Token Companion counts it. If it does not, the app reports the gap instead of inventing a cost.
| Source | Location | Token data |
|---|---|---|
| Claude CLI, Claude Desktop agent modes, and VS Code | ~/.claude/projects/**/*.jsonl | Per-message usage records |
| Claude 1p Cowork sessions | ~/Library/Application Support/Claude/local-agent-mode-sessions/**/audit.jsonl | Result usage and exact reported cost |
| Claude 3p title-generation logs | ~/Library/Application Support/Claude-3p/title-gen/**/*.jsonl | Usage records |
| Codex CLI sessions | ~/.codex/sessions/**/*.jsonl | Last cumulative token snapshot per session |
| Claude and Codex desktop plain chat stores | IndexedDB / LevelDB stores on disk | Conversation discovery only, no token counts exposed |
Install
The install page keeps the current version, release links, platform tabs, direct downloads, `npx`, and the wrapper scripts visible in one place. Current release: v0.1.8 (0.1.8).
macOS
Install instructions include the unsigned DMG, the npx bootstrapper, and the install.sh wrapper script.
Open macOS instructionsWindows
Install instructions include the unsigned installer, the npx bootstrapper, and the install.ps1 wrapper script.
Open Windows instructionsLinux
Install instructions include release packages, the npx bootstrapper, and the install.sh wrapper script.
Open Linux instructionsLocal records, local calculation