macOS app · Open source

How many tokens each project used, and how much quota is left.

TokenDog reads the records that Codex, Claude Code, Cursor, Devin and other tools keep on your Mac. It totals them by project, session and model, estimates what the same calls would cost at public API prices, and puts your subscription reset times in the menu bar.

Requires a Mac with Apple silicon and macOS 14 or later.

TokenDog Overview: total tokens, API-equivalent value, sessions and median output speed at the top, followed by a year-long usage wall and a daily usage chart colored by tool.
Menu bar panel: today's tokens and API-equivalent value, the top three tools, and three tracked subscription quotas.

Screenshots are taken in the app's built-in demo mode. Projects, sessions and amounts are synthetic.

Sessions

Look back by session or project

Sessions are grouped by date or by project and keep the titles your tools gave them. Each row shows the tool, project, tokens and estimated value. Expand one to see its individual requests, with subagents and automatic reviews filed under the parent session.

  • Search session titles or project names
  • Sort by recent activity, tokens, value or title
Sessions page: sessions grouped under Today and Yesterday, each row showing title, tool, project, time, tokens and estimated value.

Request analysis

One row per model call

Input, output, reasoning, cache reads and writes, context window use, time to first token and output speed sit in the same row. Select a row to compare it with the raw values recorded by the source.

  • Cache hit rate for every request
  • Sources without timing fields stay blank instead of showing zero
Request analysis page: a table of individual requests with time, model, input and output, context use, cache hits, time to first token, output speed and estimated value.

Models and pricing

Priced at the rates in effect at the time

Estimates use the public API price that applied when each call was made, with cache reads, cache writes and reasoning priced separately. Models without a known price are marked “No applicable price list” and left out of the total, which is why the total carries a “≥”. You can also enter your own prices in Settings.

This is an API-equivalent value for comparing models and tools. It is not your bill. For subscriptions, your provider's invoice is what counts.

Models page: token share by tool, priced coverage, and each model's tokens, estimated value, reference prices and price status.

Subscription quotas

Quotas and reset times

Once an account is connected, the Quota page shows the usage ratio, balance and next reset returned by the platform, and uses your recent pace to estimate whether you will run out before the reset. Each window lists your local usage over the same period, and past windows stay available.

  • Old readings are labelled “Stale reading”
  • Plans without a public endpoint can be entered by hand
Quota page: cards for Cursor, OpenCode Go, GLM and Factory Droid showing usage per window, reset times, run-out estimates and local usage in the same window.

Menu bar and Dynamic Island

Check without opening the window

The menu bar panel shows tokens and API-equivalent value for today or the last 7 days, your top three tools, and up to three quotas you choose to track. The menu bar icon can carry two numbers next to it. You can also turn on a Dynamic Island at the top of the screen for current activity and output speed.

Share cards

Make a usage card

Click Share on the Overview page and pick one of five styles (Broadsheet, Neon, Terminal, Minimal, Receipt) in portrait, square or story size. Costs, project names and other details can be hidden one by one. The image is rendered on your Mac.

Usage card in the Broadsheet style Usage card in the Terminal style Usage card in the Receipt style

Supported tools

Local usage comes from the records each tool already keeps. TokenDog scans them once on first launch and picks up changes after that. Subscription quotas are turned on one at a time under Settings → Internet Quota.

ToolLocal usageSubscription quota
CodexSession logsRead through the local codex app-server; Codex handles sign-in itself
Claude CodeSession transcripts, including Code sessions in Claude DesktopUses the Claude Code sign-in; off by default
Cursortokscale cache or the official CSV exportUses the Cursor desktop sign-in, or enter it by hand
Devin CLI / DesktopLocal metering recordsPaste your web session details
Factory DroidSession recordsEnter an API key
OpenCodeLocal databaseOpenCode Go: enter an API key
ZCodeLocal databaseGLM Coding Plan (BigModel and Z.ai): enter an API key
DeepSeek HarnessSession logsDeepSeek API balance: enter an API key
AntigravityCLI and IDE session databasesRead through the local agy, including Google AI credits
Gemini Apps—Paste your web session cookie

Your data stays on your Mac

No server
TokenDog has no server of its own and collects no usage statistics. The ledger is a single SQLite file on your Mac.
Read-only
Tool records are only read, never written. Conversation text is not stored in the ledger; it is read on demand when you open a session.
When it goes online
To query the quota endpoints you turn on; to fetch USD/CNY rates from European Central Bank data, which you can switch off; and, if you enable automatic updates, to fetch model prices from LiteLLM, models.dev and OpenRouter (off by default).
Credentials
API keys and sign-in tokens are encrypted in the app's own database, sent only to the matching platform's domain, and never written to logs or exports. TokenDog does not read browser cookies or local storage.

Getting started

  1. Install. Open TokenDog.dmg and drag TokenDog into Applications.
  2. Scan. On first launch, click Start scan. If your records live in a custom folder, choose it under Settings → Data Source and scan again.
  3. Connect quotas (optional). Turn on your platforms under Settings → Internet Quota, then click Refresh now on the Quota page. What the menu bar shows is set under Settings → Menu Bar & Dynamic Island.

Try it with demo data first

Demo mode uses synthetic data in a separate instance and leaves your ledger alone.

open -n /Applications/TokenDog.app --args -TokenDogDemo
Build from source

Requires a version of Xcode that supports Swift 6.

git clone https://github.com/xinyang20/TokenDog.git
cd TokenDog
xcodebuild -project TokenDog.xcodeproj -scheme TokenDog \
  -configuration Release -derivedDataPath build/Xcode build
open build/Xcode/Build/Products/Release/TokenDog.app

FAQ

Does it cost anything?

No. TokenDog is a personal open-source project. The installer and the source code are both on GitHub.

Does it run on Intel Macs, Windows or Linux?

The installer is built for Apple silicon only and needs macOS 14 or later. There is no Windows or Linux version.

Why doesn't the API-equivalent value match my bill?

Subscriptions usually aren't billed per token. The API-equivalent value is what the same calls would cost at public API prices, so you can compare usage; it is not what you were charged. Calls without a known price are left out, in which case the total shows “≥” along with the share that was priced.

A tool's records are missing.

Check the path under Settings → Data Source and scan again after changing it. Claude Code keeps transcripts for 30 days by default; for older dates only the per-day, per-model totals in stats-cache.json can be recovered, without session or request detail.

Is my conversation text sent anywhere?

No. Conversation text is read from your Mac only when you open a session, is not stored in the ledger, and is never sent over the network.