Token Lens

Master your LLM spend with usage insights tailored to your coding style.
Features
- Status bar indicator — color-coded usage at a glance (normal, warning ≥50%, error ≥80%)
- Rich tooltip — usage bar, percentage, and time until reset
- Sidebar analytics — daily and per-project token breakdown
- LLM cost comparison — compare usage costs to understand model spend at a glance
- Auto-refresh — data updates every 5 minutes
Supported Providers
Commands
| Command |
Description |
TokenLens: Set API Key |
Enter your provider API key (stored securely) |
TokenLens: Refresh |
Manually refresh token usage data |
Getting Started
- Install the extension from the VS Code Marketplace
- Open the Command Palette (
Ctrl+Shift+P / Cmd+Shift+P)
- Run TokenLens: Set API Key and paste your API key
- Token usage appears in the status bar immediately
| |