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

Copilot Credit Tracker

Supertechman

|
2 installs
| (0) | Free
Tracks GitHub Copilot AI credit usage against the current month.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Goal

A simple VS Code extension that compares your GitHub Copilot monthly credit usage with how much of the month has passed. I built it for a quick status bar check to see whether I am on track or running ahead of budget, without needing a full dashboard or detailed cost analysis.

It shows this simple status bar message:

Copilot Credit Tracker Screenshot

Because I can (and really not because I need), there's a bit more detail in a webview panel that breaks down usage by model and shows the total usage percentage. That looks like this:

Copilot Credit Tracker Screenshot

Contacts

  • GitHub: supertechman
  • website: supertechman.com

Copilot Credit Tracker

Track your GitHub Copilot monthly AI credit usage directly in VS Code.

This extension adds a status bar indicator that compares:

  • how much of the current month has passed
  • how much of your monthly Copilot credit budget has been used

Click the status bar item to open a detailed panel with a model-by-model usage breakdown.

Features

  • Status bar usage snapshot (month progress vs credit usage)
  • Overuse warning when usage is ahead of month progress
  • Detailed webview panel with:
    • month elapsed
    • total credits used
    • usage percentage
    • usage by model
  • Configurable monthly credit limit

How It Works

  1. On startup, the extension checks your GitHub authentication session in VS Code.
  2. It requests your GitHub user profile.
  3. It fetches your monthly AI credit usage from GitHub billing APIs.
  4. It calculates your usage percentage against your configured monthly limit.
  5. It updates the status bar and refreshes automatically every 30 minutes.

If you are not signed in, the extension prompts you to authenticate with GitHub.

Requirements

  • VS Code 1.125.0 or newer (at least this was the one it was developed for and tested on)
  • GitHub Authentication extension enabled (built-in dependency: vscode.github-authentication)
  • A GitHub account with Copilot access

Installation

Option 1: From Marketplace (when published)

  1. Open Extensions in VS Code.
  2. Search for Copilot Credit Tracker.
  3. Click Install.

Option 2: From VSIX (local/manual install)

  1. You can download the latest .vsix file from the releases page. If you do that, you can start on step 2. Otherwise, you can build the .vsix file yourself from the source code:
  2. Package the extension:
    • npm install
    • npm run compile
    • npx @vscode/vsce package
  3. In VS Code, open Extensions.
  4. Select More Actions (three dots) and choose Install from VSIX.
  5. Pick the generated .vsix file.

Usage

  1. Open VS Code.
  2. Sign in to GitHub if prompted.
  3. Look at the right side of the status bar for the Copilot usage indicator.
  4. Click the status bar item to open the full monthly breakdown panel.

Status meanings:

  • check icon: usage pace is healthy
  • warning icon: usage pace is ahead of month progress
  • API Error: request to GitHub failed
  • Auth Required: GitHub sign-in is needed

Configuration

This extension contributes one setting:

  • copilotCreditTracker.monthlyLimit
    • Type: number
    • Default: 7000
    • Description: your monthly GitHub AI credit cap

Example values:

  • 1500 for a lower-tier plan
  • 7000 for a higher-tier plan

Update this in Settings if your monthly credit allowance differs from the default.

Data and Permissions

The extension uses your GitHub auth token from VS Code to call:

  • https://api.github.com/user
  • https://api.github.com/users/{login}/settings/billing/ai_credit/usage

Data is used only to compute and display your usage inside VS Code. No backend service is included in this extension.

Troubleshooting

  • Auth Required shown in status bar:
    • Sign in to GitHub via VS Code Accounts menu, then wait for refresh.
  • API Error shown in status bar:
    • Verify internet access.
    • Confirm your GitHub account can access Copilot billing usage.
    • Reload VS Code and try again.
  • No usage data in panel:
    • There may be no usage yet for the selected month.
    • Wait for the next refresh or reload window.

Development

  1. Install dependencies:
    • npm install
  2. Build once:
    • npm run compile
  3. Watch mode:
    • npm run watch
  4. Run extension tests:
    • npm test
  5. Launch extension in a VS Code Extension Development Host using F5.

Known Notes

  • Usage refresh interval is 1 hour.
  • The default monthly limit is a fallback value; configure it for your real plan.

Changelog

See CHANGELOG.md for version history.

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