Claude Code usage

TokenTracker

Local-first token usage and cost tracker covering Claude Code and many other coding tools.

2,185 stars 226 forksUsage & cost trackers Source

Install

Install
npx tokentracker-cli
From source
git clone https://github.com/xiufengsun/TokenTracker.git

From the README

Token Tracker

English · 简体中文 · 日本語 · 한국어 · Deutsch

Track every AI token — then bring your usage to life

An accurate, local-first token usage and cost dashboard for 47 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

🐾 A living desktop companionCodes, celebrates streaks, follows your cursor, and rests when you do.
🧩 Four native widgetsUsage, activity heatmap, top models, and rate limits at a glance.

🏆 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.

This project is tested with BrowserStack.

⚡ 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 sqlite3 CLI when available and falls back to node:sqlite on supported Node releases).

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:7680 with 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…
Read the full README on GitHub

Details

Language
JavaScript
License
MIT
Last updated
3 November 2026
Topics
ai-coding-toolsai-toolsantigravityclaude-codeclicodex-clicost-trackercursordashboarddesktop-petdesktop-widgetdeveloper-tools

FAQ

What is TokenTracker?

Local-first token usage and cost tracker covering Claude Code and many other coding tools. It is a usage for Claude Code, from xiufengsun/TokenTracker on GitHub.

How do I install TokenTracker?

Run npx tokentracker-cli, then follow the setup in the README.

Is TokenTracker popular?

xiufengsun/TokenTracker has 2,185 GitHub stars and 226 forks. It was last updated on 3 November 2026.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.