Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AI Credits MonitorNew to Visual Studio Code? Get it now.
AI Credits Monitor

AI Credits Monitor

Boyka Chongyang Zhu

|
95 installs
| (0) | Free
Show live GitHub Copilot AI credits and Claude Code usage in the status bar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI Credits Monitor

Real-time GitHub Copilot AI credits and Claude Code usage/cost estimate displayed in the VS Code status bar.

Features

  • Status bar icon shows your AI usage at a glance
  • Two providers in one place — GitHub Copilot and Claude Code, each with its own data source and per-model breakdown
  • Hover the status bar icon to see both providers stacked in one panel: cost, requests, sessions, and input/output/cache tokens with per-item dollar amounts
  • Click the status bar item to cycle the period between Today / This Week / This Month (applies to both providers)
  • Usage Report — a webview with daily-consumption charts and per-model tables; switch between Copilot and Claude Code tabs there
  • Copilot debug-logging prompt — if the Copilot Chat extension is installed but its debug file logging is off, the extension offers a one-click button to enable it (otherwise VS Code Copilot usage can't be collected)
  • Providers auto-hide when unavailable: only sources with actual local data are shown
  • Auto-refreshes every 5 minutes (configurable)

Installation

Install from the VS Code Marketplace by searching for AI Credits Monitor, or install manually:

code --install-extension ai-credits-monitor-0.7.0.vsix

Once installed, the extension activates automatically — look for the $(pulse) icon in the right side of your status bar.

Usage

Action How
View usage summary Hover over the status bar icon
Switch period Click the status bar icon (cycles Today → Week → Month)
Refresh manually Run command AI Credits: Refresh Now
Open the usage report Run command AI Credits: Usage Report (or the link at the bottom of the hover panel)
Show a quick summary Run command AI Credits: Show Details

All commands are accessible via the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):

  • AI Credits: Switch Period (Today/Week/Month)
  • AI Credits: Refresh Now
  • AI Credits: Show Details
  • AI Credits: Usage Report

Settings

Setting Description Default
aiCreditsMonitor.refreshIntervalMinutes Auto-refresh interval in minutes 5
aiCreditsMonitor.defaultPeriod Default period on startup (today / week / month) today

How It Works

Everything runs entirely offline — no network requests are made.

Provider Data source Metric
Copilot VS Code debug logs (workspaceStorage/**/GitHub.copilot-chat/debug-logs/**/main.jsonl) + Copilot CLI SQLite db (~/.copilot/session-store.db, table assistant_usage_events) AI Credits (copilotUsageNanoAiu / total_nano_aiu, ÷1e9). Both sources use the same credit unit and are merged into one figure. Other IDEs (IntelliJ, etc.) not included.
Claude Code Session logs (~/.claude/projects/**/*.jsonl), CLI + IDE sessions Est. API-equivalent cost from per-model token pricing (input/output/cache read/cache write). Cloud sessions are not included; subscription plans are not actually billed per token — treat as an estimate.

The Copilot CLI database is SQLite in WAL mode; the extension reads it via sql.js (pure WASM, no native build) and merges any uncommitted WAL pages so active-session usage is counted.

Claude Code records are deduplicated by message ID, so resumed sessions are not double-counted.

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