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.
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
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.