Live for Claude Code & Codex

Watch your tokens flow in real time.

A native macOS menu-bar app that tracks live token usage and cost for your AI coding sessions. Wrap any tool with tflow and the numbers count up as you work.

macOS 13+ Zero dependencies Universal binary
How it works

Wrap your tool. Track everything.

Run any supported CLI through tflow and it launches the tool as a child process — inheriting your terminal so interactive TUIs work exactly as before.

While the session runs, tokenflow tails the usage events written to disk every second, accumulating input/output tokens, cache reads & writes, per-model cost and context-window usage.

After tflow install, just run claude or codex as usual — the PATH wrappers route through tokenflow transparently.

~/projects/tokenflow — zsh
tflow claude
launching claude · tracking session a3f9…
 
Claude Code v1.2 — ready.
> refactor the pricing table
 
↑ 175 ↓ 36.4k cache 8.9k $1.76
sonnet-4.5 · 214 msgs · 1h 37m
 
Everything in the menu bar

Usage you can actually see.

Live stats where you already look, a full per-session breakdown one click away, and 30 days of history grouped by day.

Live menu-bar stats

An always-visible ↑in ↓out readout that counts up with an indigo arrow flash as new usage lands.

Per-session cards

Tool, project, duration, input/output, cost and a per-model breakdown — for every running session at once.

30-day history

A draggable window of finished sessions grouped by day, each expandable to a full cache & cost breakdown.

Cache-aware pricing

Distinguishes cache reads and writes from fresh tokens, with a per-model USD rate table that resolves dated variants.

Auto-install, auto-track

First launch installs the tflow CLI and PATH wrappers for you. One Uninstall button reverses all of it.

Context-window meter

Tracks how much of each model's context window a session has consumed, right alongside its cost.

Native macOS 13+ Built in Swift 5.9 Foundation only — zero deps No schema drift, shared Codable
Install

Running in under a minute.

Download the app, or build from source if you'd rather. The menu-bar app handles the rest.

01

Get the app

Download the DMG, open it, and drag TokenFlow.app into Applications.

open TokenFlow.dmg
02

First launch

Right-click → Open the first time. The app installs the tflow CLI and PATH wrappers automatically.

tflow + claude / codex wrappers
03

Just work

Run your tools as usual. tokenflow follows along and the menu bar comes alive.

claude --resume

Stop guessing what a session costs.

Download tokenflow and watch every token — and every dollar — flow by in real time.

macOS 13 Ventura or later · Apple Silicon & Intel · Auto-installs the CLI