[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2934":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":26,"discoverSource":27},2934,"copilot-arewecooked","PanAchy\u002Fcopilot-arewecooked","PanAchy","Estimate your GitHub Copilot AI-credit cost in preparation for June 1st.","",null,"TypeScript",136,12,2,0,7,20,48.84,"MIT License",false,"develop",[],"2026-06-12 04:00:16","\u003Cdiv align=\"center\">\n\n# Yo GitHub Copilot: are we cooked?\n\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fcopilot-arewecooked)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fcopilot-arewecooked)\n[![npm downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdw\u002Fcopilot-arewecooked)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fcopilot-arewecooked)\n\n\u003C\u002Fdiv>\n\nEstimate your GitHub Copilot AI-credit cost in preparation for June 1st.\nPulls usage from VS Code, OpenCode, Pi, Zed, GitHub Copilot CLI, and Copilot for Xcode, aggregates it based on the new per-token pricing, and generates a local HTML report. **Fully local**.\n\n![HTML report preview](.\u002Fdocs\u002Fassets\u002Freport-preview.png)\n\n#### Relevant links\n\n- [April 27th, 2026: GitHub Copilot is moving to usage-based billing](https:\u002F\u002Fgithub.blog\u002Fnews-insights\u002Fcompany-news\u002Fgithub-copilot-is-moving-to-usage-based-billing\u002F)\n- [Models and per-token pricing for GitHub Copilot](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Freference\u002Fcopilot-billing\u002Fmodels-and-pricing#model-multipliers-for-annual-copilot-pro-and-copilot-pro-subscribers)\n- [Usage-based billing for individuals](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fconcepts\u002Fbilling\u002Fusage-based-billing-for-individuals)\n- [Usage-based billing for organizations and enterprises](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fconcepts\u002Fbilling\u002Fusage-based-billing-for-organizations-and-enterprises)\n\n> 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.\n\n## Quick start\n\n```bash\nnpx copilot-arewecooked\n```\n\nThis scans your local Copilot usage data, estimates your AI-credit cost under the new billing, and writes an HTML report + PNG screenshot to your current directory:\n\n```text\ncopilot-report-*.html\ncopilot-report-*.png\n```\n\n### Flags\n\n| Flag                   | Description                                                                                                           |\n| ---------------------- | --------------------------------------------------------------------------------------------------------------------- |\n| `--days \u003Cn>`           | Days to look back (default: all available data)                                                                       |\n| `--since \u003Cdate>`       | Only include records from this date onward (YYYY-MM-DD)                                                               |\n| `--auto-model \u003Cmodel>` | Treat records reported as `auto` as a specific model for cost estimation (e.g. `gpt-5.3-codex`)                       |\n| `--json`               | Print detailed normalized JSON to stdout (mutually exclusive with `--terminal`)                                       |\n| `--terminal`           | Print a compact report to the terminal instead of generating HTML\u002FPNG (mutually exclusive with `--json` and `--html`) |\n| `--html [path]`        | Write HTML report to a specific path (default: auto-generated filename)                                               |\n\n> **Note on `auto` model:** Some tools (e.g. VS Code Copilot) may report the model as `auto` when the user has not selected a specific model. Credits for those requests will show as zero unless you specify `--auto-model` to map them to a known priced model. The HTML report will include a note when any `auto` records are remapped.\n\n## How data is extracted\n\n| Source                | Paths                                                                                                                                                                                                                                                                                 | Token accuracy                                                         |\n| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |\n| **VS Code**           | `~\u002FLibrary\u002FApplication Support\u002FCode{, - Insiders}\u002FUser\u002FworkspaceStorage\u002F*\u002FchatSessions\u002F*.jsonl` (macOS) · `%APPDATA%\u002FCode{, - Insiders}\u002FUser\u002FworkspaceStorage\u002F*\u002FchatSessions\u002F*.jsonl` (Windows) · `~\u002F.config\u002FCode{, - Insiders}\u002FUser\u002FworkspaceStorage\u002F*\u002FchatSessions\u002F*.jsonl` (Linux) | Input estimated, output exact, cache not persisted                     |\n| **OpenCode**          | `~\u002F.local\u002Fshare\u002Fopencode\u002Fopencode.db` (macOS and Linux) · `%LOCALAPPDATA%\u002Fopencode\u002Fopencode.db` \u002F `%APPDATA%\u002Fopencode\u002Fopencode.db` (Windows)                                                                                                                                          | All exact (input, output, cache read\u002Fwrite)                            |\n| **Pi**                | `~\u002F.pi\u002Fagent\u002Fsessions\u002F**\u002F*.jsonl` (all platforms)                                                                                                                                                                                                                                     | All exact (input, output, cache read\u002Fwrite)                            |\n| **Zed**               | `~\u002F.local\u002Fshare\u002Fzed\u002Fthreads\u002Fthreads.db` or `Library\u002FApplication Support\u002FZed\u002Fthreads\u002Fthreads.db`                                                                                                                                                                                       | All exact (input, output, cache read\u002Fwrite)                            |\n| **Copilot CLI**       | `~\u002F.copilot\u002Fsession-state\u002F*\u002Fevents.jsonl` (all platforms)                                                                                                                                                                                                                             | Output exact, input estimated, compaction exact                        |\n| **Copilot for Xcode** | `~\u002FLibrary\u002FLogs\u002FGitHubCopilot\u002F*.log` (macOS only)                                                                                                                                                                                                                                     | All exact (input, output, cache read); model attribution via heuristic |\n","copilot-arewecooked 是一个用于估算 GitHub Copilot 在新的按使用量计费模式下的 AI 信用成本的工具。其核心功能包括从 VS Code、OpenCode、Pi、Zed、GitHub Copilot CLI 和 Copilot for Xcode 中提取使用数据，根据新的每令牌定价模型汇总，并生成本地 HTML 报告。该工具完全在本地运行，确保了数据的安全性和隐私性。适用于即将在6月1日生效的新计费模式前，个人开发者或团队希望了解并规划未来 Copilot 使用成本的场景。","2026-06-11 02:51:47","CREATED_QUERY"]