xiufengsun/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.

What it solves

Many developers use multiple AI coding assistants (Claude Code, Cursor, GitHub Copilot, etc.) and have no easy way to see how many tokens they burn and what that costs. TokenTracker automatically collects token usage from local logs of 47 supported tools, so you can see exactly where your tokens go without any manual tracking.

How it works

TokenTracker runs on your machine. On first launch, it auto-installs hooks or sets up passive log readers for every supported AI tool it finds. It then parses local log files to extract token counts, timestamps, and model names — nothing else. Everything stays on your device; no cloud account or API keys are needed. A built-in cost engine (with 2,200+ models and an offline price snapshot) converts usage into estimated USD. The dashboard opens at localhost:7680, and there are optional desktop apps (macOS menu bar, Windows tray, Linux AppImage) that add native widgets and a dashboard webview.

Who it’s for

Developers who use one or more AI coding tools and want to understand their token consumption and spend. It’s especially handy for anyone juggling multiple assistants and wanting a single local view. The playful extras — a desktop pet, desktop widgets, and achievement badges — appeal to users who like gamification and at-a-glance monitoring.

Highlights

  • Tracks token usage and cost across 47 AI coding tools, including Claude Code, Cursor, GitHub Copilot, Gemini CLI, and more
  • Fully local-first: parses logs on your machine, no account or API keys required, and prompts/completions never leave your device
  • Zero configuration: hooks auto-install on first run, and you get a dashboard in about 30 seconds
  • Dashboard shows usage trends, model breakdown, cost analysis, and a GitHub-style activity heatmap
  • Optional native desktop app with 4 widgets (usage, heatmap, top models, limits) and a pixel pet that reacts to your real coding activity
  • 15 achievement tracks turn usage milestones and streaks into collectible badges
  • Real-time usage limits for major providers (Claude, Codex, Cursor, Gemini, etc.) with last-good caching
  • Cost engine covers 2,200+ models via LiteLLM, with an offline snapshot for accurate pricing without internet
  • Optional leaderboard and cross-device cloud sync (off by default)
  • Optional Skills tab to browse 250+ public skills and sync them across Claude, Codex, Grok, and other tools

Related

  • Project
  • Project
  • Project
  • Project
  • Project