Continue is a VS Code extension that adds an AI coding assistant to the editor: chat about your code, edit it, and get tab completions. It can use a model served by Ollama — but if your models live in LM Studio instead, Continue can point at LM Studio’s local server. The difference from the Ollama setup is the provider and the port: LM Studio serves on port 1234, not 11434, and Continue talks to it as an lmstudio provider.
Start LM Studio’s server
Open LM Studio, download a chat model, and go to the Local Server tab. Click Start Server — the default address is http://localhost:1234. LM Studio can also act as an inference server with one click on the Local Inference Server button, with the model selected, and an OpenAI API service is launched on that port. A coding-model guide also suggests raising the context length from its 2048 default to 16384 in the Hardware Settings sidebar when you work with large files.
Install Continue and add the model
Install the Continue extension from the VS Code Extensions Marketplace, then open Continue’s settings configuration file, config.yaml, from the gear icon in the Continue sidebar panel. Add a model block with the lmstudio provider:
name: Main Config
version: 1.0.0
schema: v1
models:
- name: LM Studio Local
provider: lmstudio
model: AUTODETECT
apiBase: http://localhost:1234/v1
contextLength: 16384
Save the file. If the model picker does not update, reload the VS Code window from the Command Palette with Developer: Reload Window. Then choose LM Studio as the copilot backend and chat with the model in VS Code.
Try it: three checks from server to suggestion
Open a practice file in VS Code with a fictional two-line Python function that adds two numbers, then work through the checks.
| Check | What to do | What you should see |
|---|---|---|
| Server answers | curl http://localhost:1234/v1/models |
A list of the models LM Studio serves |
| Continue sees it | Open the Continue panel and look at the model picker | The LM Studio model appears as a choice |
| It helps with code | Ask Continue to explain the practice function | An explanation that mentions adding the two numbers |
Expected result. We checked an AMD guide pairing Continue with LM Studio and a third-party LM Studio and VS Code quickstart for the server, the config.yaml block, and the reload step. We did not install Continue or run a model.
Limits
Continue only talks to a model LM Studio is actually serving: a model named in the config but never downloaded, or a server that is not started, gives no model to pick. The AUTODETECT model value lets Continue use the model LM Studio has loaded, so the loaded model is the one that answers. The config above is the quickstart’s own, including its 16384 context length — lower it if your hardware cannot hold that much context. A small model is fast but its answers need the same checking as any model output. We did not test any of this ourselves.
Sources
- AMD guide — Continue with LM Studio and Llama3, LM Studio as inference server on http://localhost:1234, install Continue in VS Code, choose LM Studio as the copilot backend
- LM Studio and VS Code quickstart (third-party) — Local Server tab, Start Server, config.yaml with provider lmstudio, model AUTODETECT, apiBase http://localhost:1234/v1, contextLength 16384
