Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>AI Cost Dashboard — OpenRouter & Claude Spend TrackerNew to Visual Studio Code? Get it now.
AI Cost Dashboard — OpenRouter & Claude Spend Tracker

AI Cost Dashboard — OpenRouter & Claude Spend Tracker

James t wu

| (0) | Free
Real-time cost tracker for OpenRouter and Anthropic. See today/month spend by project, 14-day trend, budget alerts — stop bill shock.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI Cost Dashboard

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

  1. Install the extension from the Marketplace.
  2. Click the $ icon in the VS Code activity bar.
  3. Click Set API Key and paste your OpenRouter key (sk-or-v1-...) from openrouter.ai/keys.
  4. 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
  • [ ] Per-project monthly totals
  • [ ] CSV export
  • [ ] Custom refresh intervals

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft