Visual Studio Code | Code Editing. Redefined Follow Use your own language model key in VS Code Learn how to use bring your own key (BYOK) in VS Code to add models from providers like Azure, Anthropic, Gemini, OpenAI, Huggingface, OpenRouter, or use a local model with Ollama, Foundry Local, and more. https://code.visualstudio.com/blogs/2026/06/18/byok-vscode code.visualstudio.com