Use your own language model key in VS Code

AI-generated summary of reporting by VS Code Blog. Read the original for the full story.

Why it matters

Developers can now use any provider's API key or local models like Ollama inside VS Code Chat without a GitHub Copilot plan, cutting vendor lock-in.

Read this as

Microsoft's VS Code code editor now lets programmers plug in their own AI key - a password from a company like OpenAI or Anthropic - instead of relying only on its built-in Copilot assistant. You pick which AI to use from the same menu as before, or even run a model on your own computer with no internet. It costs whatever that provider charges, not Copilot. Anyone using the editor for AI chat features is affected.

VS Code's BYOK (bring your own key) lets teams route chat and agent work through providers they already have billing or governance agreements with - Azure, Anthropic, Gemini, OpenAI, OpenRouter - without a Copilot plan or GitHub sign-in. Usage bills directly to the provider, bypassing Copilot quotas. For Business and Enterprise customers, admins can restrict BYOK through policy settings. Standard code completions and embedding-based features still require Copilot, so it expands choice rather than replacing it.

BYOK models integrate via the Chat model picker and Language Models editor (also reachable through 'Chat: Manage Language Models'), with built-in support for Azure, Anthropic, HuggingFace, Gemini, OpenAI, OpenRouter, Ollama and Foundry Local; third parties can add providers via extensions tagged @tag:language-models. Configuration may write chatLanguageModels.json with endpoint, API type and capability fields. BYOK covers chat and utility tasks, not code completions or embedding-dependent features; users without GitHub sign-in must set github.copilot.chat.byokUsageModel for background tasks like commit messages.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

VS Code GitHub Copilot OpenRouter Ollama Foundry Local Mistral Surface RTX Spark Dev Box

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading