by junhoyeo
🛰️ A CLI tool for tracking token usage from OpenCode, Claude Code, 🦞OpenClaw, Pi, Codex, Gemini, Cursor, AmpCode, Factory Droid, Kimi, and more! • 🏅Global Leaderboard + 2D/3D Contributions Graph
# Add to your Claude Code skills
git clone https://github.com/junhoyeo/tokscaleLast scanned: 4/24/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-04-24T06:11:11.406Z",
"semgrepRan": false,
"npmAuditRan": false,
"pipAuditRan": true
}tokscale is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by junhoyeo. 🛰️ A CLI tool for tracking token usage from OpenCode, Claude Code, 🦞OpenClaw, Pi, Codex, Gemini, Cursor, AmpCode, Factory Droid, Kimi, and more! • 🏅Global Leaderboard + 2D/3D Contributions Graph. It has 4,359 GitHub stars.
Yes. tokscale passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/junhoyeo/tokscale" and add it to your Claude Code skills directory (see the Installation section above).
tokscale is primarily written in Rust. It is open-source under junhoyeo on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh tokscale against similar tools.
No comments yet. Be the first to share your thoughts!
A high-performance CLI tool and visualization dashboard for tracking token usage and costs across multiple AI coding agents.
[!TIP]
v2 is here — native Rust TUI, cross-platform support, and more. 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.
🇺🇸 English | 🇰🇷 한국어 | 🇯🇵 日本語 | 🇨🇳 简体中文
| Overview | Models |
|---|---|
![]() |
![]() |
| Daily Summary | Stats |
|---|---|
![]() |
![]() |
| Frontend (3D Contributions Graph) | Wrapped 2025 |
|---|---|
Run
bunx tokscale@latest submitto submit your usage data to the leaderboard and create your public profile!
Tokscale helps you monitor and analyze your token consumption from:
| Logo | Client | Data Location | Supported |
|---|---|---|---|
| OpenCode | ~/.local/share/opencode/opencode.db (1.2+, all channels including opencode-stable.db) or/and ~/.local/share/opencode/storage/message/ (legacy/unmigrated) |
✅ Yes | |
| Claude Code | ~/.claude/projects/ and ~/.claude/transcripts/ |
✅ Yes | |
| OpenClaw | ~/.openclaw/agents/ (+ legacy: .clawdbot, .moltbot, .moldbot) |
✅ Yes | |
| Codex CLI | ~/.codex/sessions/ |
✅ Yes | |
| Sakana Fugu | via Codex — ~/.codex/sessions/*.jsonl (model_provider: sakana) |
✅ Yes | |
| GitHub Copilot CLI | ~/.copilot/otel/*.jsonl (+ COPILOT_OTEL_FILE_EXPORTER_PATH) |
✅ Yes | |
| Hermes Agent | $HERMES_HOME/state.db and $HERMES_HOME/profiles/*/state.db (fallback: ~/.hermes/...) |
✅ Yes | |
| Gemini CLI | $GEMINI_CLI_HOME/tmp/*/chats/*.json (fallback: ~/.gemini/tmp/*/chats/*.json) |
✅ Yes | |
| Cursor IDE | Cursor API export cached at ~/.config/tokscale/cursor-cache/usage*.csv (not ~/.cursor) |
✅ Yes | |
| Amp (AmpCode) | ~/.local/share/amp/threads/ |
✅ Yes | |
| Codebuff | ~/.config/manicode/ (+ manicode-dev, manicode-staging; override via CODEBUFF_DATA_DIR) |
✅ Yes | |
| Droid (Factory Droid) | ~/.factory/sessions/ |
✅ Yes | |
| Pi | ~/.pi/agent/sessions/ and ~/.omp/agent/sessions/ (Oh My Pi) |
✅ Yes | |
| Kimi CLI / Kimi Code | kimi-cli: ~/.kimi/sessions/ kimi-code: ~/.kimi-code/sessions/ (override via KIMI_CODE_HOME) |
✅ Yes | |
| Qwen CLI | ~/.qwen/projects/ |
✅ Yes | |
| Roo Code | ~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/tasks/ (+ server: ~/.vscode-server/data/User/globalStorage/rooveterinaryinc.roo-cline/tasks/) |
✅ Yes | |
| Kilo | ~/.config/Code/User/globalStorage/kilocode.kilo-code/tasks/ (+ server: ~/.vscode-server/data/User/globalStorage/kilocode.kilo-code/tasks/) |
✅ Yes | |
| Kilo CLI | ~/.local/share/kilo/kilo.db |
✅ Yes | |
| Mux | ~/.mux/sessions/ |
✅ Yes | |
| Crush | $XDG_DATA_HOME/crush/projects.json (project registry; fallback: ~/.local/share/crush/projects.json) |
✅ Yes | |
| Goose | ~/.local/share/goose/sessions/sessions.db (+ macOS Application Support, legacy Block/goose paths; override via GOOSE_PATH_ROOT) |
✅ Yes | |
| Google Antigravity | Cached via tokscale antigravity sync to ~/.config/tokscale/antigravity-cache/sessions/*.jsonl (live RPC against the local language server) |
✅ Yes | |
| Antigravity CLI | ~/.gemini/antigravity-cli/conversations/*.db (override the Gemini home via GEMINI_CLI_HOME; local SQLite, read directly — no antigravity sync needed) |
✅ Yes | |
| Trae IDE / Trae Solo (international) | Cached via tokscale trae sync to ~/.config/tokscale/trae-cache/sessions/*.json (account-level usage from the official API) |
✅ Yes | |
| Warp / Oz | Cached via tokscale warp sync to ~/.config/tokscale/warp-cache/usage.json (aggregate requests and spend only; no token transcripts) |
✅ Yes | |
| Grok Build | $GROK_HOME/sessions/*/*/updates.jsonl (fallback: ~/.grok/sessions/*/*/updates.jsonl) |
✅ Yes | |
| Zed Agent | ~/.local/share/zed/threads/threads.db (macOS: ~/Library/Application Support/Zed/threads/threads.db; Windows: %LOCALAPPDATA%/Zed/threads/threads.db; hosted Zed models only, not external ACP agen |