A native macOS menu-bar app for live Claude Code and Codex token tracking, AI coding session cost estimates, context usage, and 30-day history. No wrapper, no PATH setup — it hooks straight into Claude Code, so every session shows up whether you launch it from a terminal or your IDE.
On Intel? Download for Intel
There's no wrapper and no PATH mutation. Tracking runs through Claude Code's own SessionStart / SessionEnd hooks, so every session counts — whether you launch claude from a terminal or from your IDE.
Sessions appear in the menu bar within a second of the first token, and history is finalized even when the app is closed — the hook re-parses the transcript on SessionEnd.
While a session is live, tokenflow tails the usage events written to disk, accumulating input/output tokens, cache reads & writes, per-model cost and context-window usage in real time.
Live stats where you already look, a full per-session breakdown one click away, and 30 days of history grouped by day.
An always-visible ↑in ↓out readout that counts up with an indigo arrow flash as new usage lands.
Tool, project, duration, input/output, cost and a per-model breakdown — for every running session at once.
A draggable window of finished sessions grouped by day, each expandable to a full cache & cost breakdown.
Distinguishes cache reads and writes from fresh tokens, with a per-model USD rate table that resolves dated variants.
Hooks into Claude Code itself, so terminal and IDE sessions both show up — no wrapper, no PATH changes. Dragging the app to the Trash cleanly reverses everything.
Tracks how much of each model's context window a session has consumed, right alongside its cost.
Download the app, or build from source if you'd rather. The menu-bar app handles the rest.
Download the DMG, open it, and drag TokenFlow.app into Applications.
Right-click → Open the first time. The app registers a session hook in Claude Code automatically — no shell config, no PATH changes.
Run your tools as usual. tokenflow follows along and the menu bar comes alive.
Download tokenflow and watch every token — and every dollar — flow by in real time.
On Intel-Chip? Download for Intel
tokenflow estimates session cost from this per-model USD rate table. All rates are in USD per 1,000,000 tokens.
Cached input 10% of input; cache writes 1.25× (5m) / 2× (1h). anthropic.com/pricing
| Model id | Input | Output |
|---|---|---|
| claude-fable-5 | 10.00 | 50.00 |
| claude-mythos-5 | 10.00 | 50.00 |
| claude-opus-4-8 | 5.00 | 25.00 |
| claude-opus-4-7 | 5.00 | 25.00 |
| claude-opus-4-6 | 5.00 | 25.00 |
| claude-opus-4-5 | 5.00 | 25.00 |
| claude-opus-4-1 | 15.00 | 75.00 |
| claude-sonnet-4-6 | 3.00 | 15.00 |
| claude-sonnet-4-5 | 3.00 | 15.00 |
| claude-haiku-4-5 | 1.00 | 5.00 |
Cached input is 10% of input across the family. openai.com/api/pricing
| Model id | Input | Output |
|---|---|---|
| gpt-5.5 | 5.00 | 30.00 |
| gpt-5.5-pro | 30.00 | 180.00 |
| gpt-5.4 | 2.50 | 15.00 |
| gpt-5.4-mini | 0.75 | 4.50 |
| gpt-5.4-nano | 0.20 | 1.25 |
| gpt-5.4-pro | 30.00 | 180.00 |
| gpt-5.2 | 1.75 | 14.00 |
| gpt-5.2-pro | 21.00 | 168.00 |
| gpt-5.1 | 1.25 | 10.00 |
| gpt-5 | 1.25 | 10.00 |
| gpt-5-mini | 0.25 | 2.00 |
| gpt-5-nano | 0.05 | 0.40 |
| gpt-5-pro | 15.00 | 120.00 |
| gpt-5-codex | 1.25 | 10.00 |
Real cache-hit input is ~2% of input. api-docs.deepseek.com
| Model id | Input | Output |
|---|---|---|
| deepseek-v4-flash | 0.14 | 0.28 |
| deepseek-v4-pro | 0.435 | 0.87 |
| deepseek-chat → flash | 0.14 | 0.28 |
| deepseek-reasoner → flash | 0.14 | 0.28 |
Ids are lowercase; real cache-hit input ~18% of input. docs.z.ai
| Model id | Input | Output |
|---|---|---|
| glm-5v-turbo | 1.20 | 4.00 |
| glm-4.6v | 0.30 | 0.90 |
| glm-4.6v-flashx | 0.04 | 0.40 |
| glm-4.6v-flash | Free | Free |
| glm-4.5v | 0.60 | 1.80 |
| glm-ocr | 0.03 | 0.03 |
Free tiers read as $0.00, not n/a. docs.z.ai
| Model id | Input | Output |
|---|---|---|
| glm-5.2 | 1.40 | 4.40 |
| glm-5.1 | 1.40 | 4.40 |
| glm-5-turbo | 1.20 | 4.00 |
| glm-5 | 1.00 | 3.20 |
| glm-4.7 | 0.60 | 2.20 |
| glm-4.7-flashx | 0.07 | 0.40 |
| glm-4.7-flash | Free | Free |
| glm-4.6 | 0.60 | 2.20 |
| glm-4.5 | 0.60 | 2.20 |
| glm-4.5-x | 2.20 | 8.90 |
| glm-4.5-air | 0.20 | 1.10 |
| glm-4.5-airx | 1.10 | 4.50 |
| glm-4.5-flash | Free | Free |
| glm-4-32b-0414-128k | 0.10 | 0.10 |
Unknown models cost nothing and show n/a rather than $0.00. Date-suffixed ids resolve to their base rate — e.g. claude-sonnet-4-5-20250929 → claude-sonnet-4-5.