Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Claude Token UsageNew to Visual Studio Code? Get it now.
Claude Token Usage

Claude Token Usage

Tornow

|
1 install
| (0) | Free
Live Claude AI token usage (5h session & 7-day) displayed in the VS Code status bar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Token Usage

Displays your live Claude AI token usage directly in the VS Code status bar — both the 5-hour session limit and the 7-day weekly limit.

Status bar preview

Features

  • Real-time percentages fetched directly from the Anthropic API (same source as the Account & Usage dialog)
  • 5h session bar — shows current session usage with colour coding (yellow ≥70 %, red ≥90 %)
  • 7d weekly bar — split into 7 segments, one per day
  • Seconds-precise countdown to the next reset, including the reset time in 24h format
  • Auto-refresh every 30 seconds, plus instant refresh on click

Requirements

  • An active Claude AI subscription (claude.ai) — the extension reads your OAuth token from ~/.claude/.credentials.json written by the Claude Code extension.
  • The Claude Code extension must be installed and you must be logged in.

Usage

The three status bar items appear automatically on the right side of the status bar:

Item Example Meaning
5h session ⚡5h ██████░░ 75% 75 % of the 5-hour rolling limit used
7d weekly 7d █▍░░░░░ 20% 20 % of the 7-day limit used (1.4 of 7 days)
Reset timer ↺ 1h 23m 45s (21:30) Time until the 5h window resets

Click any item to trigger an immediate refresh.

Privacy

No data is sent anywhere. The extension reads your locally stored OAuth token and calls api.anthropic.com/api/oauth/usage — the same endpoint Claude Code itself uses.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft