Show HN: Tokdash – a local dashboard for AI token and quota tracking Tokdash, a local dashboard for tracking AI token usage and costs across coding tools like Claude Code and Gemini CLI, launched with performance improvements of up to 30x over previous versions. The open-source tool provides exact token counts, session exploration, quota tracking, and privacy-focused local data storage. Local token & cost dashboard for AI coding tools Try it without installing → tokdash.github.io/demo Performance: about 30× faster than pre-0.6.0 cold usage scans, and 15× faster than ccusage in the same local benchmark. Important Keep your history: Claude Code and Gemini CLI delete local sessions older than ~30 days by default, so Tokdash's earlier months can silently shrink — a one-line config change per client prevents it History retention history-retention . Features features Supported clients /JingbiaoMei/Tokdash/blob/main/docs/SUPPORTED CLIENTS.md Quick start quick-start Configuration configuration Privacy & security privacy--security API local api-local Cost Accuracy Note cost-accuracy-note History retention history-retention Roadmap roadmap Contributing / security contributing--security Project structure project-structure License license Exact token counts : Input/Output/Cache token breakdowns Statusline integration new : drop a live token-usage indicator into Claude Code's statusline or any agent that can hit a local HTTP endpoint — see Statusline integration statusline-integration Contribution calendar : 2D heatmap + 3D isometric view with Tokens/Cost/Messages metrics Session explorer : per-session drill-down Quota tab new : subscription window bars with reset countdowns for Codex, Claude Code, and Antigravity. Codex windows work out of the box from local logs; Codex reset credits, metered features, and all Claude/Antigravity quota need opt-in live polling quota-tracking-optional Themes and app polish : 10 style themes, light/dark mode, and PWA install support Linux including WSL2 : supported macOS: supported Windows native : experimental - Python 3.10+ - One or more supported clients /JingbiaoMei/Tokdash/blob/main/docs/SUPPORTED CLIENTS.md installed Recommended isolated install: pipx install tokdash If you do not use pipx: python3 -m pip install --user tokdash 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: tokdash setup --auto --json To preview what setup would change: tokdash setup --dry-run 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. For managed runtimes, update reports the Tokdash version before and after the upgrade; if the version is unchanged, it says Tokdash is already at that version instead of implying a new package was installed. Existing installs: migration from before v1.0 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 . Tokdash stays loopback-bound by default. For remote access, prefer: - interactive tokdash setup , which can offer an explicit Tailscale Serve step when available, - SSH forwarding: ssh -L 55423:127.0.0.1:55423