Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Claude Usage Bars (Unofficial)New to Visual Studio Code? Get it now.
Claude Usage Bars (Unofficial)

Claude Usage Bars (Unofficial)

jogrdd

|
1 install
| (0) | Free
Unofficial, not affiliated with Anthropic. Shows Claude plan usage (5h session and weekly) against elapsed time in each window.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Usage Bars

Unofficial. This extension is not made, endorsed or supported by Anthropic. Claude is a trademark of Anthropic.

Two bars, 5-hour session and weekly limit, each showing usage % (fill) vs elapsed time % of the window (marker).

The two bars in the status bar and in the Claude Usage view, with the details of the weekly limit on hover

  • White: usage at or below elapsed time.
  • Green: ahead of elapsed time by at most yellowThreshold (default 15%).
  • Yellow: ahead by at most redThreshold (default 50%).
  • Red: further ahead.

By default (thresholdBase: remaining) the thresholds are a percentage of the time left in the window, so they tighten as the reset nears: with 60% elapsed, 15% of the remaining 40 allows 6 points ahead. Set thresholdBase to total to count them in points of the whole window instead.

To see the colors your thresholds give, click Preview the colors under the threshold settings, or run Claude Usage: Preview colors. Both bars run through a whole window with fake usage in one minute, then show your real usage again; click the status bar to end the preview sooner.

  • Status bar (right by default): 5h ████│█░░░░ 62% ⏱40%. Hover for details, click to refresh. The bar, the usage % and the elapsed time % can each be hidden in the settings (statusBar.showBar, statusBar.showUsage, statusBar.showTime). Run Claude Usage: Choose bar style to try the bar styles live in the status bar (statusBar.barStyle). Move it to the left side with statusBar.alignment, and past other extensions' items with statusBar.priority (the higher, the further left). An item you hid from the status bar's right-click menu shows again after a move.
  • View "Claude Usage" in the secondary side bar (right): graphic bars. Drag it anywhere, e.g. under the Claude Code chat; VS Code remembers where you put it. Before VS Code 1.106 the view is in the Explorer.

How it gets the usage

The extension asks Claude Code itself: it runs claude -p /usage, the same report as /usage in Claude Code, and reads the two lines about the session and the week. It never reads your Claude login and never calls Anthropic's servers itself. /usage sends nothing to the model and costs no usage; the extension runs it without your hooks or MCP servers, and without adding a session to your history.

  • Requirements: Claude Code signed in with a Claude plan (Pro, Max…). An API key login has no plan limits to show.
  • Which claude: the one that comes with the Claude Code extension, else claude on the PATH. Set claudePath to use another one.
  • How often: every pollSeconds (default 120 s), once for all open VS Code windows that use the same Claude login. They share the result through claude-usage-bars/ in Claude Code's config folder (~/.claude, or $CLAUDE_CONFIG_DIR). Dev containers that mount the same Claude config volume share it too.

The report is meant to be read by people, not programs: a new Claude Code version may word it differently. The extension then shows an error until it is updated.

Compatibility

Tested on Linux only, including in dev containers. There the extension runs in the container and uses the Claude Code installed in it. macOS and Windows should work but have not been tried: please open an issue if something goes wrong.

Install

Search for Claude Usage Bars in the Extensions view, or install it from the Visual Studio Marketplace.

You can also download the .vsix from the latest release, then in VS Code run Extensions: Install from VSIX…, or:

code --install-extension claude-usage-hpee5o-<version>.vsix

Development

See CONTRIBUTING.md.

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