Claude Code Usage MonitorVSCode extension that shows your Claude Code usage limits live in the status bar — both the 5-hour and 7-day rolling windows.
What it doesThe extension reads your locally stored Claude Code OAuth token and calls the Anthropic API every 5 minutes (configurable) to fetch your current utilisation for both quota windows. The result is shown as a progress bar in the VSCode status bar at the bottom right.
Colour coding:
Click the status bar item → pick display mode ( Requirements
Where credentials are stored
InstallationOption A — from a
|
| Setting | Default | Description |
|---|---|---|
claudeUsage.refreshIntervalSeconds |
300 |
How often to poll the API in seconds (minimum: 60) |
claudeUsage.defaultMode |
"both" |
What to show: "5h", "7d", or "both" |
claudeUsage.credentialsPath |
"" |
Override the credentials file path (leave empty for auto-detect) |
Commands
Open the Command Palette (Ctrl+Shift+P) and type:
| Command | Description |
|---|---|
Claude Usage: Refresh Now |
Force an immediate API refresh |
Claude Usage: Toggle View (5h / 7d / Both) |
Change the status bar display mode |
Troubleshooting
Status bar shows "No token — run claude auth login"
→ Claude Code CLI is not authenticated. Run claude auth login in a terminal.
Status bar shows "Auth error — re-login to Claude Code"
→ The stored token has expired. Run claude auth login again.
Status bar shows "Rate limited — retrying in Xm"
→ The Anthropic usage API has a rate limit. The extension backs off automatically (5 min → 10 min → 20 min → max 60 min) and retries on its own. No action needed.
Status bar shows "Fetch failed"
→ Network error or temporary API issue. The extension will retry on the next interval.
Extension does not appear after install
→ Make sure VSCode was fully restarted (all windows closed). Check Help → Toggle Developer Tools → Console for any loading errors.