GitHub CopilotCopilot usage metrics count requests from tools like OpenCode
GitHub's October 23 changelog says the Copilot usage metrics API now reports model usage from tools that were missing from reports, including OpenCode. Enterprise, organization, enterprise-user, and organization-user 1-day and 28-day reports add a totals_by_client array. Each entry names the client, such as opencode, claude_code, codex, zed, copilot_cli, github_app, cloud_agent, code_review, vscode, or jetbrains, and unrecognized clients are grouped as other. An entry includes request_count for successful model requests, session_count, token_usage, and totals_by_model. model_selection_mode is user_selected, auto, product_selected, other, or unknown. In the aggregated 28-day reports, totals_by_client appears in each day_totals entry. Access requires the View Copilot Metrics permission and the Copilot usage metrics policy. request_count counts model calls, not prompts. Clients are identified by the integration ID they send, which GitHub describes as a best-effort grouping. Existing fields are unchanged, and totals_by_client is an empty array when there is no usage to report. Copilot code review and Copilot cloud agent report product_selected because the product chooses the model, and Copilot code review models are reported as unknown.
Source: GitHub changelog