Tokenomics Viewer — Development skill for Claude Code
View token usage, costs, and rate-limit metrics from Codex and Claude Code sessions.
How to install Tokenomics Viewer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ClickHouse/tokenomics-viewer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Tokenomics Viewer does
View token usage, costs, and rate-limit metrics from Codex and Claude Code sessions.
Alternatives in Development
- Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★
- Nexting — Remote control for Claude Code, Codex, Grok, and Cursor on Mac or PC 1.3k ★
- Claude Usage — A local dashboard for tracking your Claude Code token usage, costs, and session history 864 ★
README
Tokenomics Viewer
Local-first cost and token analytics for Codex, Claude Code, omp (oh-my-pi), Pi, Gemini CLI, Qwen Code, OpenCode, Cursor Agent, Grok Build, and GitHub Copilot CLI/VS Code, powered by ClickHouse. Tokenomics reads local session logs, removes replayed parent traces from forked Codex sessions, normalizes exact usage where the source proves its semantics, and estimates costs from an editable pricing catalog.
The dashboard and database run on your machine. Tokenomics does not upload session logs or reports.
Quick Start
Install or update Tokenomics on macOS or Linux, run the initial sync, and open the dashboard:
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/skuznetsov/tokenomics-viewer/main/install.sh)"
Automatic setup supports arm64 and x86-64 macOS or Linux. It expects the standard `curl`, `tar`, `sed`, `awk`, and `find` tools; installing the private Node.js runtime also requires `shasum` or `sha256sum` for verification.
The installer does not use `sudo` or install npm packages. On the first run it:
- Installs Tokenomics under
~/.local/share/tokenomics-viewer. - Adds launchers under
~/.local/bin. On macOS, it also records the launcher for the native menu bar client under~/Library/Application Support/Tokenomics Viewer. - Installs a private Node.js 26 runtime when the system Node.js is too old.
- Installs
clickhousectl, selects stable ClickHouse, and starts the namedtokenomicsserver. - Imports supported exact-usage sessions and observed-only Cursor/Grok/Copilot metadata into ClickHouse.
- Starts the dashboard on a loopback address and opens it in your browser.
Subsequent launches are one command:
tokenomics-launch
Run the one-line installer again to update Tokenomics. To install or update without launching the application:
TOKENOMICS_NO_LAUNCH=1 /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/skuznetsov/tokenomics-viewer/main/install.sh)"
Updates r
Related Skills
Claumon
Claude Code dashboard: see where your limits are headed before you hit them. Calibrated usage forecasts, live
Claude Usage Report
Claude Code stop hook: per-prompt usage report with token costs, context window, and rate limits
Token Hamster
🐹 Claude Code mod & plugin: usage monitor, token tracker & statusline. Live token usage, 5-hour session and w
Asale
Desktop client for the Asale token-sharing network: sell idle Claude, ChatGPT/Codex, Gemini, Kimi and Grok sub
Modeldeck
macOS menu bar app that tracks usage limits across all your Claude Code and Codex CLI accounts — live "% left"
Claude Code Meter
Tray widget showing Claude Code and Codex rate-limit usage and burn pace. Windows, local-only, MIT.
Related Agents
AI Cost Optimizer
Audits an LLM application or AI agent for token cost and rate-limit risk, using its usage logs and code, and r
Wd Researcher
Use this agent for time-boxed investigations that feed specs - provider TOS and rate-limit realities, Claude C
API Platform Reviewer
API platform / dev-API pre-implementation reviewer. Specialises in rate-limit design (token-bucket / sliding-w