# Usage metrics API adds usage from tools like OpenCode

DevFeed: [Usage metrics API adds usage from tools like OpenCode](<https://devfeed.tech/articles/usage-metrics-api-adds-usage-from-tools-like-opencode-98584.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2026-10-23-usage-metrics-api-adds-usage-from-tools-like-opencode>)

Author: Allison

Published: 2026-10-23T23:42:03Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [Chat completions endpoints](<https://devfeed.tech/topics/chat-completions-endpoints.md>)

Tags: [account-management](<https://devfeed.tech/tags/account-management.md>), [api](<https://devfeed.tech/tags/api.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [enterprise-management-tools](<https://devfeed.tech/tags/enterprise-management-tools.md>), [improvement](<https://devfeed.tech/tags/improvement.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [opencode](<https://devfeed.tech/tags/opencode.md>), [tools](<https://devfeed.tech/tags/tools.md>)

## AI overview

The Copilot usage metrics API adds `totals_by_client` to enterprise, organization, and user reports covering 1-day and 28-day periods. It groups successful model calls by the client tool and reports request counts, distinct sessions, token usage, and per-model breakdowns, including whether model selection was user-, auto-, or product-selected. This captures Copilot model traffic from tools such as OpenCode that may not send editor telemetry, and differs from agent app activity, which counts jobs started by agent apps. Access requires the Copilot usage metrics policy to be enabled and an eligible owner, billing manager, or role with `View Copilot Metrics`. Treat client labels as best-effort integration IDs; request counts measure model calls, not prompts. Code review models appear as `unknown`, and some selection modes or unrecognized clients are grouped as `other`. The addition is backward compatible, with an empty array when there is no usage.

## Source excerpt

The Copilot usage metrics API now reports model usage from more of the tools your developers use with Copilot, including tools like OpenCode that weren't previously captured in your reports.... The post Usage metrics API adds usage from tools like OpenCode appeared first on The GitHub Blog.