copilot-usage-stats
Report how many tokens, API calls, and how much wall time a project has consumed in Copilot, and convert those tokens into GitHub AI Credits and dollars at the published per-model rates. Carries the repository-scoped join, the verified fact that input_tokens already contains cache_read_tokens, and the cost column that holds a legacy request multiplier rather than money. USE FOR: how many tokens has this project used, what did this repo cost me in credits or dollars, token consumption per repository or branch, usage for a day or a date range, which model burned the most context, cache-hit ratio, API call counts, per-session totals, comparing VS Code chat against Copilot CLI usage. DO NOT USE FOR: advice on lowering spend or token-reduction tips (use chronicle cost-tips), standups and session search (use chronicle), measuring whether a Customization triggers or works (use agent-evals), choosing a Copilot plan, invoices, or seat management.
- Compatibility
- Requires the `copilot_sessionStoreSql` tool with `github.copilot.chat.localIndex.enabled` enabled, plus cloud sync (`chat.sessionSync.enabled`). The local SQLite store records no token data, so a local-only setup cannot answer any question in this Skill.
Pinned to revision 7a186c5dfcf8, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.