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

Claude Code Usage Indicator

Or Benozio

|
5 installs
| (0) | Free
Always-visible Claude usage (5-hour + weekly windows and reset times) 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 Code Usage Indicator

Latest release License: MIT Platforms

Your Claude usage, always visible in the VS Code status bar — the same data the /usage slash command shows (the 5-hour rolling rate-limit window, the weekly window, and when they reset) — so you never have to stop and type /usage again.

 …  Go Live   Ln 12, Col 4   Spaces: 2   UTF-8   ⟁ Claude 87% · 2h 12m
                                                  └─ click for options, hover for details

Features

  • 📊 5-hour window at a glance — your current rate-limit usage as a live percentage, with a warning color as you approach the limit.
  • ⏱️ Reset countdown — optionally show the time until the 5-hour window resets right in the status bar (· 2h 12m).
  • 🛈 Rich tooltip — hover for both the 5-hour and weekly windows, each with a reset countdown in days / hours / minutes.
  • 🖱️ One-click menu — refresh, change the interval, toggle the weekly/reset readouts, set the label, or open settings.
  • 🪶 Polls politely — conservative default interval plus automatic back-off that honors the endpoint's Retry-After on HTTP 429.
  • 🔒 Read-only & safe — it only reads your existing Claude credentials; it never modifies, refreshes, or transmits them anywhere except Anthropic's own usage endpoint.

Requirements

  • VS Code 1.85 or newer.
  • Claude Code installed and logged in at least once on this machine. The indicator reads the OAuth token Claude Code stores in ~/.claude/.credentials.json (Windows/Linux) or the macOS Keychain (Claude Code-credentials). On macOS you may be prompted once to allow Keychain access. If you've never logged in, or the token expired, the indicator says so and asks you to open Claude Code.

You do not need Go, Node, or any toolchain to use the extension — it ships ready to run, with prebuilt core binaries for Windows, macOS, and Linux (x64 + arm64).

Installation

  1. Download the latest claude-code-usage-indicator-<version>.vsix from the Releases page.
  2. In VS Code: Extensions view → … menu → Install from VSIX… → pick the file. (Or: code --install-extension claude-code-usage-indicator-<version>.vsix.)
  3. Reload the window. The indicator appears at the bottom-right of the status bar.

Usage

  • Hover — full breakdown of the 5-hour and weekly windows and their reset times.
  • Click — open the options menu (refresh, set interval, show/hide weekly, show/hide reset, set label, settings).
  • Command Palette (Ctrl/Cmd+Shift+P): Claude Usage: Open menu, Claude Usage: Refresh now, Claude Usage: Set refresh interval.

Configuration

Search "Claude Usage" in VS Code settings:

Setting Default Description
claudeUsage.refreshIntervalSeconds 300 How often to re-check usage. The endpoint enforces its own cooldown, so values below the floor (60 s) are raised to it; on HTTP 429 the extension backs off and honors Retry-After. 0 = manual refresh only.
claudeUsage.label "Claude" Short text before the percentage (e.g. Claude Code usage, or empty for just the number).
claudeUsage.showWeekly false Also show the weekly (7-day) window percentage, not just the 5-hour one.
claudeUsage.showReset false Also show the time until the 5-hour window resets (· 2h 12m). Hidden automatically when the account doesn't report a reset time.
claudeUsage.corePath "" Absolute path to a usage-core binary. Leave empty to use the bundled one.

The interval and the weekly/reset toggles can be changed on the fly from the click menu — no reload.

How it works

A small shared core (a Go binary, prebuilt per OS/arch) does the sensitive work; a thin VS Code adapter (TypeScript) spawns it and renders the result. The same core is meant to be reused by future hosts (JetBrains, a desktop tray) behind their own thin adapters.

~/.claude/.credentials.json  /  macOS Keychain  ──── read-only ──▶  usage-core (Go)
                                                                     • read accessToken
api.anthropic.com/api/oauth/usage ◀──────── Bearer ─────────────────  • GET usage endpoint
                                                                     • normalize → JSON
                                                                            │
                                                  VS Code adapter renders it in the status bar

Safety. The access token is the same one Claude Code uses. The core is strictly read-only on your credentials: it reads accessToken and never refreshes or rewrites them. If the token is expired it degrades gracefully ("open Claude Code to refresh") rather than rotating it — which would break Claude Code's own auth. The token is sent only to Anthropic's official usage endpoint. The exact request/response is documented in docs/usage-endpoint.md.

Resources

  • 📦 Download the latest release (.vsix)
  • 🗒️ Changelog
  • 🐞 Report an issue / request a feature
  • 💻 Source code
  • 📚 Usage endpoint reference
  • 📄 License (MIT)

Roadmap

  • [x] Validate the usage endpoint and freeze the response schema.
  • [x] Go core + VS Code status-bar indicator (the MVP).
  • [x] macOS / Linux support (Keychain token source; per-OS binaries).
  • [ ] Publish to the VS Code Marketplace (currently distributed as a .vsix via Releases).
  • [ ] JetBrains (Rider / IntelliJ) status-bar widget reusing the same core.
  • [ ] Optional shared daemon — one fetch/cache shared across hosts.
  • [ ] Claude Desktop tray app (Windows & macOS).

The indicator intentionally lives in the host's status bar, not injected into the Claude Code panel.

Development

You only need these to build the project — not to use it: Go 1.23+ and Node.js 18+.

# Build the core for your machine and make it available to the extension
cd core
go build -o ../adapters/vscode/bin/usage-core.exe .   # drop the .exe on macOS/Linux

# Build the extension, then press F5 in VS Code for an Extension Development Host
cd ../adapters/vscode
npm install
npm run compile

To build binaries for all platforms, run scripts/build-core.ps1. Package a .vsix with vsce: npx @vscode/vsce package. The core and adapter are deliberately decoupled — adding a new host means writing a thin adapter against the same usage-core JSON contract, with no changes to the credential/endpoint logic. Issues and PRs welcome.

License

MIT — see LICENSE.

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