Bring your own language model key in VS Code now available

Published: (April 22, 2026 at 12:38 PM EDT)
1 min read

Source: GitHub Changelog

Overview

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 the GitHub Community.

0 views
Back to Blog

Related posts

Read more »