GitHub added a `totals_by_client` array to its Copilot usage metrics API. It captures model usage from external tools like OpenCode. Each entry lists the client name, request count, session count and token usage. It also breaks down metrics by model and selection mode. The change applies to enterprise and organization reports. Existing fields remain unchanged. Unrecognized clients are grouped under `other`. The API now covers server-side requests missing from IDE telemetry.
What changed
Copilot usage metrics API only reported usage from IDEs via `totals_by_ide`.
What it unlocks
Seeing which external tools drive Copilot model requests and their token usage.
What you need to act on it
- enterprise or organization owner role
- Copilot usage metrics policy enabled
- 1-day or 28-day report scope
Sources