# Token Tracker

> Free, open source macOS app that shows what you actually spend across Claude Code, Codex CLI, and OpenCode, read straight from your local transcripts

- URL: https://www.edselserrano.com/en/projects/token-tracker
- Spanish version: https://www.edselserrano.com/projects/token-tracker.md
- Live project: https://github.com/pretxel/ai-usage-bar
- Date: 2026-07-30
- Stack: Tauri, Rust, React, TypeScript, macOS, Open Source
- Author: Edsel Serrano
- Language: en

Token Tracker came out of three months running Claude Code, Codex CLI, and OpenCode daily with no idea which one the money was going to. Each tool stores its transcripts in its own format, in its own directory, and none of them answers the basic question: how much have I spent today. The app reads all three sources — Claude Code's JSONL transcripts, Codex's rollout files, and OpenCode's SQLite database — and puts them side by side: estimated spend by model, with the input, output, and cache token breakdown; daily activity on a timeline of up to 90 days; a calendar-style heatmap covering 12 months; and a top-projects table by cost. A menu bar icon shows today's estimated cost and updates itself live while you work.

The defining design decision is that there is no network: zero requests, zero telemetry, zero account to create. Everything is parsed locally and the app works exactly the same with the wifi off, which for something that reads your work transcripts was the only defensible option. The backend is Rust inside Tauri v2, with a pipeline that walks the directories, parses JSONL and SQLite in parallel with rayon, dedups by key — all three tools can write the same message more than once — and applies pricing per model version, the most tedious part to maintain: Opus 4.5 and 4.8 do not cost the same, and on the OpenAI side every GPT-5 tier has to be told apart. The frontend is React 19 with TypeScript and no charting library: every visualization is hand-rolled CSS bars and grids. The figures are estimates computed from your tokens, not real billing — they show proportions and trends, not an invoice reconciled to the cent. MIT licensed.
