Which usage types are tracked
The update covers two types of BYOK. The first is local: a developer configures it in the client, after which requests are sent from Copilot CLI or the GitHub Copilot app directly to the developer’s provider key or to a local model. This category includes both personal keys and local models launched with tools such as Ollama, Foundry Local, LM Studio, and llama-server. The second type is custom enterprise or organization models. An administrator configures these in GitHub settings, and requests pass through GitHub to the provider. The API marks these requests separately from regular usage of models hosted by Copilot. This means reports distinguish developer-side local usage from enterprise models configured by administrators.
Local BYOK metrics
The used_local_byok field has been added to user reports. It indicates whether a specific user sent at least one local BYOK request through Copilot CLI or the Copilot app on that day. This is an activity indicator, not a count of all requests. More detailed metrics are available in totals_by_local_byok. These include sessions, requests, prompts, and tokens, broken down by BYOK type and client surface. Possible values for byok_kind are local_managed, local_user, local_auto, and remote_user, while the surface field indicates copilot_cli or copilot_app. This set of metrics is available in both user and aggregated reports. Summary statistics also include daily_active_local_byok_users, weekly_active_local_byok_users, and monthly_active_local_byok_users. These represent the number of unique users with local BYOK activity per day, calendar week, and calendar month, respectively. These metrics are available in aggregated data.
How enterprise models are identified
A boolean is_custom_enterprise_model indicator has been added to each totals_by_client[].totals_by_model[] entry. A value of true means the request was made using a custom model configured for an enterprise or organization. According to GitHub, these requests are observed server-side. Therefore, the field covers all clients, including integrated development environments, not just Copilot CLI and the Copilot app. For custom models, the API includes actual request and token counts. If the same model is used both as a model provided by Copilot and as a custom enterprise model, it appears in the report as two separate entries. This prevents their metrics from being combined. Model names go through the existing normalization process; if a name is not recognized, it is displayed as unknown. Unlike enterprise model usage, local BYOK activity is not broken down by model name.
Report coverage and existing totals
Data on both types of BYOK is available in enterprise and organization reports, at both the user and aggregated levels, as well as in one-day and 28-day reports. Adding the new fields does not change existing totals. Local BYOK requests are already included in totals_by_cli and totals_by_copilot_app, while usage of custom enterprise models is already included in totals_by_client. Previously, BYOK activity could be merged with Copilot model usage: local and custom models often have names that match Copilot model names. The new indicators make it possible to separate these data for analysis. For example, reports can be used to see who is using their own keys, local, or enterprise models, compare activity against BYOK policy, and compare user groups’ usage of these models with Copilot metrics.
Data limitations and access
Local BYOK metrics depend on client telemetry. If it is disabled, these requests may not appear in the report. Token counts may also be understated when a local provider does not send usage information. This limitation does not apply to custom enterprise models: their metrics are observed server-side. There is no backfill for the new is_custom_enterprise_model indicator: reporting days before the update was released do not include this field. API access is available to enterprise owners, enterprise billing managers, organization owners, and users with a custom organization or enterprise role that has the View Copilot Metrics permission. The Copilot usage metrics policy must also be enabled.