SabaKore

Run AI on a VPS / Coding assistant

Use a local LLM on your VPS as a coding assistant in your editor (Continue)

Continue is an AI coding assistant extension for VS Code and JetBrains editors. You choose the model it connects to, so you can call Ollama on your VPS from the editor. It suits you if you don't want to send code to outside AI services. First complete the Ollama install steps and download a model.

1Connect from your PC through a tunnel

Keep Ollama closed to the outside and borrow an SSH connection. Keep this running on your PC:

ssh -N -L 11434:localhost:11434 USER@SERVER_IP

Now http://localhost:11434 on your PC reaches Ollama on the VPS. When the tunnel closes, the editor can no longer use it.

2Install the "Continue" extension

Search for "Continue" in your editor's extensions and install it. See the official docs for details.

3Add the VPS model to the config file

Add your Ollama model to Continue's config file (config.yaml). Set apiBase to the tunnel's end, http://localhost:11434, and use the same model name you downloaded on the VPS.

name: My Config
version: 0.0.1
schema: v1

models:
  - name: VPS model
    provider: ollama
    model: llama3.2:3b  # match the name of the model you downloaded
    apiBase: http://localhost:11434

Features such as tool use and image input are usually detected automatically for Ollama models (per the official docs). If they don't work for a model with a custom name, check the official capabilities syntax.

4When you see "Model requires more system memory"

Continue may use a longer context length by default than other Ollama tools (per the official docs), so a model that runs elsewhere can stop with this error. Lower contextLength.

models:
  - name: VPS model
    provider: ollama
    model: llama3.2:3b  # match the name of the model you downloaded
    apiBase: http://localhost:11434
    defaultCompletionOptions:
      contextLength: 2048

If that is still not enough, switch to a smaller model or a plan with more memory. Longer context uses more memory. The plan finder shows which models fit.

5Memory while idle, and updates

Ollama unloads a model 5 minutes after its last use (the official default). The next use loads it again, so the first reply takes a moment. Check what is loaded on the VPS:

ollama ps

# to free memory right away
ollama stop llama3.2:3b

If you set different models for autocomplete and chat, both use memory while in use (on CPU, up to 3 models can be loaded at once by default).

Updating Ollama is the same as step 8 of the install guide. Continue's config.yaml lives on your PC, so it survives rebuilding the VPS.

FAQ

Does my code leave my machines?

In these steps, code travels only between your PC and your own VPS. It is not sent to outside AI services. If you also register an external model in Continue, code goes to that service when you use it.

Can I use it for inline autocomplete?

You can assign models by role (described on a separate official page). But on a VPS without a GPU, autocomplete, which needs instant answers, may feel slow. We do not measure speed, so try chat first and see whether the wait is acceptable.

Which model should I choose?

Look for code models in the Ollama library. We do not rate code quality. Estimate the memory needed from the file size and check that it fits your plan first.

Does it keep using memory while idle?

Ollama unloads a model from memory 5 minutes after it was last used (the official default). To free it right away, run ollama stop MODEL on the VPS.

Plans that suit this use

The steps use Llama 3.2 3B as an example. For discussing code too, an 8B model is a candidate.

Using separate models for autocomplete and chat at the same time needs memory for both.

Llama 3.2 3B

~3.5 GB memory · ollama run llama3.2:3b

  1. KAGOYA CLOUD VPS4 GB · ¥1,760/mo
  2. ABLENET VPS4 GB · ¥2,167/mo
  3. ConoHa VPS4 GB · ¥2,189/mo

Llama 3.1 8B

~6.4 GB memory · ollama run llama3.1:8b

  1. ABLENET VPS8 GB · ¥2,936/mo
  2. KAGOYA CLOUD VPS8 GB · ¥3,410/mo
  3. ConoHa VPS12 GB · ¥4,389/mo

Cheapest first. This compares fit and monthly price only, not speed. Affiliate programs have no effect on the order.

Based on Continue's official Ollama documentation (checked October 27, 2026). Extension settings change quickly, so check the official docs if something does not work.