Tool Combos

Continue + Ollama: a free, offline coding assistant in VS Code

Continue is an open-source coding assistant for VS Code and JetBrains editors. Pointed at Ollama, it gives you chat, inline edits and autocomplete from models running on your own computer, so your code does not leave it.

By AI RightFitChecked Official sources listed below

At a glance

What you getChat, inline edits and autocomplete inside your editor
Typical cost$0 software; uses your own hardware
Skill levelIntermediate
Runs onYour computer

What you get

Continue assigns local models to roles: chat, edit, apply, rerank and autocomplete. Its Ollama guide uses a larger model for chat and edits and a small coding model for autocomplete, because autocomplete has to respond almost instantly.

The result is an assistant that works offline and keeps your code on your machine. That matters for client work, private repositories or poor internet. The trade-off is quality and speed, which depend on the models your computer can run.

What it costs compared with Copilot

The software is free; the cost is your hardware. Continue's guide lists 8 GB of RAM as the minimum, 16 GB or more as recommended, and at least 10 GB of free storage for models.

For comparison, our GitHub Copilot record lists a Free plan with 2,000 code completions a month and Pro at $10 a month. If your computer is powerful enough and privacy matters, the local setup saves that fee; if not, a cloud plan will usually be faster and smarter.

Set it up

  1. Install Ollama and the Continue extension in your editor.
  2. Download the models with pull, not run, using exact tags. The guide's examples:
ollama pull deepseek-r1:32b
ollama pull qwen2.5-coder:1.5b
ollama list

A 32B model needs far more memory than the 8 GB minimum; on a smaller machine, choose a smaller chat model. The name in your config must match what ollama list shows.

  1. Add the models to ~/.continue/configs/config.yaml. Following the guide's example:
models:
  - name: DeepSeek R1 32B
    provider: ollama
    model: deepseek-r1:32b
    apiBase: http://localhost:11434
    roles:
      - chat
      - edit
  - name: Qwen2.5-Coder 1.5B
    provider: ollama
    model: qwen2.5-coder:1.5b
    roles:
      - autocomplete

Continue's Autodetect option can also fill roles from the models you have installed.

A first job to try

Open a file you know well, select a function and ask in the Continue chat panel:

Explain what this function does in two sentences, then list any input that would make it fail.

Then type the first line of a small new function and see whether autocomplete suggestions arrive quickly enough to help rather than interrupt. If they lag, switch the autocomplete role to a smaller model before giving up on the setup.

Tips and limits

  • Pulling a model without a tag installs :latest, which may be a different size than you expect.
  • If autocomplete feels slow, use a smaller autocomplete model before changing anything else.
  • Check model licences before using generated code commercially, and review suggestions like any other code.

Sources

Related records: Ollama pricing record · Github Copilot pricing record

Setup steps and facts come from the official documentation linked on each page, checked on the date shown. We have not tested every combination on every computer; cost examples are illustrative.

Editorial policy · Report a mistake