{"repo":"HduSy/tokenscope","free":true,"listed":false,"github":"https://github.com/HduSy/tokenscope","clone":"git clone https://github.com/HduSy/tokenscope.git","description":"MacOS menu-bar dashboard for Claude CLI token usage, estimated cost, and per-model / MCP / Skill breakdowns.","language":"Rust","stars":245,"topics":["analytics","claude","claude-cli","cost-tracking","tauri","token-counter","token-usage"],"license":"MIT","category":"analytics","readme_excerpt":"Tokenscope English · 中文 A menu-bar / system-tray app for macOS and Windows that shows your Claude CLI daily token usage, estimated cost, and per-model / MCP / Skill call breakdown . Stack: Tauri 2 + React + TypeScript (frontend) / Rust (data layer). What it does - Shows today's token count next to the menu-bar icon (e.g. ⬡ 14.00M ) - Click to open the panel: Day / Week / Month toggle - Metrics: total tokens (input/output), estimated cost, requests / sessions - Three breakdowns: by model / by MCP call / by Skill call - Cost donut (hover for a single model), year-long activity heatmap - Counts only the MCP servers / Skills you installed yourself — all Claude built-in tools and Anthropic's bundled MCP servers are filtered out Data sources (zero-intrusion, read-only) Purpose Path --------- ------ Session logs (tokens / model / tool calls) /.claude/projects/ / .jsonl User MCP whitelist /.claude.json → mcpServers + projects[ ].mcpServers User Skill whitelist /.claude/skills/ directory Model prices Primary : models.dev (bare model names, matching Claude CLI logs) → Fallback : LiteLLM → built-in snapshot. Cached in /Library/Caches/tokenscope/ , refreshed every 24h, with offline fallback Key processing - Deduplicated by message.id (streaming/retries repeat the same usage); when one message spans multiple lines, its tool calls are merged and the token usage is counted once - Token split: input (uncached) / cache (creation+read) / output ; the UI folds cache into \"In\" by default and sho","default_branch":null,"files":null,"tree":[],"storefront":"/r/HduSy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HduSy/tokenscope/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}