Claude Token Usage BarEnglish · 한국어 A tiny VS Code extension that shows your Claude Code context-window usage and today's token consumption in one status bar item.
The item turns yellow when the context window drops below 25% free and red below 10%, so you get a warning before you run out of room. Both parts live in a single status bar item, so nothing (Copilot, encoding, Ln/Col…) can wedge between them.
How it works
InstallFrom the Marketplace (recommended)Open the Extensions panel ( From a
|
| Setting | Default | Description |
|---|---|---|
claudeMonitor.autoDetectContextWindow |
true |
Detect the window size from the session's model (Opus 4.8 = 1M, Haiku 4.5 = 200k). |
claudeMonitor.contextWindow |
1000000 |
Fallback window size (tokens) used when the model can't be detected. |
claudeMonitor.scope |
workspace |
workspace = current project's session; global = newest session anywhere. |
claudeMonitor.showTodayUsage |
true |
Show today's cumulative token usage next to the context bar. |
claudeMonitor.barWidth |
12 |
Bar width in characters. |
claudeMonitor.alignment |
right |
left or right side of the status bar. |
claudeMonitor.refreshMs |
3000 |
Refresh interval (ms). |
Commands
- Claude Token Usage Bar: Refresh Now — force an immediate update (also runs when you click the item).
- Claude Token Usage Bar: Show/Hide — toggle the status bar item.
License
MIT
