Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Claude Spend TrackerNew to Visual Studio Code? Get it now.
Claude Spend Tracker

Claude Spend Tracker

Michal Hradil

|
3 installs
| (1) | Free
Track your Anthropic Claude workspace spending in VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Spend Tracker

A VS Code extension that shows your Anthropic Claude spending in the status bar. Tracks both personal and workspace-level spend against limits, with auto-refresh.

Features

  • Status bar — shows your personal spend (e.g. $201.14 / -) at a glance
  • Tooltip — hover for workspace spend, limits, percentages, and reset date
  • Detail panel — click for a full breakdown with progress bars, remaining budget, daily average, and reset countdown
  • Color alerts — status bar turns yellow at 75% and red at 90% of the limit
  • Auto-refresh — polls every 5 minutes (configurable)
  • Auto-discovery — only needs a session key; org, user, and workspace are detected automatically

Setup

1. Get your session key

  1. Go to platform.claude.com
  2. Open DevTools (Cmd+Option+I / F12) → Network tab
  3. Reload the page, filter by Fetch/XHR
  4. Click any request and find the sessionKey cookie value (starts with sk-ant-sid...)

2. Configure

Either add to your VS Code settings:

{
  "claudeSpend.sessionKey": "sk-ant-sid..."
}

Or use the command palette: Claude Spend: Set Session Key to store it via VS Code's SecretStorage.

That's it — organization, user ID, and workspace are auto-detected. If you belong to multiple workspaces, you'll be prompted to pick one.

Commands

Command Description
Claude Spend: Show Usage Details Open the detail panel
Claude Spend: Refresh Manually refresh spend data
Claude Spend: Set Session Key Store session key securely

Settings

Setting Default Description
claudeSpend.sessionKey "" Session key from platform.claude.com
claudeSpend.workspaceId "" Workspace override (auto-detected if empty)
claudeSpend.refreshIntervalMinutes 5 Auto-refresh interval in minutes
claudeSpend.statusBarAlignment "right" Status bar position (left or right)

Notes

  • The session key is a browser session cookie and will expire. When it does, the status bar shows a warning — grab a fresh one from DevTools.
  • All personal data (session key) goes in VS Code settings, not in the codebase. The .vscode/settings.json file is gitignored.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft