English | 中文 | 日本語 | 한국어 | Español | Português
Local token & cost dashboard for AI coding tools
Try it without installing → tokdash.github.io/demo
pipx install tokdash tokdash setup That's it. tokdash setup detects the runtime, installs a managed one if needed, registers a local service, and prints the dashboard URL — http://127.0.0.1:55423. Full options, first-run notes, and updates live in Install & run; prefer to look around first? The live demo runs on the real UI.
One local package, one local data index — and four ways to read it. Every surface parses the same session logs on your own machine, so the browser dashboard, the terminal, the menu bar, and your agent's statusline always agree.
The dashboard is a single page served by the local FastAPI app: exact input / cache / output token breakdowns, per-tool and per-model tables, a contribution heatmap, a week/month/year Report, per-provider Quota windows with reset countdowns, and a Servers tab that combines and compares several machines. Click any screenshot to open the live demo.
Usage Report Quota tracking Multiple servers, one total Light and dark follow your OS appearance. The app ships 17 style themes, light/dark modes, PWA install, and six UI languages (English / 中文 / 日本語 / 한국어 / Español / Português).
Prefer to stay in the terminal? tokdash tui opens seven panes — Overview, Sessions, Stats, Report, Speed, Quota and Pricing — without a browser, reading the same local index (and the shared on-disk database when a tokdash serve is running beside it). F1–F7 jump between them, v lists them.
tokdash tui Keyboard Key Action q Quit r Reload the current pane F1–F7 Overview / Sessions / Stats / Report / Speed / Quota / Pricing (1 / 2 / 3 still jump to Overview / Report / Quota) v Pick a view from the list t d w m y a Set the shared range: today, yesterday, this week, this month, this year, all time p More ranges (the strip's More); on Stats, an earlier year P Stats: a later year, back up to the trailing 365 days c Type an exact custom date range [ / ] Step the range one whole period earlier / later — never into the future 0 Back to today / Search the focused table s Cycle the sort of the focused table enter / esc Open the selected row / close it h Choose sources (Sessions and Speed) H Walk Speed's sources one at a time k Pick the Speed series x Toggle the timing set (Speed) b Cycle the Speed bucket u Poll quota (Quota pane only) ? Help overlay with all keys One-shot report CLI For a one-shot report you can pipe or script:
tokdash report --period week The period is a flag, not a positional argument. Accepted values: today (the default), week, month, year, all, a number of days, or Nd/Nw/Nm/Ny shorthand; week, month and year are the same calendar-aligned windows the web Report tab shows. tokdash report also accepts --json, --pretty and --output , following the same conventions as tokdash export.
An optional native menu-bar app for macOS and notification-area app for Windows: a compact, read-only view of the Tokdash service without the dashboard open.
macOS menu bar Windows notification area Windows — Microsoft Store (recommended, signed by Microsoft, requires Windows 11):
Direct download — the latest companion release: a universal DMG (arm64 + x86_64, macOS 14+) and a self-contained portable ZIP (x64, Windows 11; Windows on Arm via x64 emulation).
Setup: run Tokdash 1.5.2 or newer (Install & run), install the companion, and it connects to http://127.0.0.1:55423 by default — its settings let you add, test, name, or remove explicit endpoints, including private Tailscale Serve URLs. The companion only contacts the endpoints you configure; low-quota notifications and launch at login are opt-in.
Checksum, update, and removal instructions live in the companion release guide.
The local API can power a statusline item in your coding agent showing live token/cost stats:
Ready-made templates (bash and PowerShell), install/config, and the endpoint reference live in docs/guides/statusline/.
Prerequisites: Python 3.10+ and one or more supported clients.
pipx install tokdash If you do not use pipx:
python3 -m pip install --user tokdash First run Run the onboarding wizard:
tokdash setup The wizard configures a reversible user-level background service when the platform supports one, then prints the dashboard URL (default: http://127.0.0.1:55423). If no supported service manager is available, it records setup state and prints foreground run guidance. It uses localhost-first defaults, does not require sudo for the local service, and keeps your usage history unless you later uninstall with --purge.
For a non-interactive setup from an agent, script, or bundle, run tokdash setup --auto --json; to preview what setup would change, tokdash setup --dry-run. To expose the dashboard explicitly on all network interfaces with writes disabled, run tokdash setup --bind 0.0.0.0; review the remote-access guide first.
tokdash doctor doctor checks the runtime, background service, configured port, data paths, and update-check status. Use tokdash doctor --json for automation.
tokdash update # upgrade the managed runtime and restart the service when possible tokdash uninstall # reverse exactly what setup created; keeps usage history by default update only drives install methods Tokdash can safely manage. If your runtime was installed by a package manager Tokdash does not own, it prints the exact manual guidance instead of mutating that environment.
If you installed Tokdash before the onboarding flow, upgrade first:
pipx upgrade tokdash # or: python3 -m pip install --user -U tokdash Then run tokdash doctor and tokdash setup when you want Tokdash to manage the background service. If you already have a hand-written systemd or launchd service, setup does not silently replace it: it refuses unmarked tokdash.service / plist files by default. Keep managing that service yourself, remove it before setup, or run tokdash setup --force after checking tokdash setup --dry-run. --force also handles pre-1.0 services that already occupy port 55423 but do not expose the new /health fingerprint: it rewrites and restarts the existing tokdash.service. Use tokdash setup --no-service to skip service creation.
If your current setup uses a conda/system/user-pip interpreter and you want tokdash update to manage future upgrades, migrate the service to Tokdash's setup-owned venv:
# Upgrade the tokdash command you are about to run, for example: python3 -m pip install --user -U tokdash # or, for a conda base install: conda run -n base python -m pip install -U tokdash tokdash setup --runtime venv --force tokdash doctor This keeps your usage history under ~/.tokdash, rewrites the user service to run ~/.tokdash/runtime/python-venv/bin/python -m tokdash, and lets future tokdash update upgrade that managed venv and restart the service. If you installed with pipx, you can instead keep the pipx runtime and upgrade with tokdash update or pipx upgrade tokdash.
If you only want a one-off foreground process:
tokdash serve Open http://127.0.0.1:55423. Use tokdash serve --port if the default port is busy. By default tokdash serve opens the dashboard in your browser once on startup; pass --no-open to disable it. A bare tokdash with no command just prints the command help and exits — it no longer starts tokdash serve behind your back.
For full onboarding details — runtime choices, WSL/systemd behavior, macOS launchd, Tailscale, bundling, update checks, and safe uninstall semantics — see docs/guides/ONBOARDING.md. For remote access through Tailscale Serve, SSH forwarding, or an explicit network bind, see docs/guides/REMOTE_ACCESS.md.
Tokdash reads the local session logs of 27 supported agents — the pill row above names them; the full matrix (usage & cost / Session Explorer coverage, per-client data paths, overrides, and source-specific accounting notes) is in Supported clients.
The Quota tab shows subscription utilization windows and reset countdowns for nine providers. Codex's 5-hour/weekly windows work out of the box from local logs (treat them as an estimate); accurate Codex consumption and every other provider — Claude Code, Antigravity, MiniMax, Kimi Code, Grok, Z.ai, OpenCode Go, Command Code — come from opt-in live polling: Tokdash calls each provider's own quota endpoint with the sign-in your CLI already has. Off by default, per-provider consent, results kept in the local database.
The consent commands, master switch, poll cadence, and per-provider credential notes are in docs/reference/QUOTA.md.
Token counts depend on what each client logs locally. Costs are computed from the bundled pricing database (src/tokdash/pricing_db.json) by default, or from your saved dashboard pricing override at /pricing_db.json when present. Either way they may lag real provider pricing — use as an estimate and verify against your billing source if it matters.
Tokdash reads each client's local session logs; the local SQLite index cannot recover logs deleted before they were indexed. Only two supported clients delete old sessions by default, and both are a one-line fix:
Every other supported client keeps history indefinitely by default. For the full per-client survey, fix details, and what the local SQLite index does and does not preserve, see docs/reference/HISTORY_RETENTION.md.
Full documentation lives in docs/ (start at the index), grouped into:
Both files in this release have provenance metadata.
token cost dashboard llm ai codex claude gemini antigravity kimi
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 22, 2026 2 release files Full provenance
Nov 17, 2026 2 release files Full provenance
Nov 10, 2026 2 release files Full provenance
Oct 25, 2026 2 release files Full provenance
Oct 23, 2026 2 release files Full provenance
Oct 22, 2026 2 release files Full provenance
Oct 18, 2026 2 release files Full provenance
Oct 16, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 11, 2026 2 release files Full provenance
Oct 10, 2026 2 release files Full provenance
Oct 9, 2026 2 release files Full provenance
Oct 5, 2026 2 release files Full provenance
Oct 4, 2026 2 release files Full provenance
Oct 3, 2026 2 release files Full provenance
Sep 30, 2026 2 release files Full provenance
Sep 28, 2026 2 release files Full provenance
Sep 26, 2026 2 release files Full provenance
Sep 25, 2026 2 release files Full provenance
Sep 23, 2026 2 release files Full provenance
Sep 22, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Sep 15, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 13, 2026 2 release files Full provenance
Sep 8, 2026 2 release files Full provenance
Sep 5, 2026 2 release files Full provenance
Sep 3, 2026 2 release files Full provenance
Sep 2, 2026 2 release files Full provenance
Sep 1, 2026 2 release files Full provenance
Aug 30, 2026 2 release files Full provenance
Aug 28, 2026 2 release files Full provenance
Aug 27, 2026 2 release files Full provenance
Aug 26, 2026 2 release files Full provenance
Aug 22, 2026 2 release files Full provenance
Aug 20, 2026 2 release files Full provenance
Aug 19, 2026 2 release files Full provenance
Aug 18, 2026 2 release files Full provenance
Aug 14, 2026 2 release files Full provenance
Aug 12, 2026 2 release files Full provenance
Aug 11, 2026 2 release files Full provenance
Aug 10, 2026 2 release files Full provenance
Aug 5, 2026 2 release files Full provenance
Aug 3, 2026 2 release files Full provenance
Jul 31, 2026 2 release files Full provenance
Jul 30, 2026 2 release files Full provenance
Jul 29, 2026 2 release files Full provenance
Jul 28, 2026 2 release files Full provenance
Jul 26, 2026 2 release files Full provenance
Jul 25, 2026 2 release files Full provenance
Jul 24, 2026 2 release files Full provenance
Jul 17, 2026 2 release files Full provenance
Jul 14, 2026 2 release files Full provenance
Jul 12, 2026 2 release files Full provenance
Jul 11, 2026 2 release files Full provenance
Jul 10, 2026 2 release files Full provenance
Jul 7, 2026 2 release files Full provenance
Jul 6, 2026 2 release files Full provenance
Jul 5, 2026 2 release files Full provenance
Jul 3, 2026 2 release files Full provenance
Jul 2, 2026 2 release files Full provenance
Jul 1, 2026 2 release files Full provenance
Jun 21, 2026 2 release files Full provenance
Jun 19, 2026 2 release files Full provenance
Jun 17, 2026 2 release files Full provenance
Jun 16, 2026 2 release files Full provenance
Jun 12, 2026 2 release files Full provenance
Jun 9, 2026 2 release files Full provenance
Jun 5, 2026 2 release files Full provenance
Jun 3, 2026 2 release files Full provenance
Jun 2, 2026 2 release files Full provenance
Jun 1, 2026 2 release files Full provenance
May 30, 2026 2 release files Full provenance
May 29, 2026 2 release files Full provenance
May 26, 2026 2 release files Full provenance
May 25, 2026 2 release files Full provenance
May 21, 2026 2 release files Full provenance
May 20, 2026 2 release files Full provenance
May 11, 2026 2 release files Full provenance
May 10, 2026 2 release files Full provenance
Apr 24, 2026 2 release files Full provenance
Apr 16, 2026 2 release files Full provenance
Apr 15, 2026 2 release files Full provenance
Apr 9, 2026 2 release files Full provenance
Mar 31, 2026 2 release files Full provenance
Mar 26, 2026 2 release files Full provenance
Mar 20, 2026 2 release files Full provenance
Mar 16, 2026 2 release files Full provenance
Mar 6, 2026 2 release files Full provenance
Mar 5, 2026 2 release files Full provenance
Mar 1, 2026 2 release files Full provenance
Feb 28, 2026 2 release files Full provenance
Feb 28, 2026 2 release files Change of provenance




