contember

Tokens Gone — Development skill for Claude Code

Development community

Local dashboard for Claude Code token usage and costs.

How to install Tokens Gone

This entry records only its repository, not the path inside it, so there is no exact command to give. Open contember/tokens-gone and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Tokens Gone does

Local dashboard for Claude Code token usage and costs. Reads ~/.claude/projects/**/*.jsonl, aggregates spend, slices interactively.

Alternatives in Development

  • Ccusage — CLI for analyzing Claude Code/Codex usage from local JSONL files 11.8k ★
  • Claude Usage — A local dashboard for tracking your Claude Code token usage, costs, and session history 864 ★
  • Mcptoon — Listing 255 MCP tools costs 71,929 tokens 195 ★

README

tokens-gone

Local web dashboard for AI coding agent token usage and cost. Reads Claude Code, Codex, OpenCode V1 and V2, Pi, and Oh My Pi session logs, aggregates tokens and cost, and lets you slice the data interactively.

Run

npx tokens-gone

That's it — it builds nothing on your machine, starts a local HTTP server, and opens your browser at the dashboard. Subsequent runs reuse the on-disk parse caches (`~/.cache/tokens-gone/*.json`), so warm scans are sub-second even with thousands of session files.

Flags

-p, --port    Port to listen on (default 27821, or $PORT)
--no-open        Don't open the browser
-h, --help       Show help
-v, --version    Print version

Environment

  • CLAUDE_CONFIG_DIR — override the Claude data dir (default ~/.claude).
  • CODEX_HOME — override the Codex data dir (default ~/.codex).
  • XDG_DATA_HOME — where OpenCode keeps opencode/opencode.db (default ~/.local/share) and where Oh My Pi may keep XDG-migrated sessions. Reading OpenCode needs Node 22.5+ for node:sqlite; on older Node versions the other providers still work and OpenCode is skipped.
  • PI_CODING_AGENT_DIR — override the Pi agent dir (default ~/.pi/agent).
  • PI_CODING_AGENT_SESSION_DIR — override the Pi sessions dir directly.
  • OMP_CODING_AGENT_DIR — override the Oh My Pi agent dir (default ~/.omp/agent).
  • OMP_CODING_AGENT_SESSION_DIR — override the Oh My Pi sessions dir directly.
  • OMP_PROFILE — select an Oh My Pi profile.
  • PORT — same as --port.

Why

`ccusage` works but is slow (tens of seconds on real data) and refetches LiteLLM pricing every run. tokens-gone is the same idea but:

  • Cold scan: ~8s for 1.7GB of JSONL (5000+ files); warm: ~700ms.
  • Hardcoded Anthropic and OpenAI pricing — no network requests, ever.
  • Browser UI with click-to-filter on charts, models, projects, sessions.

How it works

  • server/providers/* walk provider-specific JSONL directories, parse logs streamingly, a