Listen to this article:
What Changed: BYOK in Copilot
On April 22, 2026, GitHub officially launched the Bring Your Own Language Model Key (BYOK) feature for Copilot Business and Enterprise within Visual Studio Code. Users can connect API keys from providers such as Anthropic (Claude), Gemini, OpenAI, OpenRouter or Azure to the environment they use daily. Locally running models via Ollama and Foundry Local are also supported.
A week earlier — on April 7 — Copilot CLI gained the same capability. The command line can now communicate with any OpenAI-compatible endpoint, including local deployments via Ollama, vLLM, or Foundry Local. The CLI also supports offline mode — simply set the COPILOT_OFFLINE=true variable and the tool stops communicating with GitHub's servers. All telemetry data is turned off and traffic runs solely between you and your model provider.
BYOK models work in VS Code Chat, including the built-in planning agent and custom agents. A key limitation: it does not apply to automatic code completions. Those remain in the hands of GitHub-hosted models.
Why Companies Are Addressing This Right Now
The pivotal moment is June 1, 2026, when GitHub switched to usage-based billing across all Copilot plans. Every agent session consumes AI credits based on the volume of tokens used. At that point, the ability to connect your own model is no longer a "nice to have" but a budget and compliance tool.
Imagine a bank that doesn't want sensitive code traveling through GitHub's default routing. It can redirect work to a model already approved by its security team. A software company with volume discounts at Anthropic can use its own API key and bypass the package that comes with Copilot. A defense contractor can test local or air-gapped deployments. These aren't sensational stories — but it's precisely this type of detail that determines whether a tool gets deployed for 50 or 5,000 developers.
Let's not forget that new registrations for Copilot Student, Pro, Pro+, and Max are currently suspended. GitHub will reopen registrations "in the coming weeks," but the infrastructure is struggling to handle the surge of agent traffic. In this context, BYOK helps distribute the load toward external providers as well.
A New Distribution Channel for AI Startups
For smaller players in the AI model market, the message is clear: you no longer need to build your own editor, plugin ecosystem, enterprise controls, and sales process. When Copilot functions as an agent layer that can sit on top of many models, a startup can focus on what it does best — model quality.
This is especially true for providers with strong coding performance, low latency, or cheaper inference. OpenRouter gains a role as a routing layer. Anthropic and Google get another path into enterprise coding workflows. Local model makers and infrastructure startups get a clearer reason to make their endpoints OpenAI-compatible and reliable for tool-intensive tasks.
The win isn't just about using the model. It's about creating a habit. When a developer communicates daily with your model inside an environment they already know, switching to a competitor becomes much less likely.
Not Everything Is Rosy: What to Watch Out For
GitHub opened the endpoint, but the quality bar remains high. Agentic coding depends on planning, file editing, tool calling, and long sessions across real repositories. The model must support tool calling and streaming. GitHub recommends at least 128,000 tokens of context window. You can technically connect a weaker model, but it will fail exactly where developers notice it most — large refactors, multi-file reasoning, and code review.
A second limitation: BYOK in VS Code does not apply to automatic code completions. That remains a fixed part of the Copilot ecosystem and cannot be redirected elsewhere. Managers also need to address policies, key management, vendor contracts, and data handling — none of which GitHub will solve for them.
For smaller teams, it may be simpler to stick with the default GitHub-hosted models, especially since base plan pricing remains unchanged and code completions are included.
What It Means for the Czech Republic
For Czech companies and development teams, BYOK is relevant for several reasons. Banks, insurance companies, and fintech firms operating in the Czech Republic are often subject to strict regulations regarding where data travels. The ability to route sensitive code to a model running on their own infrastructure or with a trusted European provider — for example within Azure — is crucial for compliance.
There's also the question of the EU AI Act, which has been gradually taking effect since February 2025. Working with your own models gives companies greater transparency and auditability — something the black box of default GitHub routing doesn't provide. And last but not least: if a Czech team benefits from better pricing with a particular provider (for example through a Microsoft Enterprise Agreement, which is widespread in the Czech Republic), BYOK lets them actually leverage those economic terms within the Copilot ecosystem.
Copilot doesn't yet support a Czech interface to the same extent as ChatGPT — Czech language support within chat is functional, but documentation and the admin interface remain in English. For developers, however, this is generally an acceptable compromise.
Impact on Competition: Cursor and Windsurf Under Pressure
Opening the model layer puts AI-first editors like Cursor and Windsurf in a difficult position. Their advantage so far has been in user experience — fast auto-completions, strong agent flows, and the feel that the tool understands the entire project. But if Copilot keeps improving its interface while simultaneously opening the model layer, competitors must explain why a developer should leave an editor they already use.
Flexibility is becoming part of the product — not just a checkbox in a comparison table. And on June 2, the situation intensified further: GitHub launched the Copilot SDK into general availability, giving developers access to the same agent runtime that Copilot itself runs on. It also supports BYOK. In other words: GitHub isn't just opening up Copilot, it's opening up the entire platform.
Do I need Copilot Business or Enterprise to use BYOK?
Yes. The Bring Your Own Key feature is available only for Copilot Business and Enterprise customers. Individual plans (Pro, Pro+, Max) don't have this option yet. In Copilot CLI, BYOK is available without restriction on a specific plan — simply set the environment variables and you can use your own models.
Does BYOK work for automatic code completions in the editor?
No. BYOK models work in the VS Code Chat interface (including the planning agent and custom agents), but they do not apply to automatic code completions. Those run exclusively on GitHub-hosted models. The same limitation applies to Copilot CLI — but there, BYOK covers virtually everything you do in the terminal.
What does a model need to work with Copilot?
The model must support tool calling and streaming. GitHub recommends at least 128,000 tokens of context window for optimal results. You can technically connect weaker models, but they will likely fail on more complex tasks — especially multi-file refactors and code review.