Requires Node.js 18+ and a Tokenomist API key. Get one at tokenomist.ai.
Installation
- npm (recommended)
- npx (no install)
Authentication
1
Get your API key
- Sign up or log in at tokenomist.ai
- Navigate to the API section of your dashboard (Request API Trial Here)
- Generate a new API key and copy it
2
Log in
~/.tokenomist/config.json with restricted file permissions (0600).3
Verify
Run Your First Command
AI Skills
Install 6 pre-built skills for Claude Code, Cursor, Windsurf, and other AI agents that can run shell commands.Authentication Methods
The CLI resolves your API key in this order (first match wins):Environment variable
.env file
Create a .env file in your project directory:
Output Formats
Every command supports three output formats via the-o / --output flag:
- Table (default)
- JSON
- CSV
Human-readable formatted table with colored headers and right-aligned numbers.
Caching
The CLI caches API responses for 10 minutes to reduce redundant requests and speed up repeated queries. Cache files are stored in~/.tokenomist/cache/.
To bypass the cache and fetch fresh data:
