v1.2.3 - TUI + desktop app

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 breaks it down by cost, model, project, and tool, with optional quota gauges when you choose to sync them.

THE PROMISE

Your tokens never leave your machine. Neither do you.

01
No API keys
tokenuse never authenticates with any provider. It only reads files you already have.
02
No proxy
No traffic flows through tokenuse. Your editor talks to your model exactly the way it always has.
03
No telemetry
There is no analytics endpoint. Nothing about your usage is measured or sent anywhere.
04
Opt-in network only
Currency rates, pricing books, quota sync, and update checks all happen when you ask, not behind your back.
THE DASHBOARD

A local dashboard that answers the only question that matters:where did it go?

The TUI and desktop app share the same archive, model registry, pricing, and report flow. The desktop is an eight-screen sidebar app with dedicated pages per tool, a Coach page that grades how you work with 27 rules evaluated entirely on your machine, and Scrollback full-text search across every archived transcript; the terminal keeps it tight with Overview, Deep Dive, Usage, Coach, and Scrollback. A read-only MCP server can serve the same numbers to Claude Code or any MCP client, over stdio or a loopback endpoint. In the terminal, press 1-5 for time ranges, o/d/u to switch pages, / for Scrollback, and e for reports.

SUPPORTED TOOLS

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.

Claude Code
~/.claude/projects/ + Claude Desktop
  • Exact tokens and cache reads
  • Bash commands and tool calls
  • MCP server and tool usage
Codex
~/.codex/sessions/**/rollout-*.jsonl
  • Per-turn token_count events
  • Cached input plus reasoning output
  • Tool call ledger
Cursor
Cursor state.vscdb
  • Exact tokens when present
  • chars / 4 estimate fallback
  • Agent KV rows
GitHub Copilot
~/.copilot/ SQLite stores + VS Code Chat
  • Exact CLI usage when recorded
  • VS Code Chat transcript estimates
  • AI Credits quota gauges
Gemini
~/.gemini/tmp/<project_hash>/chats/
  • Exact usage and cache reads
  • Thought token tracking
  • Tool calls
GET STARTED

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
TUI: macOS - Linux - Windows-Desktop: macOS - Linux - Windows-v1.2.3