Skip to content

Tokscale

Track token usage across AI coding agents from your terminal. Global leaderboard with trillions of tokens tracked.

Install

$npx tokscale@latest
Claude Code
claude mcp add tokscale -- npx tokscale@latest
Cursor / Claude Desktop (mcp.json)
{
  "mcpServers": {
    "tokscale": {
      "command": "npx",
      "args": [
        "tokscale@latest"
      ]
    }
  }
}

Install command taken from the project's README or registry entry. Always review code before running it.

A high-performance CLI tool and visualization dashboard for tracking token usage and costs across multiple AI coding agents.

[!TIP]

I drop new open-source work every week. Don't miss the next one.

Follow @junhoyeo on GitHub for more projects. Hacking on AI, infra, and everything in between.
Come hang out in our Discord — and surround yourself with the world's top-tier vibers.
Follow @Tokscale on X for release notes and updates.
Support Tokscale's continued development through GitHub Sponsors.

🇺🇸 English | 🇰🇷 한국어 | 🇯🇵 日本語 | 🇨🇳 简体中文

Overview Models
TUI Overview TUI Models
Daily Summary Stats
TUI Daily Summary TUI Stats
Session Details Hourly
TUI Session Details TUI Hourly
Frontend (3D Contributions Graph) Wrapped 2025

Run bunx tokscale@latest submit to submit your usage data to the leaderboard and create your public profile!

Overview

Tokscale helps you monitor and analyze your token consumption from:

Logo Client Data Location
OpenCode ~/.local/share/opencode/opencode.db (1.2+, all channels including opencode-stable.db) or/and ~/.local/share/opencode/storage/message/ (legacy/unmigrated)
Claude Code ~/.claude/projects/ and ~/.claude/transcripts/
OpenClaw ~/.openclaw/agents/ (*/agent/openclaw-agent.sqlite + */sessions/*.jsonl; + legacy: .clawdbot, .moltbot, .moldbot)
Codex CLI ~/.codex/sessions/ and ~/.codex/archived_sessions/ (*.jsonl plus zstd-compressed *.jsonl.zst and other archive copies; copies of one rollout count once)
Prime Agent ~/.prime/agent/sessions/ and ~/.prime/agent/session-artifacts/ (RLM child sessions)
Sakana Fugu via Codex — rollouts in ~/.codex/sessions/ and ~/.codex/archived_sessions/ (model_provider: sakana)
GitHub Copilot CLI ~/.copilot/session-store.db (CLI usage events; no OTEL required), ~/.copilot/otel/*.jsonl (+ COPILOT_OTEL_FILE_EXPORTER_PATH), ~/.copilot/data.db
Hermes Agent $HERMES_HOME/state.db and $HERMES_HOME/profiles/*/state.db (fallback: ~/.hermes/...)
Gemini CLI $GEMINI_CLI_HOME/tmp/*/chats/*.json (fallback: ~/.gemini/tmp/*/chats/*.json)
Cursor IDE Cursor API usage cached at ~/.config/tokscale/cursor-cache/usage*.json (legacy usage*.csv caches a

Similar plugs

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro,…

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…