Skip to content

rajbos/github-copilot-token-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,775 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

GitHub Copilot Token Tracker

AI Engineering Fluency

Track your GitHub Copilot token usage and AI Fluency across VS Code, Visual Studio, and the command line. All data is read from local session logs β€” nothing leaves your machine unless you opt in to cloud sync.

Build

Supported AI engineering tools

  • VS Code + GitHub Copilot (Stable, Insiders, Exploration)
  • VSCodium / Cursor
  • GitHub Copilot CLI
  • OpenCode + GitHub Copilot
  • Crush + GitHub Copilot
  • Claude Code (Anthropic)
  • Claude Desktop Cowork (Anthropic)
  • Visual Studio + GitHub Copilot

Pick your tool

πŸ–₯️ VS Code Extension (Chromium)

Real-time token usage in the status bar, fluency score dashboard, usage analysis, cloud sync, and more. Works with all Chromium-based VS Code forks β€” VS Code, Windsurf, Cursor, VSCodium, Trae, Kiro, Void, and more.

Install - VS Code VS Code installs Install - Windsurf (Open VSX) Open VSX installs

# Install from the VS Code Marketplace
ext install RobBos.copilot-token-tracker
πŸ“¦ Install in other Chromium-based editors (Open VSX)
# VSCodium
codium --install-extension RobBos.copilot-token-tracker

# Code OSS
code --install-extension RobBos.copilot-token-tracker

# Windsurf
windsurf --install-extension RobBos.copilot-token-tracker

# Cursor
cursor --install-extension RobBos.copilot-token-tracker

# Trae (ByteDance)
trae --install-extension RobBos.copilot-token-tracker

# Kiro (AWS)
kiro --install-extension RobBos.copilot-token-tracker

# Void
void --install-extension RobBos.copilot-token-tracker

πŸ“– Full VS Code extension documentation


πŸ—οΈ Visual Studio Extension

Token usage tracking inside Visual Studio 2022+, reading Copilot Chat session files directly.

Visual Studio Marketplace Installs

πŸ“– Full Visual Studio extension documentation


⌨️ CLI

Run anywhere with Node.js β€” no editor required. Get usage stats, fluency scores, and environmental impact from the terminal.

npm downloads

npx @rajbos/ai-engineering-fluency stats

πŸ“– Full CLI documentation


πŸ”— Self-Hosted Sharing Server

Share usage data with your team without an Azure account. Run a lightweight API server on your own infrastructure β€” team members configure a single endpoint URL and upload automatically via their existing GitHub session.

  • Zero Azure required β€” SQLite + Docker, runs anywhere
  • Auth via GitHub β€” reuses the session already held by VS Code/Copilot, no API keys
  • Optional org gating β€” restrict uploads to GitHub org members
  • Web dashboard β€” see aggregated usage across your team
# docker-compose.yml
services:
  sharing-server:
    image: ghcr.io/rajbos/copilot-sharing-server:latest
    ports:
      - "3000:3000"
    environment:
      - GITHUB_CLIENT_ID=...
      - GITHUB_CLIENT_SECRET=...
      - SESSION_SECRET=...
      - BASE_URL=https://copilot.example.com
    volumes:
      - sharing_data:/data
volumes:
  sharing_data:
// VS Code settings β€” the only thing team members configure
{
  "copilotTokenTracker.backend.enabled": true,
  "copilotTokenTracker.backend.backend": "sharingServer",
  "copilotTokenTracker.backend.sharingServer.endpointUrl": "https://copilot.example.com"
}

πŸ“– Full sharing server documentation


Contributing

Interested in contributing? Check out our Contributing Guide for:

  • 🐳 DevContainer Setup β€” Isolated development environment
  • πŸ”§ Build & Debug Instructions β€” How to run and test locally
  • πŸ“‹ Code Guidelines β€” Project structure and development principles
  • πŸš€ Release Process β€” CI/CD pipelines and automated releases

We welcome contributions of all kinds β€” bug fixes, new features, documentation improvements, and more!

About

VS Code Extension that shows information about the estimated token usage of GitHub Copilot

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors