VS Code extension/AI/Published

Claude per Device Usage

See how much of your Claude Code 5-hour and 7-day usage limits this device used, versus others on a shared account, live in the VS Code status bar.

Built with
  • TypeScript
  • VS Code Extension API
  • Webview
Runs as
Status bar item · Activity Bar panel · Commands
Status · v2.1.1
Published on the VS Code Marketplace and on Open VSX (for Cursor, Windsurf, VSCodium and other VS Code-based editors). MIT licensed.
Downloads · live
1,007 downloads (VS Code 1 · Open VSX 1,006)

§ 01

What it is

When one Claude account is shared across several computers or people, the account meter shows everyone's use added together. This extension shows how much of the 5-hour and 7-day limits came from this computer only, as a status bar meter and a sidebar panel.

The problem

The account usage meter cannot tell you which device burned through the limit, so on a shared account you cannot see your own share.

Runtime

  1. Status bar5h 12% · 7d 31%
  2. Calibration% per weighted token
  3. Local logsClaude Code JSONL
  4. Usage endpointAccount % and reset times

§ 02

Screenshot

My Claude Usage panel in VS Code: 5-hour limit at 12.5% used by this device and 35.5% by others on the account, 7-day limit at 23.2% by this device, with token breakdowns and reset times
The sidebar panel: this device versus others on the account, per limit, with tokens and reset times.

Real screenshots of the extension's own interface; some show sample content.

§ 03

How it works

  1. 01

    It reads the local Claude Code logs and adds up the tokens used on this device, weighted by model price.

  2. 02

    When you open the panel or click Refresh, it reads the account usage percent and each window's reset time from your signed-in account.

  3. 03

    By comparing the two over time it learns how many percent one unit of use costs (calibration).

  4. 04

    Your share is this device's use times that rate; until calibrated it shows – instead of a wrong number.

§ 04

Key features

  • Status bar meter like `5h 12% · 7d 31%`; hover for details, click to refresh.
  • Sidebar panel per limit: this device, others on the account, the account total and the reset time.
  • Token breakdown for the window: input, output, cache write and cache read.
  • Windows follow the account's own reset times instead of a fixed day or hour.
  • Share a calibrated rate with another device on the same account through a setting.
  • Finds Claude Code data in CLAUDE_CONFIG_DIR, ~/.config/claude, ~/.claude and WSL distros.

§ 05

What it reads and writes

Local Claude Code logs
Read on your computer only; never sent anywhere.
Stored Claude Code login
Used read-only to call the usage endpoint for the account percent; it never refreshes or changes the login.

§ 06

Hard parts & limits

  • The account usage endpoint is unofficial and can change without notice.
  • API-key logins have no 5-hour or 7-day limit, so there is nothing to show for them.

§ 07

Write-ups