Track your GitHub Copilot and Claude usage directly in the VS Code status bar.
◑ 45% Claude Σ 12.40€ ◔ 12.3% Pro
Features
Copilot Usage
- Circular progress indicator showing your Copilot quota consumption
- Supports Free, Pro, Pro+, Business, and Enterprise plans
- Detects unlimited plans
- Tooltip with detailed usage breakdown and reset date
Claude Usage
- Automatic API sync — usage % and reset time are fetched from the Anthropic
/api/oauth/usageendpoint using your Claude Code OAuth credentials. No manual setup, no API key. - Cross-platform credentials — Keychain on macOS,
~/.claude/.credentials.jsonon Linux / Windows / WSL. - Real-time inference between syncs — local JSONL files fill the gap so the % updates continuously without spamming the API.
- 5-minute fixed refresh with on-disk cache + lock file shared across windows: no matter how many VS Code windows you open, the API is hit at most once every 5 minutes total.
- Rich tooltip : 5h session, 7-day, 7-day Opus / Sonnet / Cowork buckets, extra credits, per-model token + cost breakdown in EUR.
- Optional all-time cost bar — second status bar item showing the cumulative cost of every Claude Code session since first usage.
Localization
- English and French supported out of the box
- Follows your VS Code display language automatically
Getting Started
Copilot
- Install the extension
- When prompted, click Connect GitHub to authenticate
- Your Copilot usage appears in the status bar
Claude
- Install Claude Code if you haven't already
- Sign in to Claude Code (
claude /login) - Your Claude usage appears automatically — no further setup
Settings
| Setting | Default | Description |
|---|---|---|
copilotCost.enabled |
true |
Show Copilot usage in the status bar |
copilotCost.refreshInterval |
300 |
Refresh interval in seconds |
claudeCost.enabled |
true |
Show Claude usage in the status bar |
claudeCost.refreshInterval |
120 |
Local JSONL re-scan interval (does not affect API cadence — the API is fixed at 5 min). Lower = smoother %, higher = less disk I/O. |
claudeCost.allTimeEnabled |
false |
Show a second status bar item with the cumulative cost (€) of every Claude session |
Commands
- Binarii Cost: Refresh Copilot — refresh Copilot usage
- Binarii Cost: Connect GitHub — authenticate with GitHub
- Binarii Cost: Refresh Claude — refresh Claude usage (also triggers an API sync if cache is stale)
- Binarii Cost: Refresh Claude All-Time Cost — recompute the cumulative cost across all sessions
How it works
Copilot
Queries GitHub's internal Copilot API (/copilot_internal/user, fallback /copilot_internal/v2/token) to fetch your quota directly from your authenticated session.
Claude — API + local inference
- API baseline — every 5 min, the extension calls Anthropic's
/api/oauth/usageendpoint (the same one Claude Code itself uses) with your local OAuth token. The response provides the official utilization % and reset timestamp for the current 5h session, plus 7-day buckets per model. - Local inference — between API calls, the extension re-scans Claude Code's local session files (
~/.claude/projects/) to count newly consumed tokens. It converts the token delta into a % increase based on the API-anchored ratio, so the status bar moves in real time without hitting the network. - Multi-window safety — all VS Code windows share an on-disk cache (
~/.claude/usage-cache.json) and a lock file. With N windows open, the API is called at most once every 5 minutes total.
The cost breakdown in the tooltip is computed entirely locally from the JSONL token counts × Anthropic's published pricing (per model, per token type), converted to EUR.
License
MIT