Improved accuracy and coverage in Copilot usage metrics reports GitHub announced three improvements to its Copilot usage metrics API, including CLI suggested lines of code reporting, IDE identification for server-side-only users, and more accurate AI credit attribution. These updates aim to provide enterprise administrators with more complete and trustworthy usage data across IDE, CLI, and server-side surfaces. Improvement Improved accuracy and coverage in Copilot usage metrics reports We’ve made three improvements to the Copilot usage metrics API https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-usage-metrics?apiVersion=2026-03-10 that make its reports more complete and accurate: GitHub Copilot CLI now reports suggested lines of code, users seen only through server-side telemetry now have their IDE identified, and AI credit consumption is now attributed more completely. What’s new whats-new GitHub Copilot CLI now reports suggested lines of code. CLI activity now contributes to the loc suggested to add sum and loc suggested to delete sum fields, which previously always reported 0 for the CLI. Code generation counts are also more accurate on newer CLI versions, where suggested and accepted edits are de-duplicated so the same edit isn’t counted twice. IDE identified for more users. Users who were previously visible only through server-side telemetry now have their IDE and plugin versions surfaced in totals by ide , so totals by ide reflects more of your Copilot users. AI credits attributed more accurately. We fixed two issues that caused some users to show 0.0 AI credits despite real usage. First, AI credit consumption not associated with an organization was being dropped. It’s now attributed to the correct organization or enterprise. Second, users seen only through server-side telemetry were not being matched to their billing data. Their consumption is now included. Thanks to these updates, ai credits used totals more completely reflect actual consumption. Why this matters why-this-matters More complete coverage: Surfacing CLI suggested lines of code and identifying IDEs for server-side-only users means fewer blind spots in who is using Copilot and how. More trustworthy consumption data: Correcting AI credit attribution means ai credits used totals more accurately reflect what your users actually consumed. Consistent analysis across surfaces: As Copilot usage spans the IDE, CLI, and server-side surfaces, these updates keep the reports aligned with real activity. Important notes important-notes - These metrics are available to enterprise administrators and organization owners who have access to Copilot usage metrics https://docs.github.com/copilot/concepts/copilot-usage-metrics through the REST API. - Copilot CLI reports suggested lines of code from CLI version 1.0.57 onward. Code generation de-duplication applies from version 1.0.64 onward. Between 1.0.57 and 1.0.64 , code generation activity may be slightly undercounted for the CLI. - AI credit totals for previously-missed usage will increase as a result of these attribution fixes—values that were already reported are unchanged. Visit the Copilot usage metrics API documentation https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-usage-metrics?apiVersion=2026-03-10 to learn more.