See how full your Claude Code context window is and how much of your subscription quota is left — right in the VS Code status bar.
Unofficial community extension. Not affiliated with or endorsed by Anthropic.
Features
Context usage of the active Claude Code session, shown as a ring icon + percentage. Follows whichever Claude tab you focus; click to pin a specific session.
Quota usage for the 5-hour and 7-day windows, with reset times. Refreshes every 5 minutes; click the item to refresh immediately.
Hover for details: model, tokens used, cache reads, and progress bars.
Turns yellow at 60% and red at 80%.
Requirements
The official Claude Code extension (or the claude CLI on your PATH)
Quota display requires signing in with a Claude subscription (Pro / Max)
Remote / WSL: the extension runs on the workspace side so it can read ~/.claude there
Settings
Setting
Default
Description
claudeCtx.windowSize
200000
Context window size in tokens (use 1000000 for 1M-context models)
claudeCtx.pollSeconds
10
How often context usage is re-read
claudeCtx.quotaRefreshMinutes
5
How often quota is refreshed; 0 disables automatic refresh
claudeCtx.claudePath
""
Path to the claude binary; empty = use the one bundled with the Claude Code extension
How it works / privacy
Context usage is read from Claude Code's local session transcripts in ~/.claude/projects/.
Quota is obtained by running the official CLI command claude -p /usage --no-session-persistence, which does not call a model or consume tokens.
The extension itself makes no network requests and collects no data.
Both data sources are Claude Code internals rather than a public API, so a future Claude Code release may change them.
中文说明
在 VS Code 状态栏显示 Claude Code 当前会话的上下文占用,以及订阅的 5 小时 / 7 天额度使用情况。点击上下文项可切换会话,点击额度项可立即刷新。本插件为社区非官方插件,与 Anthropic 无关。