Based on official documentation. Steps were checked against the linked official docs on November 15, 2026. They have not been run on a real computer.

All guides

Help me code

A coding assistant in your editor, with the model running on your computer.

Who this is for. You want an explanation or a small edit while you are in the editor, and you want that help to use a model on this machine.

What you will have at the end. VS Code, the Continue extension, a coding model running in Ollama, and one comment added to a tiny file.

How far a local coding model gets, compared with a paid plan, is a different page: Local or paid? This page only gets the assistant installed.

Pick a coding model

Open the checker for Coding. That is the "Which model do I need?" path with Coding selected. The examples include graphics cards and Apple Silicon Macs. If you do not know the computer, use How do I find my specs? there. Open the checker for your exact Mac. Copy the tag from the result you choose. Continue's Ollama guide says the tag has to match what ollama list will show.

Loading examples from the model list… If this stays empty, use the checker.

The setup to follow

VS Code + Continue + Ollama · easiest documented pathContinue's own local guide is this combination. LM Studio + Continue · most flexibleThe same model can chat in LM Studio and edit in the editor. llama.cpp + Continue · most controlYou run the engine, and Continue talks to its local API.

First useful task

In VS Code, make a file named add.py with these two lines:

def add(a, b):
    return a + b

Open Continue and ask:

Add a comment on the line above add that says it adds two numbers.

You are done when the editor shows that comment, either already in the file or as a change you can accept. If Continue answers in words and does not touch the file, ask it to apply the edit. The point of the test is the comment in add.py, not a clever function.

Alternative: LM Studio and Continue

Most flexible

LM Studio runs the model and can also be your chat window. Continue talks to LM Studio's local server, which speaks the same kind of API as other tools. One model, two places. You take on a server step that the Ollama path hides. Pages were opened on November 15, 2026.

Continue Required

What it does. The editor panel. For this path its provider is openai, pointed at your computer, which is the pattern on Continue's OpenAI-compatible page.

Why you need it. LM Studio does not edit the file in VS Code by itself.

VS Code Required

What it does. The editor. Same download as the recommended path.

A coding model Required

What it does. The weights LM Studio loads.

Why you need it. Start the server only after a model is loaded. Pick it in the Coding checker, then download it from Discover.

Install LM Studio with the steps in the private chat guide. On a Mac, use the MLX step there: the app docs say Apple Silicon can run MLX or llama.cpp, and that you switch runtimes with ⌘ Shift R. MLX builds for this job are at Coding with MLX. Load a coding model. Turn the server on from the Developer tab, or run lms server start, which the server page documents. The OpenAI-compatible examples use http://localhost:1234/v1. The settings page shows the port and a Require Authentication switch.

In Continue's config, follow the OpenAI-compatible example and set apiBase to that address. The model id is the identifier LM Studio shows for the loaded model. Continue's example includes an apiKey field. If you turn LM Studio's authentication on, use the token that LM Studio's settings describe. If you leave it off, do not paste a key from a cloud provider. This page has not checked which placeholder Continue accepts when the local server does not check a key.

Alternative: llama.cpp and Continue

Most control

You run llama.cpp yourself. Continue uses the same OpenAI-compatible config as the LM Studio path, with the address from the llama.cpp docs. The server page says llama serve listens on http://127.0.0.1:9931 and shows a /v1/chat/completions request. The web UI is on that same address if you want a browser chat too. Pages were opened on November 15, 2026.

llama.cpp Required

What it does. Runs the GGUF file and serves the API.

Why you need it. Continue needs a server that is already running. Install from llama.app. The engine's project is ggml-org/llama.cpp.

A GGUF coding model Required

What it does. The weights.

Why you need it. Copy the user/model:QUANT text after -hf on a Coding checker card with llama.cpp selected. The card prints llama-server, the older command name. The current docs use llama serve -hf and that same repo and quant.

Continue and VS Code Required

What it does. The editor side, same as the other paths.

Why you need it. The llama.cpp web UI is a chat, not an editor. Set Continue's apiBase to http://127.0.0.1:9931/v1, from the port on the server page. The same apiKey note as the LM Studio path applies: do not paste a cloud key. llama.cpp's default host is this computer only, unless you change it. The web UI page says --host 0.0.0.0 is how you open it to other devices. Leave that off for this guide.

Mac, Windows, and the one-line Linux install are the same commands as the llama.cpp section of the private chat guide. After llama --version works, run llama serve -hf with the repo and quant, leave that terminal open, then ask Continue for the comment in add.py.

If it does not work

The model is too big, too slow, or runs out of memory

Pick a smaller tag in the Coding checker. A model that only partly fits a graphics card uses system memory and feels stuck. Close browsers and other model apps before you pull. Continue's autocomplete page says thinking models are a poor fit for inline suggestions because they are slower. Use a small model for that optional role, and keep the larger one for chat.

Continue cannot see the model

Ollama has to be running. ollama list has to include the exact tag. The Ollama guide says a 404 that names the tag means it was not pulled. Autodetect reads that list. It does not download anything. For LM Studio or llama.cpp, the server has to be running before you ask, and apiBase has to include the /v1 the docs use.

A port is already taken

Ollama uses 11434. LM Studio's examples use 1234, and the settings page shows the real port. llama.cpp uses 9931. The web UI page says to add --port and another number if 9931 is busy. Continue has to use the same number you started the server with.

Nothing is suggested as you type

That is the optional autocomplete path, not the chat test. Continue's autocomplete page says to enable tab autocomplete, to disable other completers such as Copilot, and to confirm the model was pulled. The chat test above does not need autocomplete.

The edit never lands in the file

A reply in the panel is not the same as a change to add.py. Ask Continue to apply the edit to the file. If the model only talks about the comment, the setup is running, and the model is the weak part. Try the next model up in the checker that still fits, or read Local or paid? for what a local coding model is likely to cover.

Building an app or agent? LocalAI is the option for an OpenAI-style API on this computer. The quickstart (checked November 16, 2026) says Linux and Apple Silicon install with curl -sSL https://localai.io/install.sh | sh, then local-ai run and a gallery model name. The API and the web UI are at http://localhost:8080. Windows and Intel Macs use the Docker command on that page. The checker shows a LocalAI command only when that model and quant are in the LocalAI gallery. Based on official documentation.