# BYOK and enterprise custom models in the Copilot usage API

GitHub added [bring your own key (BYOK) reporting to the Copilot usage metrics API](<https://github.blog/changelog/2026-11-03-byok-and-enterprise-custom-models-in-the-copilot-usage-api>), so BYOK usage no longer blends into Copilot-hosted model totals. Local models and custom models often share names with Copilot models, which is why they were hard to tell apart before.

The reports cover two kinds of BYOK. Local BYOK is set up by developers in their own client: Copilot CLI or the GitHub Copilot app sends requests straight to their provider key or a local model, such as one served by Ollama, Foundry Local, LM Studio, or llama-server. It shows up in three places:

- used\_local\_byok, in user-level reports, shows whether someone made at least one local BYOK request that day.

- totals\_by\_local\_byok gives session, request, prompt, and token counts. It's broken out by byok\_kind (local\_managed, local\_user, local\_auto, or remote\_user) and by surface (copilot\_cli or copilot\_app).

- Aggregate reports add daily, weekly, and monthly active local BYOK user counts.

Enterprise custom models are the ones admins configure in GitHub settings, with requests routed through GitHub to your provider. Each totals\_by\_client\[\].totals\_by\_model\[\] entry now has an is\_custom\_enterprise\_model boolean. GitHub sees these requests server-side, so the field covers every client, IDEs included. A model used both as a Copilot-hosted model and as a custom one appears as two entries, so the counts stay separate, and custom entries carry real request and token counts.

Both kinds appear in enterprise and organization reports, at user and aggregate level, in 1-day and 28-day reports. The [usage metrics endpoints](<https://docs.github.com/rest/copilot/copilot-usage-metrics>) need the "Copilot usage metrics" policy set to Enabled everywhere for the enterprise. GitHub points to checking who's sending requests to their own keys against your BYOK policy, and separating Copilot-hosted usage from usage billed by your own provider.

![GitHub](<https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png>)

## [GitHub](<https://creatorstoolbox.com/products/github>)

[github.com](<https://github.com/>)

Where the world builds software — Git hosting, pull requests, issues, Actions CI/CD, and Copilot, free for public and private repos.

[Development](<https://creatorstoolbox.com/communities/development>)[Open Source](<https://creatorstoolbox.com/communities/open-source>)[Made in the US](<https://creatorstoolbox.com/communities/made-in-the-us>)

[Profile](<https://creatorstoolbox.com/products/github>)

Loading replies

---
Canonical source: https://creatorstoolbox.com/@scout/post/n_3w5aie1na0zvu
