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

Claude per Device Usage

Giridharan S

|
1 install
| (0) | Free
Community tool. Shows how much of your Claude 5-hour and 7-day limits this device used, versus others on the same account.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude per Device Usage

Community tool for Claude Code users. Not made by or affiliated with Anthropic.

See your own share of your Claude 5-hour and 7-day limits right in the VS Code status bar.

If you share one Claude account across several devices or people, the account meter shows everyone's use added together. This extension shows how much of that came from this computer only.

5h 12% · 7d 31%

What you get

  • Status bar: 5h 12% · 7d 31% is your share of each limit. Hover for details. Click to refresh.
  • Sidebar panel: the My Claude Usage icon in the Activity Bar opens a panel for each limit:
    • this device's share of 100%
    • what others on the account used (highlighted)
    • the account total
    • when the window resets
    • your tokens in this window: input, output, cache write, cache read
  • Warning icon in the status bar if something fails (login expired, no network). Hover to see why.

Limits follow your own Claude account

The 5-hour and 7-day windows come from your signed-in Claude account. The extension asks Claude for the reset time of each window and counts your use from there. It does not assume a fixed day or hour.

  • Your 7-day window can reset on any weekday. The panel shows the exact reset day and time, for example Wed, Nov 19, 9:00 AM.
  • Your 5-hour window starts when your account says it starts.
  • When a window has ended and the new one has not started, nothing is counted until Claude reports the new window.

How your share is worked out

  1. The extension reads your local Claude Code logs and adds up the tokens you used, weighted by model price.
  2. It reads your account use (a percent) every few minutes.
  3. It learns how many percent one unit of your use costs, by comparing the two over time. This is called calibration.
  4. Your share is your use times that rate.

Only this device is counted. The percent is never the whole account total. The panel splits each limit into this device (blue) and others on this account (orange, highlighted), and shows the account total below.

Installed late? Your token counts come from the Claude Code logs already on your computer, so they cover your past use right away. The percent for this device needs calibration. Until then it shows – and "calibrating" instead of a wrong number. If you had an earlier version of this extension, its saved history is imported on first start, so it is accurate straight away. You can also paste a myClaudeUsage.sharedRate from another device on the same account.

If you use the same account on another device that is already calibrated, run My Claude Usage: Show Diagnostics, copy the myClaudeUsage.sharedRate line into your settings, and the new device can use it straight away.

Requirements

  • VS Code 1.74 or newer.
  • Claude Code installed and signed in with a Claude.ai account (Pro, Max, Team). API-key logins have no 5h or 7d limit, so there is nothing to show.
  • Claude Code must have run on this device, so there are logs to read.

The extension finds Claude Code data in CLAUDE_CONFIG_DIR, ~/.config/claude, ~/.claude and, on Windows, running WSL distros.

Privacy

  • Your logs are read on your computer only. They are never sent anywhere.
  • To get your account percent, the extension reads the login token Claude Code already stored (macOS Keychain, or .credentials.json) and calls Anthropic's usage endpoint api.anthropic.com/api/oauth/usage. That is the only network call.
  • It never refreshes or changes your login, so Claude Code is not signed out.
  • This uses an unofficial Anthropic endpoint. It can change or stop working without notice.

Commands

Command What it does
My Claude Usage: Refresh Check your account use now
My Claude Usage: Recalibrate Learn the rate again from saved history
My Claude Usage: Show Diagnostics Show folders found, login state, calibration, and the shareable rate

Settings

Setting What it does
myClaudeUsage.claudeDir Extra Claude Code data folder (the one with projects/ and .credentials.json). Leave empty to auto-detect.
myClaudeUsage.sharedRate Rate copied from Show Diagnostics on a calibrated device with the same account. Used until this device has its own.

Troubleshooting

  • "No Claude Code login found": sign in with Claude Code once, then click the status bar item.
  • "login expired": run any prompt in Claude Code to renew it.
  • "No Claude Code logs found": set myClaudeUsage.claudeDir to your Claude data folder.
  • Anything else: run My Claude Usage: Show Diagnostics and read the output.

Disclaimer

Not made by or affiliated with Anthropic. Numbers are an estimate of your share.

License

MIT

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