Path 02 · For coding

The developer — « Local Copilot, 100% offline, 0 cloud latency. »

Qwen 3.8 27B for chat and the agent, a small "base" Qwen2.5-Coder for autocomplete, hooked up to VS Code via Continue.dev. Autocomplete, chat, whole-file refactors, without a single line of your code leaking to Microsoft, OpenAI, or Anthropic. Your PR contains an API key? It stays put.

Total duration
~30 min
Required level
Comfortable with a terminal
Cost
0 €
Machine type
24 GB GPU (16 GB with Gemma 4 12B) or 32 GB+ Mac
↑
Our promise

By the end of this walkthrough, you'll have a llama.cpp server running in the background with Qwen 3.8 27B in Q4 quantization for chat, plus a small Qwen2.5-Coder base (1.5B) for autocompletion (FIM). Continue.dev will be hooked up to VS Code, with autocompletion and chat in the sidebar.

Who it's for this path is for you

We'd rather tell you early than let you waste 30 minutes for nothing.

✓ This is for you if
  • ✓You code every day and are tired of copying your snippets into a web UI.
  • ✓Your employer bans GitHub Copilot, ChatGPT, and Cursor — for good reasons.
  • ✓You're working with proprietary code, under an NDA, or with API secrets in plain text.
  • ✓You have an RTX 4070 Ti+, RTX 4090, RTX 5090, or a MacBook Pro M2/M3/M4 with 32 GB+.
  • ✓The 200 ms ping to cloud APIs breaks your rhythm.
✕ Look elsewhere if
  • ·You have 8 GB of VRAM: it's doable with Qwen 3.5 9B, but well below cloud assistants.
  • ·You code 1h a week: a free account with a cloud provider will be less of a hassle.
  • ·You want general assistant chat: see the Curious path, which is simpler.

The path in 4 steps

Each step points to a detailed guide you can read alongside it. The order is optimized: don’t skip a step the first time.

Total · ~30 min
  1. 1
    Step 01·12 min·Advanced

    Compile llama.cpp with GPU acceleration

    Build from source for maximum tokens/sec. On NVIDIA: CUDA. On Apple Silicon: Metal. On AMD: ROCm. It’s 15 to 30% faster than Ollama.

    Ready-to-use llama-server binary capable of serving an OpenAI-compatible API.
    Read the guide →
  2. 2
    Step 02·6 min·Intermediate

    Download Qwen 3.8 27B (Q4) and an autocompletion model

    Qwen 3.8 27B leads the Artificial Analysis index for models with 4 to 40 billion parameters (October 2026): 18 GB in Q4_K_M, for a 24 GB card. With 16 GB, go with Gemma 4 12B. Mid-line autocompletion (FIM) requires a dedicated "base" model: Qwen2.5-Coder 1.5B base (1 GB) alongside Qwen 3.8 27B, or the 7B base (4.7 GB) if you have memory to spare. Download from Hugging Face.

    The model is served on localhost:8080 in chat completions format.
    Read the guide →
  3. 3
    Step 03·8 min·Intermediate

    Connect Continue.dev to VSCode

    Install the Continue extension from the marketplace, edit ~/.continue/config.json to point to your local endpoint, and configure the FIM model for autocompletion.

    Tab to accept a suggestion, Cmd+L to open chat for the selection.
    Read the guide →
  4. +
    Step bonus·4 min·Advanced

    Bonus — Aider on the command line

    For larger tasks (refactoring a module, generating tests), Aider lets you edit files in natural language from the terminal, with automatic Git commits.

    An agentic CLI connected to the same backend, complementary to Continue.
    Read the guide →

Recommended models

Three options for this walkthrough, from lightest to most capable. Click for the detailed spec sheet (VRAM, context, benchmarks).

Frequently asked questions

The real questions we get by email and on Mastodon. If yours is missing, open a ticket.

For line autocompletion, a small local base model handles everyday work well. For chat and agents, the best cloud models still have the edge on long tasks; Qwen 3.8 27B narrows the gap. And you stay in control of your data.
Once this process is complete
Next path

The confidential pro — « My files never leave my workstation. »

Lawyers, doctors, HR professionals, consultants, CPAs, and notaries—you handle documents protected by professional confidentiality or an NDA. A local LLM paired with RAG lets you query, summarize,…

→
The Local Copilot Kit

Replace GitHub Copilot and Cursor with a code assistant that runs 100% on your machine — the reference guide, configs included.

  • Lifetime online access
  • PDF + files
  • Refunded within 30 days

A question, a typo, a bug?

This guide evolves with every model release. Your feedback is the raw material.

Prices in euros (€) are French market prices including VAT, as checked by BestLLMfor. US prices differ: the Amazon buttons show the current US price.