1. Learn
  2. Make it useful

A local coding assistant in VS Code: Continue, Cline and Ollama

Set up a private AI coding assistant in VS Code with Ollama and Continue or Cline. Which model to pick for your card, and what to expect from it.

Updated Oct 26, 2026 · RunItLocal.io

Install Ollama, pull a model, then add the Continue or Cline extension to VS Code and choose Ollama as the provider. That's the whole setup. Your code stays on your machine, there's no subscription, and it works offline.

Continue or Cline?

They do different jobs, and plenty of people run both.

ContinueCline
What it isChat, inline edits and tab autocompleteAn agent that reads files, edits them and runs commands
How you use itYou ask, it suggests, you acceptYou give it a task, it works through steps and asks before acting
Works on small modelsYes, wellStruggles below about 14B
Context it needsModestA lot, often 16K tokens or more

Start with Continue if you want a helper beside your code. Try Cline if you have a 24 GB card or more and want it to carry out multi-step tasks.

Step 1: Get a model running

If you haven't yet, install Ollama. Then pull a model that fits your card:

ollama pull qwen3:14b

Rough picks by memory, from our coding model guide:

Step 2: Raise the context length

This is the step people skip, and it's the main reason local assistants feel dumb. Coding tools send your open files, the conversation and their own instructions with every request. Ollama's default context is shorter than that, so the start gets cut off quietly.

On Linux, start the server with a bigger window:

OLLAMA_CONTEXT_LENGTH=16384 ollama serve

On Mac and Windows, set the context length in the Ollama app's settings. For Cline, go higher if your memory allows. Every extra token costs memory; see context length and the KV cache.

Step 3: Install the extension

Both are in the VS Code extensions marketplace. Search for the name and install.

Continue: open its panel, add a model, choose Ollama as the provider, and pick the model you pulled. Continue keeps its settings in a config file you can edit by hand; its docs show the current format, which has changed over time, so follow those rather than an old blog post.

Cline: open its settings, choose Ollama as the API provider, and pick your model. Ollama's default address is http://localhost:11434, which is what both extensions expect unless you've moved it.

If you run Ollama on another machine, point the extension at that machine's address instead. See Ollama on your network.

Autocomplete wants a different model

Tab autocomplete fires on every pause in your typing, so it has to answer in well under a second. Use a small, fast model trained for fill-in-the-middle, separate from your chat model. Continue's docs list current recommendations. A 1B to 3B coding model on the same card as your chat model is a common setup.

How fast will it feel?

Speed matters more for code than for chat, because answers are long and you regenerate often. Below about 20 tok/s it starts to drag. Here's a 12 GB RTX 3060, the cheapest card we'd suggest for this, from our calculator:

RTX 3060, 12 GB · estimated with our calculator · full page

  • Qwen3 4BQuick everyday chat and summaries
    ~79 tok/s
    Runs greatqwen3:4b
  • Qwen3 8BA solid all-rounder for chat and writing
    ~38 tok/s
    Runs greatqwen3:8b
  • Gemma 3 12BReads images as well as text
    ~24 tok/s
    Usablegemma3:12b
  • Qwen3 14BNoticeably smarter at reasoning and code
    ~21 tok/s
    Usableqwen3:14b
  • gpt-oss 20BOpenAI's open model. Fast, strong reasoning
    needs 16 GB
    Too biggpt-oss:20b
  • Gemma 3 27BGoogle's best open model for its size
    needs 19 GB
    Too biggemma3:27b
  • Qwen3 30B-A3B30B smarts at small-model speed
    needs 21 GB
    Too bigqwen3:30b
  • Qwen3 32BStrong coding and long answers
    needs 22 GB
    Too bigqwen3:32b
  • Llama 3.3 70BClose to the big cloud models
    needs 45 GB
    Too bigllama3.3:70b
  • gpt-oss 120BOpenAI's largest open model
    needs 67 GB
    Too biggpt-oss:120b
  • Qwen3 235B-A22BAlibaba's flagship open model, for multi-GPU rigs
    needs 144 GB
    Too bigqwen3:235b
  • DeepSeek R1 671BThe full DeepSeek R1, for the biggest rigs
    needs 406 GB
    Too bigdeepseek-r1:671b

On a 24 GB RTX 3090 the gap between models is wide: our estimates put Qwen3 30B-A3B at about 164 tok/s and Qwen3 32B at about 26 tok/s. That's why many people keep the fast one loaded for back-and-forth and switch to the dense one for a tricky bug.

What works and what doesn't

  • Good: explaining unfamiliar code, writing tests, small functions, regex and SQL, reviewing a diff you paste in.
  • Mixed: edits across two or three files, newer libraries the model hasn't seen.
  • Weak on small models: long agent runs in Cline. On 8B to 14B models, give it one file and one clear task at a time, and read every change before you approve it.

If Cline keeps looping or calling tools wrongly, it's almost always the model size or a context window that's too short, not the extension. For more on why, see local AI agents.

Where to go next

Check what your card runs on every GPU, or compare picks in the best local LLM for coding.