Claude HUD
A lightweight VSCode status bar extension for Claude Code users.
- Token usage — see your 5-hour session usage at a glance
- Model switcher — toggle between Opus and Sonnet with one click
![Status bar showing Claude usage percentage and model selector]
Setup
- Install the extension
- Open the Command Palette (
Ctrl+Shift+P) → Claude HUD: Setup (Session Key)
- Go to claude.ai →
F12 → Application tab → Cookies → https://claude.ai → copy the sessionKey value
- Paste it into the prompt
That's it. Usage appears in the status bar immediately.
Features
Token Usage (status bar — left side)
| Display |
Meaning |
● Claude 24% \| 3h 12m |
24% used, resets in 3h 12m |
⚠ Claude 80% \| 45m |
Warning: high usage |
🔥 Claude 95% |
Critical: almost out |
Click the usage indicator to see detailed info (5-hour session + 7-day limit).
Model Switcher (status bar — next to usage)
Click ⊞ Default (Opus) or ⊞ Sonnet to toggle between models.
Note: Model changes apply to the next conversation, not the current one.
Session Key
The sessionKey is a long-lived cookie from claude.ai. It typically stays valid for weeks to months.
If it expires, the status bar shows "Re-auth needed" — just run Setup again.
Your session key is stored securely in VSCode's encrypted secret storage (not in plain text).
Requirements
- Claude Code extension installed
- A claude.ai account (any plan)
License
MIT
| |