Connect Ollama to VS Code + Continue
1. Install VS Code, Continue, and Ollama
- Install VS Code.
- Install the Continue extension from the VS Code marketplace.
- Install Ollama: Windows · macOS · Linux
2. Pull a model
ollama pull llama3.1
See Llama 3.1 run guide or browse all Ollama models.
3. Configure Continue for Ollama
- Open the Continue sidebar and click the gear icon to edit
config.json. - Paste this config:
{
"models": [
{
"title": "Ollama llama3.1",
"provider": "ollama",
"model": "llama3.1"
}
]
} - Save and restart VS Code.
- Open Continue chat, select
Ollama llama3.1, and send a test message.
Troubleshooting
- No response — run
ollama listand confirm the model tag matches config. - Ollama not reachable — ensure Ollama is running; API is at
http://localhost:11434. - Out of memory — try a smaller model from our catalog.