- Exact tokens and cache reads
- Bash commands and tool calls
- MCP server and tool usage
Track AI coding token usage and costs locally.
Token Use reads Claude Code, Codex, Cursor, GitHub Copilot, and Gemini history already on your machine, stores it in a local archive, and adds local Insights plus optional quota gauges when you choose to sync them.
A local dashboard that answers the only question that matters: where did it go?
The TUI and desktop app share the same archive, filters, refresh logic, Usage view, Insights, and report flow. In the terminal, press 1-5 for time ranges, u for Usage, i for Insights, and e for reports.
Desktop gallery
Desktop app screens.
Five native app views
TUI gallery
Terminal UI screens.
Five keyboard-first views
Five local parsers, one archive.
Token Use reads the session files your tools already write to disk. It normalizes local history into one browsable archive, while limits-only quota sync for Copilot, Claude.ai, and ChatGPT (Codex) stays separate and opt-in from Config.
- Per-turn token_count events
- Cached input plus reasoning output
- Tool call ledger
- Exact tokens when present
- chars / 4 estimate fallback
- Agent KV rows
- Legacy output tokens
- VS Code Chat transcripts
- Estimated transcript usage
- Exact usage and cache reads
- Thought token tracking
- Tool calls
Install the current release.
Use Homebrew on macOS, or pull checksummed TUI and desktop builds from GitHub Releases for Linux and Windows.
$ brew install russmckendrick/tap/tokenuse $ tokenuse $ brew install --cask russmckendrick/tap/tokenuse-desktop $ open -a "Token Use"
$ curl -L -o tokenuse https://github.com/russmckendrick/tokenuse/releases/latest/download/tokenuse-linux-amd64 $ chmod +x tokenuse $ sudo install -m 0755 tokenuse /usr/local/bin/tokenuse $ tokenuse
PS> Invoke-WebRequest -Uri "https://github.com/russmckendrick/tokenuse/releases/latest/download/tokenuse-windows-amd64.exe" -OutFile "tokenuse.exe" PS> .\tokenuse.exe