Connect Ollama to VS Code + Continue

Last verified: 2026-08-24 · Example model: llama3.1

1. Install VS Code, Continue, and Ollama

  1. Install VS Code.
  2. Install the Continue extension from the VS Code marketplace.
  3. 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

  1. Open the Continue sidebar and click the gear icon to edit config.json.
  2. Paste this config:
{
  "models": [
    {
      "title": "Ollama llama3.1",
      "provider": "ollama",
      "model": "llama3.1"
    }
  ]
}
  1. Save and restart VS Code.
  2. Open Continue chat, select Ollama llama3.1, and send a test message.

Troubleshooting

← Local guides · Ollama hub