Copilot Credit Meter
Copilot Credit Meter is a free, open-source VS Code extension that shows an estimated GitHub Copilot AI Credit usage meter in the status bar.
Features
- Shows estimated Copilot AI Credit usage in the VS Code status bar.
- Fetches confirmed premium-interaction usage from GitHub.
- Adds local usage observed in Copilot Chat debug logs after the extension starts.
- Displays the current account, confirmed usage, estimated usage, budget, and next reset in the details view.
- Refreshes confirmed usage automatically and on demand.
- Supports left or right status bar alignment.
Requirements
- VS Code 1.92 or newer.
- A GitHub account with access to GitHub Copilot usage data.
Getting Started
- Install and activate Copilot Credit Meter.
- Sign in to GitHub when prompted, or run
Copilot Credit Meter: Sign In from the Command Palette.
- The meter appears in the status bar. Select it to open details.
The extension refreshes confirmed GitHub usage every three minutes by default. Use Copilot Credit Meter: Refresh to update it immediately.
Local Estimation
To update immediately after a Copilot response completes, enable github.copilot.chat.agentDebugLog.fileLogging.enabled in VS Code settings. Without that setting, the meter still shows confirmed API usage when available.
Local estimation is added to the latest confirmed GitHub usage and is reset when the extension restarts or the GitHub usage period changes. The configured monthly budget is an estimate used for the meter and does not change your GitHub plan or billing.
Settings
| Setting |
Default |
Description |
copilotCreditMeter.monthlyBudget |
1900 |
Estimated monthly AI Credit budget used by the meter. |
copilotCreditMeter.refreshIntervalMinutes |
3 |
Minutes between confirmed usage refreshes. |
copilotCreditMeter.alignment |
right |
Status bar alignment: left or right. |
Privacy
Copilot debug logs are read locally. This extension does not store or transmit prompt contents. The only network request made by the extension is an authenticated request to GitHub's Copilot usage endpoint.
Limitations
GitHub's Copilot usage endpoint is an internal API and may change without notice. Usage data may be unavailable when GitHub authentication expires, access is denied, the endpoint is unavailable, or GitHub rate limits the request.
The local estimate depends on Copilot Chat debug-log files being available and may differ from GitHub's confirmed usage.
Commands
Copilot Credit Meter: Refresh
Copilot Credit Meter: Show Details
Copilot Credit Meter: Sign In
Copilot Credit Meter: Open Copilot Debug Log Setting
Copilot Credit Meter: Open Settings
Development
npm install
npm run compile
npm run package
License
Released under the MIT License.