Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Claude Usage MeterNew to Visual Studio Code? Get it now.
Claude Usage Meter

Claude Usage Meter

SKKokkula

|
166 installs
| (0) | Free
Unofficial. Session, weekly and per-model Claude usage in the status bar, read from Anthropic's API. Needs a Claude Code OAuth token on the machine; an editor's own AI sign-in does not leave one. A stale reading shows its age instead of posing as current.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Usage Meter

Your real Claude usage in the status bar — and when the number stops being current, it says so instead of pretending.

⟳ 21% (resets in 2h 11m)   24% (resets in 4d 4h)   Fable 12%

The rolling 5-hour session window, then the rolling 7-day window, each with its reset countdown — then Fable, Anthropic's weekly sub-cap on Max/Premium plans, shown by name when your account has one. Every percentage is read straight from Anthropic's own usage endpoint, not estimated locally.

Open VSX Licence: MIT

Unofficial. This is an independent, community-built extension. It is not made by, endorsed by, or affiliated with Anthropic. "Claude" is Anthropic's trademark and is used here only to describe what the extension reads.

Screenshots

All three images below are real captures — the maintainer's own usage at one point in time, not a live reading of yours.

The meter in the status bar: session shown as 5h with a dash because Anthropic reported no session window, weekly 66% with its reset in 6h 45m, and Fable 41%. A real capture, not a live reading of your own usage.

The meter's hover card: Session not reported, Weekly 66% with the share of the week by surface, Weekly Fable 41%, and on its own line Fable's part of the weekly limit, 21% used of the 50% it may use. A real capture, not a live reading of your own usage.

The same usage in Claude's own account usage panel: this week 66% used and Fable 41% used of up to 50% of the weekly limit, with no session bar, matching the meter. A real capture, not a live reading of your own usage.

What makes this one different

  • A stale reading says so. Past its age limit or a throttle, the bar shows the reading's age (12m old) instead of a frozen number pretending to be current.
  • It never shows a number it did not get. A failed request renders —, never 0%. No demo mode, no simulated data.
  • One reading per machine. Every open editor window shares a single request and a single backoff instead of polling separately.
  • The one derived figure is off by default, and always labelled est. — every other number here is one Anthropic reported.
  • It reads only a Claude Code OAuth token — sent to exactly one host, never logged or persisted. See Authentication.
  • Ships a terminal status line too, for zero extra requests: the same reading, or Claude Code's own session and weekly figures when no editor reading is current.

Install

Search Claude Usage Meter in the Extensions view, or:

code --install-extension shivakrishnakokkula.claude-usage-meter

Also on Open VSX, so Cursor, Windsurf and VSCodium can install it too. Whichever editor you use, it reads a Claude Code sign-in — not that editor's own AI sign-in.

Settings

Setting Default Meaning
claudeUsageMeter.refreshIntervalSeconds 300 How often to poll, machine-wide (minimum 60).
claudeUsageMeter.models ["Fable"] Per-model windows to show, by the API's own names. ["*"] for all, [] for none.
claudeUsageMeter.showProjection false Estimate when a window will fill at your current rate, labelled est..
claudeUsageMeter.warnAtPercent 90 Amber-highlight a figure at or above this percentage.
claudeUsageMeter.notify false Raise a notification the first time a window crosses the warning threshold.
claudeUsageMeter.compact true Drop the 5h/7d labels when a figure's position already says which is which.
claudeUsageMeter.alignment / .priority "right" / 100 Status bar placement.

In your terminal

Installs a matching Claude Code status line: run Claude Usage Meter: Install Claude Code Status Line from the Command Palette and paste the snippet it prints into your Claude Code settings. It makes no API requests of its own.

While the editor's reading is current, the line shows it, as the status bar does. When that reading is missing, failed or more than five minutes old, the line can show the session and weekly figures Claude Code itself received, whenever they are the fresher of the two, marked via Claude Code. Claude Code sends those without a timestamp, so the line shows them only once it has seen them change, and gives their age as an upper bound. If Claude Code's reset times show a different account from the editor's, the editor's reading is left off. Fable comes only from the editor's reading.

5h 24% (resets in 2h 11m) · 7d 41% (resets in 4d 4h) · ≤12m old · via Claude Code

If your statusLine block has no "refreshInterval": 30, add it: without it, an idle session keeps the last line it printed, age and all. On Windows, copy the command again as well — it needs the quoted, forward-slash path Install now prints.

Commands

  • Show Details — full breakdown, plus network diagnostics
  • Refresh Now
  • Open Official Usage Page
  • Send Feedback
  • Install Claude Code Status Line

Authentication

Reads the OAuth token Claude Code already stores locally (an environment variable, its credentials file, or — on macOS — its keychain item). Sent as a bearer header to api.anthropic.com and nowhere else: no telemetry, no analytics, no update check of its own. The token is never logged, never written to the output channel, and never persisted by this extension — it is only ever read, never written or refreshed.

Feedback

Use the Send Feedback command, or the Q & A tab of this listing — this repository is private, so there is no public issue tracker.

Licence

MIT.

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