Skip to content

j4rviscmd/vscode-copilot-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

51 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

VSCode Copilot Usage

statusbar screenshot

Latest Release Last Commit License

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:

  1. Open VSCode
  2. Press Cmd+Shift+X (macOS) or Ctrl+Shift+X (Windows/Linux) to open Extensions
  3. Search for "Copilot Usage"
  4. 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:

  1. Request GitHub authentication (if not already authenticated)
  2. Fetch your Copilot usage data
  3. 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.

License

MIT