GitHub Copilot Chat must be installed and expose the internal export command above.
If the command is unavailable, the status bar shows Unavailable and polling retries automatically.
Notes and Limitations
Data source is an internal Copilot debug/export command and can change between Copilot versions.
Estimated costs use public API list pricing references for OpenAI/Anthropic/Google models (as-of implementation date).
Actual Copilot billing may differ from direct API list pricing.
Deduplication uses request ID priority:
requestId
serverRequestId
ourRequestId
fallback to log item ID
Usage counts aggregate successful requests only (ChatMLSuccess) and only for request types:
ChatCompletions
ChatMessages
ChatResponses
Live token scope is global per active VS Code profile/user data directory, not per workspace.
True retroactive all-time history before this extension started collecting is not available from this tracker.
If maxProcessedRequestIds is exceeded, very old request IDs are pruned; if those IDs reappear later they can be counted again.
Collector also attempts to read ccreq:latest.request.json as a best-effort supplemental source.
For richer live token capture, increase github.copilot.chat.debug.requestLogger.maxEntries in VS Code settings (Copilot internal request-log ring buffer size).