Estimate your GitHub Copilot AI-credit cost in preparation for June 1st. Pulls usage from VS Code, OpenCode, Pi, and GitHub Copilot CLI, aggregates it based on the new per-token pricing, and generates a local HTML report. Fully local.
Relevant links
- April 27th, 2026: GitHub Copilot is moving to usage-based billing
- Models and per-token pricing for GitHub Copilot
- Usage-based billing for individuals
- Usage-based billing for organizations and enterprises
TL;DR: GitHub Copilot is moving from premium-request quotas to per-token billing on June 1st. Agentic workflows can now cost more than the old premium-request mental model suggests.
Just let your agent do it
Don't want to run this yourself? Paste this prompt into your coding agent:
Clone https://github.com/PanAchy/copilot-arewecooked, install dependencies, build it, and run it.
Then open the generated HTML report and tell me whether or not I'm going to be cooked under the new Copilot AI-credit billing.
Setup
The quickest way (requires Node.js 20+):
npx copilot-arewecooked
Or clone and build:
git clone https://github.com/PanAchy/copilot-arewecooked.git
cd copilot-arewecooked
npm install
npm run build
npm startBy default, this writes an HTML report like:
copilot-report-YYYY-MM-DD.html
Options
| Flag | Description |
|---|---|
--days <n> |
Days to look back (default: all available data) |
--json |
Print detailed normalized JSON to stdout |
--html |
Write HTML report to a specific path |
npm start -- --days 30 npm start -- --html report.html npm start -- --json
How data is extracted
| Source | Paths | Token accuracy |
|---|---|---|
| VS Code | ~/Library/Application Support/Code/User/workspaceStorage/*/chatSessions/*.jsonl (macOS) · %APPDATA%/Code/User/workspaceStorage/*/chatSessions/*.jsonl (Windows) · ~/.config/Code/User/workspaceStorage/*/chatSessions/*.jsonl (Linux) |
Input estimated, output exact, cache not persisted |
| OpenCode | ~/.local/share/opencode/opencode.db (macOS and Linux) · %LOCALAPPDATA%/opencode/opencode.db / %APPDATA%/opencode/opencode.db (Windows) |
All exact (input, output, cache read/write) |
| Pi | ~/.pi/agent/sessions/**/*.jsonl (all platforms) |
All exact (input, output, cache read/write) |
| Copilot CLI | ~/.copilot/session-state/*/events.jsonl (all platforms) |
Output exact, input estimated, compaction exact |



























