Goal & Quick Overview
When you have a GitHub Copilot subscription (Pro, Pro+, Max - you rich!), you know how much you should spend, you just want to pace yourself throughout the month. This is what this extension helps you do.
This extension compares your GitHub Copilot monthly credit usage (you can configure that on the settings) with how much of the month has passed (only God can change that). I needed this for a quick status bar check to see whether I am on track or running ahead of budget, without extra clicks and interactions and without the complexity of the information Copilot already provides. I am just a simple guy.
This extension has been described as "fantastic" by my mother multiple times. It shows only a simple status bar message like the following when all is well and you are behind your usage pace:

It will turn red if your usage pace is ahead of your monthly budget. If that is the case, you may have to go into your additional budget. It's fine, you'll get that and much more back when your vibe coded SaaS finally makes it big. You deserve it.

Wait, there's more?!
Yep, there's a webview panel that breaks down usage by model and shows the total usage percentage for the current month. I know, fantastic. That feature looks like this:

But wait, there's even more. The other day I wanted to know how my usage compared to previous months so I built an historical usage view into the extension as well because nothing can stop me and I do what I want. You can see here that I cannot control myself and have gone over budget a few times in plenty of moments of weakness.

It even has a blue button, one of the most requested features. You click it, it refreshes that table right there and then. Yes, I am that good.
How It Works
- On startup, the extension checks your GitHub authentication session in VS Code.
- It requests your GitHub user profile.
- It fetches your monthly AI credit usage from GitHub billing APIs.
- It calculates your usage percentage against your configured monthly limit.
- 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.144.0 or newer.
- GitHub Authentication extension enabled (built-in dependency: vscode.github-authentication).
- A GitHub account with Copilot access.
Installation
Option 1: From the Marketplace (for lazy users)
- Open Extensions in VS Code.
- Search for Copilot Credit Tracker.
- Click Install.
Option 2: Manual install (directly from .vsix or from source)
- You can download the latest .vsix file from the releases page. If you do that, you can start on step 3. below, otherwise, you can build the .vsix file yourself from the source code like a peasant:
- Package the extension:
- npm install
- npm run compile
- npx @vscode/vsce package
- In VS Code, open Extensions.
- Select More Actions (three dots) and choose Install from VSIX.
- Pick the generated .vsix file.
- Enlightenment.
Usage
- Open VS Code.
- Sign in to GitHub if prompted.
- Look at the right side of the status bar for the Copilot usage indicator.
- Click the status bar item to open the full monthly breakdown panel.
- In the panel, review the "Previous 12 Months" table and use "Refresh History" to sync updated historical data.
- Nirvana.
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 has 2 settings:
- copilotCreditTracker.monthlyLimit
- Type: number
- Default: 7000
- Description: your monthly GitHub AI credit cap
- *** under tests, should work *** copilotCreditTracker.refreshInterval
- Type: number
- Default: 30
- Maximum: 120
- Minimum: 2
- Description: The refresh interval for updating Copilot credit usage data (in minutes). Default is 30 minutes. Maximum allowed is 120 minutes, minimum is 2 minutes.
Example values for the monthly limit:
- 1500 for a lower-tier plan (Sorry, you poor).
- 7000 for a higher-tier plan (Copilot Copilot Pro+ <- me, medium wealth. I am grateful for each day).
- 100000000000000000000 (Altman, Amodei, Musk, DHH, that kind of people).
Update these 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:
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 the next 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.
- See annoying stuff section below.
Annoying stuff
- Sometimes the status bar item disappears if there are too many items there. Still not too sure what is going on exactly, but it seems to be a VS Code thingy.
- There's a little offset at times between what the extension reports and what you can see on the GH Copilot panel. I am not sure if that is a rounding error or if the API is not updated as often - but I'd imagine that the Copilot panel also would get it's information from the API, I am not sure at this moment. Even brilliant people have their moments.
- I am still not 100% certain if the configurable interval is working properly. I will kepp testing, results when I have them.
Development
- Install dependencies:
- Build once:
- Watch mode:
- Run extension tests:
- Launch extension in a VS Code Extension Development Host using F5.
Thanks
- Thanks to me.
- Thanks to you.
Awards
- If you read until the end here, you will be mentioned in the hall of fame of this extension which is a very important recognition. All you have to do is send a message to ci.res.network@gmail.com with your GH username - I will add you to the list that doesn't exist yet because nobody has done it so far, since 1992.