TokenTracker
Local-first AI token usage & cost tracker for 31 coding tools incl. Claude Code, Codex, Cursor, Gemini & DeepSeek Harness—with native apps. Never reads prompts.
Install
npx tokentracker-cliclaude mcp add tokentracker -- npx tokentracker-cli{
"mcpServers": {
"tokentracker": {
"command": "npx",
"args": [
"tokentracker-cli"
]
}
}
}Install command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Token Tracker
English · 简体中文 · 日本語 · 한국어 · Deutsch
Track every AI token — then bring your usage to life
An accurate, local-first token usage and cost dashboard for 45 AI coding tools — plus a desktop pet, 4 native widgets, and 15 achievement tracks. No cloud account, no API keys, no setup.
📊 See the token dashboard in action
🏆 Unlock achievements from the way you actually code.
🎬 Meet TokenTracker
⭐ If TokenTracker saves you time, please star it on GitHub — it helps other developers find it.
⚡ Quick Start
Requirements: Node.js 20+ (CLI runs on macOS / Linux / Windows; native desktop app ships for macOS (menu bar), Windows (system tray) and Linux (AppImage, tray). Cursor token reading uses the system
sqlite3CLI when available and falls back tonode:sqliteon supported Node releases).
npx tokentracker-cli
That's it. First run installs hooks, syncs your data, and opens the dashboard at http://localhost:7680.
What you get in 30 seconds:
- 📊 A local dashboard at
localhost:7680with usage trends, model breakdown, cost analysis - 🔌 Auto-detected hooks for every supported AI tool you have installed
- 🏠 Local-first — parses logs on your machine; no account or API keys required
- 🧩 Optional: a Skills tab that browses 250+ public skills and syncs them across Claude · Codex · Grok · Antigravity · Gemini · OpenCode · Hermes
Want a native desktop app?
- macOS — Download
TokenTrackerBar.dmg→ drag to Applications. Menu bar status icon, desktop widgets, and the dashboard in a WKWebView.- Windows — Download
TokenTracker-Setup.exe→ run the per-user installer (no admin needed). System-tray app with the dashboard in WebView2. Portable zip also on the releases page.- Linux — Download
TokenTracker-linux-x86_64.AppImage→chmod +xand run. Tray app with the dashboard in a WebKitGTK window. It carries its own GTK/WebKit, so it needs nothing from your distro beyond a current glibc; on GNOME the tray icon still needs the AppIndicator extension..deband.rpmpackages are also on the releases page — those link the distro'swebkit2gtk-4.1,gtk3and appindicator instead, so the.debwill not install on Debian 12 (use the AppImage there).
Install globally for shorter commands:
npm i -g tokentracker-cli
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro,…
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…