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.
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.
- ✓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.
- ·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.
- 1Step 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 → - 2Step 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 → - 3Step 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 → - +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).
For autocompletion (FIM), base version: 4.7 GB; alongside Qwen 3.8 27B on 24 GB, use the 1.5B base (1 GB). ollama pull qwen2.5-coder:7b-base.
View details →Chat and coding agent (Cline, Aider, OpenCode) with 24 GB of VRAM: 18 GB in Q4. With 16 GB: Gemma 4 12B.
View details →With 32 GB or more: a fast MoE (3B active parameters) for long agent loops.
View details →Frequently asked questions
The real questions we get by email and on Mastodon. If yours is missing, open a ticket.
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,…
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.