docs/integrations/vscode.mdx
Use Ollama models in VS Code Chat with the Ollama extension.
Earlier VS Code versions do not reliably cancel requests from language model providers.
Ollama 0.17.6 or newer is recommended for cloud model sign-in and richer model metadata. Older versions may still work with local models.
The extension discovers models from http://127.0.0.1:11434 by default.
Pull a local model:
ollama pull qwen3.6
To use a cloud model, pull it and sign in:
ollama pull kimi-k2.6:cloud
ollama signin
Local models do not require sign-in.
VS Code may show a model's maximum supported context length even when Ollama allocates a smaller context at runtime.
For local models, open Ollama Settings, set the context length to at least 64k, reload the VS Code window, and resend your prompt. See Context length for more information.
If Ollama models do not appear in the model picker:
ollama list and confirm that models are available.If a cloud model asks you to sign in, run ollama signin.