Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Binarii Cost TrackerNew to Visual Studio Code? Get it now.
Binarii Cost Tracker

Binarii Cost Tracker

binarii

|
7 installs
| (0) | Free
Shows GitHub Copilot and Claude consumption as circular progress indicators in the status bar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Binarii Cost Tracker

Track your GitHub Copilot and Claude usage directly in the VS Code status bar.

 ◑ 45% Claude  ◔ 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 usage sync via Claude API (macOS) — no manual setup needed
  • Real-time tracking between API syncs using local session files
  • Tooltip with session %, reset countdown, 7-day usage, and per-model breakdown (Sonnet, Opus)
  • Smart sync: API is called at startup, then re-syncs automatically at every usage threshold (every 10% by default)

Localization

  • English and French supported out of the box
  • Follows your VS Code display language automatically

Getting Started

Copilot

  1. Install the extension
  2. When prompted, click Connect GitHub to authenticate
  3. Your Copilot usage appears in the status bar

Claude

  1. Install Claude Code if you haven't already
  2. Sign in to Claude Code
  3. Your Claude usage appears automatically in the status bar (macOS)

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 token refresh interval in seconds
claudeCost.apiEnabled true Enable API-based usage sync (macOS only)
claudeCost.apiSyncThreshold 10 Sync API every N% of usage increase

Commands

  • Binarii Cost: Refresh Copilot — Refresh Copilot usage
  • Binarii Cost: Connect GitHub — Authenticate with GitHub
  • Binarii Cost: Refresh Claude — Refresh Claude usage and sync with API

How it works

Copilot

Queries GitHub's internal Copilot API to fetch your quota usage directly.

Claude — Hybrid tracking

Claude usage tracking combines two data sources to stay accurate without excessive API calls:

  1. API sync — At startup, the extension calls the Claude API to get your exact usage percentage (e.g. 42%) and the session reset time. This is the "baseline".

  2. Local inference — Between API syncs, the extension reads Claude Code's local session files (~/.claude/projects/) every 120s to count new tokens. It converts this token delta into an estimated percentage increase based on the baseline ratio.

  3. Threshold re-sync — When the estimated usage crosses a threshold (every 10% by default), the extension calls the API again to correct any drift and establish a new baseline.

This means: if the API says you're at 42% and you've used 15% more tokens locally, the status bar shows ~57%. When you cross 50%, it re-syncs with the API to get the real number.

Setting What it controls
claudeCost.refreshInterval How often local token files are re-read (default: 120s)
claudeCost.apiSyncThreshold How often the API is called to correct the estimate (default: every 10%)

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft