Blog / Tutorials

Self-Host Your Own AI Coding Assistant with Ollama and Continue

By the NoctHost TeamJuly 7, 20263 min read

GitHub Copilot sends your code to GitHub's servers. Every completion request, every chat message, every file you open — it all goes to a third-party API. For proprietary code, that's a real concern.

Continue is an open-source VS Code extension that connects to any Ollama instance for code completions and chat. Combined with a code-optimized model, you get a capable coding assistant that runs entirely on infrastructure you control.

What You Need

  • VS Code
  • Ollama running on a VPS or locally
  • The Continue VS Code extension

Step 1: Install Ollama on Your VPS

curl -fsSL https://ollama.com/install.sh | sh

Step 2: Pull a Code Model

Qwen 2.5 Coder is the top-rated local coding model in 2026:

# For 8 GB RAM
ollama pull qwen2.5-coder:7b

# For 16 GB RAM (better quality)
ollama pull qwen2.5-coder:14b

For completions (faster, smaller):

ollama pull qwen2.5-coder:1.5b

Step 3: Expose Ollama Externally

By default Ollama only listens on localhost. To access it from VS Code on your laptop:

cat > /etc/systemd/system/ollama.service.d/override.conf << EOF
[Service]
Environment="OLLAMA_HOST=0.0.0.0"
EOF
systemctl daemon-reload && systemctl restart ollama

Protect the port — only allow your IP:

ufw allow from YOUR_HOME_IP to any port 11434
ufw deny 11434

Or set up an SSH tunnel instead:

ssh -L 11434:localhost:11434 user@your-vps-ip

The tunnel keeps traffic encrypted and avoids exposing the port publicly.

Step 4: Install and Configure Continue

Install the Continue extension from the VS Code marketplace.

Open Continue settings (~/.continue/config.json):

{
  "models": [
    {
      "title": "Qwen Coder 7B",
      "provider": "ollama",
      "model": "qwen2.5-coder:7b",
      "apiBase": "http://localhost:11434"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Qwen Coder 1.5B",
    "provider": "ollama",
    "model": "qwen2.5-coder:1.5b",
    "apiBase": "http://localhost:11434"
  }
}

If using SSH tunnel, localhost:11434 works as-is. If exposing directly, replace with your VPS IP.

Step 5: Use It

In VS Code, the Continue panel opens with Cmd/Ctrl+L. You can:

  • Chat about your code: "Explain what this function does"
  • Ask it to make changes: "Refactor this to use async/await"
  • Highlight code and ask specific questions

Tab completions appear automatically as you type — same experience as Copilot, running locally.

Performance

On a VPS with 4 cores and 8 GB RAM:

  • Chat responses (7B model): 5–10 tokens/second — slightly slower than Copilot but usable
  • Tab completions (1.5B model): 15–25 tokens/second — fast enough for real-time use

Running this on NoctHost

Qwen 2.5 Coder 7B wants about 8 GB of RAM, so the Pro plan (4 vCPU, 8 GB) is the right fit for a responsive assistant. On NoctHost that runs hourly from a prepaid balance you top up with crypto, with no card and no KYC, and you get a dedicated IPv4 so your Continue endpoint has a stable address to reach.

Spin one up in about a minute

Email signup, pay with crypto, hourly billing. Trying a box costs cents — destroy it when you are done.

Deploy a server

Frequently asked

How does this compare to GitHub Copilot quality?
For general code, Copilot (backed by GPT-4) is stronger. For many everyday tasks — boilerplate, explanations, refactoring — Qwen 2.5 Coder 7B is surprisingly competitive. The privacy tradeoff is the main reason to self-host.
Can I use a different IDE?
Continue has plugins for JetBrains IDEs as well. The configuration is the same.
What if I want better quality completions?
Use the 14B model if you have 16 GB RAM on your VPS. It's noticeably better for complex code. The tradeoff is slower response time — 3–6 tokens/second.

Keep reading