Coding agents get the headlines, but the AI feature many developers use most is plain autocomplete: grey ghost text that finishes the line or function you're typing and drops in when you press Tab. You don't need a cloud subscription for it. Autocomplete uses small "fill-in-the-middle" (FIM) models, typically 1.5B to 7B parameters, which are small enough for a mid-range graphics card and keep your code on your own PC.
Our picks are based on each project's own documentation and GitHub repository, read on 3 December 2026, and on how easy each is to set up, which editors it supports, how it's licensed and how actively it's maintained. All four are free to use for one person.
Quick picks
Pick | Best for | Editors | Licence |
|---|
llama.vscode | Simplest local autocomplete in VS Code | VS Code (Open VSX too) | MIT |
Continue | Autocomplete alongside an Ollama-based coding agent | VS Code, JetBrains | Apache 2.0 |
Tabby | A shared server for a team or several editors | VS Code, JetBrains, Vim | Apache 2.0 (except "ee/" directory) |
Twinny | All-in-one VS Code assistant that finds your model server | VS Code | MIT |
Why autocomplete needs a special model
Autocomplete sends the code before and after your cursor and asks the model to fill the gap. That needs a model trained for the FIM format. Continue's documentation is blunt about it: big chat models such as GPT-5 or Claude aren't trained with this prompt format so won't give useful completions, and most of the best autocomplete models are no more than 10 billion parameters, with little gained above that. Its recommended open models are Qwen2.5-Coder 1.5B and 7B. Continue also warns that "thinking" models are usually too slow for autocomplete unless you turn thinking off.
For the general coding models that power chat and agents, see our best local coding models.
1. llama.vscode: best for simple local autocomplete in VS Code
llama.vscode comes from ggml-org, the team behind llama.cpp, and it's the most direct route from your GPU to ghost text. The extension can install llama.cpp for you (through winget on Windows or Homebrew on macOS) and then start a ready-made "env" with a model chosen for your graphics memory. Its README recommends Qwen 2.5 Coder 1.5B with less than 8GB of VRAM, 3B with less than 16GB, 7B with more than 16GB and Qwen 3 Coder 30B A3B with more than 64GB, plus CPU-only configs if you don't have a suitable card.
It keeps a ring of context from files you've opened and edited, uses llama.cpp's context reuse to handle large contexts on modest hardware, and lets you accept a whole suggestion (Tab), the first line (Shift+Tab) or the next word (Ctrl+Right Arrow). It has since grown a chat view and the Llama Agent, but you can use it for completion alone. It's MIT-licensed and was updated three times in November 2026, most recently to v0.0.80 on 30 November.
Downsides: VS Code only (Vim and Neovim users get the sister plugin llama.vim instead), and you need FIM-compatible models.
Step-by-step guide: how to set up local code completion with llama.vscode.
2. Continue: best if you also want a local coding agent
Continue, now described on GitHub as an open-source coding agent, also has tab autocomplete in its VS Code and JetBrains extensions. Its documentation recommends running Ollama and pulling qwen2.5-coder:1.5b, then adding it to Continue's config with the autocomplete role. You can set multi-line completions to always, never or auto, switch autocomplete off for particular file types, and toggle it from the Continue button in the status bar.
The appeal is having one tool for chat, agent work and completion, all pointing at the same local Ollama install. Continue is Apache 2.0 licensed, and its GitHub repository had been updated within the previous day when we checked.
Downsides: its autocomplete documentation recommends Codestral through Mistral's online API for the best results, so the fully local route is the second option there. If GitHub Copilot or another completion extension is also switched on, Continue says to disable it as they may interfere.
Setting up the chat side: how to use Continue with Ollama.
3. Tabby: best self-hosted server for a team
Tabby from TabbyML is a self-hosted alternative to GitHub Copilot. Rather than an extension that runs a model, it's a server you run with Docker or a downloaded release (Windows builds come in CPU, CUDA and Vulkan versions), which editors then connect to with an account token. It has extensions for VS Code, JetBrains IDEs and Vim, a web admin page, an Answer Engine for questions about your code, repository indexing and team sign-in options including LDAP and OAuth.
Its model registry lists completion models such as StarCoder, CodeLlama, DeepSeekCoder, CodeGemma, Codestral-22B and Qwen2.5-Coder up to 14B, each with its licence. TabbyML recommends at least an NVIDIA 10 or 20 Series GPU (or Apple Silicon) for 1B to 3B models and a 30 or 40 Series card for 7B to 13B models.
Downsides: more to set up than an extension, and development has slowed: the latest stable release was v0.32.0 on 25 January 2026, and the repository's last push was on 30 June 2026 when we checked. Check model licences too; Codestral-22B is non-production only.
Head to head: Tabby vs llama.vscode.
4. Twinny: best all-in-one VS Code assistant
Twinny is a free, MIT-licensed VS Code extension (it needs VS Code 1.93 or newer) that bundles fill-in-the-middle completion with inline edits, chat, code review and commit messages. Its README says it finds Ollama, LM Studio and llama.cpp on their usual ports when it first starts and asks which models to use, and that its completion is tuned to work well with a 7B model. It also says there's no telemetry and no sign-in.
Downsides: it's written and maintained by one developer, and while the extension itself is free, its optional team gateway is only free for up to five developers, with extras such as policy, recording and plugins needing a paid licence.
What hardware do you need?
Much less than for a chat model. Going by llama.vscode's guidance, an 8GB graphics card such as the ASUS RTX 5060 8GB Dual OC sits just above the under-8GB band for the 1.5B model, so it falls in the 3B band, a 12GB ASUS RTX 3060 Dual Gaming OC V2 is still in the 3B band, and 16GB, as on the ASUS RTX 5060 Ti 16GB Dual OC, is the point where it recommends the 7B model. Bear in mind that if you run a separate chat or agent model at the same time, they share that memory. See our best GPUs for local AI coding for more.
Also worth knowing