Real-time cost tracker for OpenRouter and Anthropic / Claude Code, right inside VS Code.
Stop guessing how much you're spending — see today's spend, 14-day trend, and per-project breakdown at a glance.
Features
💰 Spent Today — big-number card showing how much you've burned since midnight.
📊 14-day trend chart — see which days you overspent, spot forgotten test resources.
📁 Per-project attribution — spend is attributed to the workspace folder you have open, so you know which side project is costing you.
🚨 Budget alerts — yellow warning at 80%, red error at 100% of your monthly budget.
📌 Status bar live counter — always-visible Today: $X.XX in the status bar.
🔒 Your key never leaves your machine — stored in VS Code's secret storage, only sent to OpenRouter.
Getting Started
Install the extension from the Marketplace.
Click the $ icon in the VS Code activity bar.
Click Set API Key and paste your OpenRouter key (sk-or-v1-...) from
openrouter.ai/keys.
The dashboard loads automatically and refreshes every 5 minutes.
Commands
Open the command palette (Cmd+Shift+P) and search for:
AI Cost: Set OpenRouter API Key
AI Cost: Refresh Now
AI Cost: Set Monthly Budget
Privacy
Your OpenRouter API key is stored locally in VS Code's secretStorage and is never sent
anywhere except directly to openrouter.ai.
Usage snapshots are stored locally in VS Code's global state. No analytics, no tracking,
no phone-home.
Roadmap
[ ] Anthropic / Claude Code Analytics API integration