A VSCode extension that displays GitHub Copilot Premium Requests usage in the status bar
Features
Displays Premium Requests usage percentage in the status bar
Configurable label style (icon or text)
Configurable display mode (used/remaining amount)
Configurable refresh interval
Automatic GitHub authentication
Installation
Install from VSCode Marketplace:
Open VSCode
Press Cmd+Shift+X (macOS) or Ctrl+Shift+X (Windows/Linux) to open Extensions
Search for "Copilot Usage"
Click Install
Requirements
VSCode 1.85.0 or higher
GitHub account with Copilot subscription
Configuration
Setting
Type
Default
Description
copilotUsage.labelStyle
string
"icon"
Label style: "icon" or "text"
copilotUsage.displayMode
string
"used"
Display mode: "used" or "remaining"
copilotUsage.refreshInterval
number
60
Data refresh interval in seconds
copilotUsage.statusBarPriority
number
-1000
Status bar display priority (higher = further left)
Usage
After installation, the extension will:
Request GitHub authentication (if not already authenticated)
Fetch your Copilot usage data
Display the usage percentage in the status bar
Commands
Copilot Usage: Toggle Label Style (Icon/Text) - Switch between icon and text display
Copilot Usage: Toggle Display Mode (Used/Remaining) - Switch between used amount and remaining amount display
Copilot Usage: Set Refresh Interval - Change the data refresh interval
Status Bar Display
Icon mode: 🤖 n%
Text mode: Copilot: n%
- - Unable to fetch data (error or unlimited plan)
Development
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
[!WARNING]
This extension uses GitHub's internal API (api.github.com/copilot_internal/user) which is not officially documented. The API may change without notice, which could break this extension.