Claude Code Cost StatusbarA VS Code status-bar item showing live Claude Code consumption for the active session, in tokens — plus the real 5-hour / 7-day subscription quota. Built for subscription users who want an at-a-glance cockpit without leaving the editor. Install: search “Claude Code Cost Statusbar” in the VS Code Extensions
view, or run
The collapsed bar lives at the bottom-right of the status bar; hover it for the full breakdown shown above. Want to keep it open? Click “⤢ Open panel” in the tooltip (or run “Claude Code Statusbar: Open usage panel”) to dock a live-updating panel that stays until you close it. What it showsCompact status-bar line (click to refresh) — when the real quota is available it shows tariff only, per window:
When the quota channel is off/unavailable it falls back to the always-accurate
local number: Hover for the full breakdown (tooltip):
The Glossary — what you see / Что вы видите
Language / ЯзыкBy default the plugin follows the editor's display language (English for an English editor, Russian for a Russian one). To force a language, any of:
По умолчанию язык берётся из языка редактора. Сменить вручную: наведи курсор на
строку состояния и нажми «🌐 Сменить язык» внизу подсказки, либо палитра команд →
«Claude Code Statusbar: Switch language», либо Настройки → How it gets data
Privacy / securityYour OAuth token ( InstallFrom the Marketplace (recommended): search “Claude Code Cost Statusbar”
in the Extensions view, or run Build locally (for development):
Reload VS Code. The item appears on the right of the status bar. Settings (
|
| Key | Default | Meaning |
|---|---|---|
language |
auto |
Plugin language: auto (follow editor) / en / ru |
enabled |
true |
Show the item |
refreshSeconds |
10 |
Redraw interval |
alignment |
right |
Status-bar side |
cacheReadWeight |
0.1 |
effective weight for cache read |
cacheWriteWeight |
1.25 |
effective weight for cache write |
quota.enabled |
true |
Fetch real 5h/7d quota (costs ~tokens) |
quota.minPollSeconds |
300 |
Min seconds between quota calls |
credentialsPath |
"" |
Override credentials file location |
context.enabled |
true |
Show how full the model's context window is now (Models API, cached 24h) |
Reliability — what can temporarily break (important)
The plugin has two parts with different reliability:
- Local metrics (
work/effective/cache/ savings) are read from the local transcript files. They always work and depend on nothing external. - The real 5h/7d quota comes from an undocumented Anthropic channel (the
API response headers, read with your local OAuth token). If Anthropic changes
that mechanism, only the tariff line stops showing — the plugin does not
break: all local metrics keep working and the tariff is simply hidden with a
"temporarily unavailable" note. Because only
src/quota.tstouches that channel, a fix is a small, isolated patch. - The context-window % depends on the same external channel: it reads the
model's window limit from the Anthropic Models API using your local OAuth
token (cached 24h). If that channel changes, only the context line hides
(the % is never guessed) — local cost/cache metrics are unaffected. The fix is
likewise isolated to
src/quota.ts.
What the user does: nothing. When the channel changes, a fix is released and — if installed from the Marketplace — arrives as an automatic update.
This is a best-effort tool, distributed under the MIT license "as is", without warranty. Tariff problems are usually not the plugin's fault but a change on Anthropic's side, and are resolved by an update.
License
MIT.

