Improvement

April 22, 20261 Minute Read

Bring your own language model key in VS Code now available

Copilot Business and Enterprise users can now use bring your own language model key (BYOK) in Visual Studio Code. BYOK lets teams reuse their API keys to access models from providers like Anthropic, Gemini, OpenAI, OpenRouter, and Azure, as well as locally running models through Ollama and Foundry Local.

Once configured, BYOK models are available anywhere in VS Code Chat, including the built-in plan agent and custom agents. BYOK does not apply to code completions. Usage is billed directly by your chosen provider and does not count against GitHub Copilot request quotas.

Get started

The policy is enabled by default. Organization members can add models from built-in providers or install language model provider extensions. To disable BYOK for your organization, an administrator must disable the “Bring Your Own Language Model Key in VS Code” policy in the Copilot policy settings on github.com.

Join the discussion within GitHub Community.

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

Bring your own language model key in VS Code now available - GitHub Changelog