Awesome Open Source AI
Editorial ranking · 10 toolsResearched Sep 2026Non-sponsored · Open source

Top 10 self-hosted AI coding assistants for local models

These are open-source coding assistants you can point at a model you run yourself, through Ollama, llama.cpp, LM Studio or vLLM on a laptop or a company GPU server. The list is for developers and teams who want autocomplete, chat or an agent without sending code to a vendor. A local model keeps inference in-house, but several of these tools still send telemetry, route autocomplete through a hosted gateway or default to a cloud account until you change it.

#01–#10 is our editorial recommendation for that audience, not a benchmark or a star count. The order weighs how well each tool works with local models, how much of its code is open and how little leaves your network by default. For general agent platforms and frameworks beyond coding, see the Top 10 self-hosted AI agent platforms and frameworks.

Flat illustration of two llamas pair programming: one typing on a keyboard, the other pointing at a monitor showing angle brackets

How we picked and ranked

  • Works with local models: A documented path to Ollama, llama.cpp, LM Studio or vLLM, plus guidance on context size and tool calling, which is where local setups usually break.
  • Autocomplete or agent: Fill-in-the-middle completion needs a fast 1.5B–7B base model; agents need tool calling and 22k–64k tokens of context. Every pick is labelled by what it actually does.
  • What leaves the machine: Telemetry defaults, required sign-in, hosted gateways, update checks and share features, read from each project's docs and source rather than its marketing.
  • Open code, maintained in 2026: OSI-licensed code with a release or commit in the last six months. Closed parts are called out: Cline's JetBrains plugin, Twinny's licensed gateway features and Tabby's ee/ directory.

At a glance: the 10 picks

Each card shows the tool's role, licence and whether it does autocomplete, chat or agent work. Select a card to jump to its review.

Cline logo

Cline

IDE agent

An approval-gated coding agent for VS Code, JetBrains, the terminal and desktop, with a Compact Prompt mode for small local context windows.

Apache-2.0 · JetBrains plugin closedAgent · VS Code, JetBrains, CLI
OpenCode logo

OpenCode

Terminal agent

An MIT-licensed terminal agent with build and plan modes that talks to any OpenAI-compatible server, including Ollama, llama-server and LM Studio.

MITAgent · TUI, desktop app
goose logo

goose

Desktop agent

A Rust desktop app, CLI and API under the Linux Foundation's Agentic AI Foundation that lists your Ollama models automatically and connects to MCP extensions.

Apache-2.0Agent · desktop, CLI, API
OpenHands logo

OpenHands

Agent platform

A self-hosted control center, Agent Canvas, that runs coding agents on your laptop, in Docker sandboxes or on company VMs, with recipes for vLLM, SGLang and Ollama.

MITAgent · web UI, Docker sandbox
llama.vscode logo

llama.vscode

Autocomplete extension

The llama.cpp team's VS Code extension: fast fill-in-the-middle completion with context reuse, plus chat and a local agent.

MITFIM + chat + agent · VS Code
Twinny logo

Twinny

Autocomplete extension

A VS Code assistant with FIM completion, chat, inline edit and review, no telemetry or sign-in, and an optional gateway that shares one GPU across a team.

MIT · paid gateway featuresFIM + chat · VS Code, team gateway
Tabby logo

Tabby

Completion server

A self-contained completion and chat server with an admin UI and repository indexing, serving VS Code, IntelliJ and Vim/Neovim clients.

Apache-2.0 · ee/ directory separateFIM + chat · server, multi-IDE
Zed logo

Zed

Code editor

A native editor whose built-in agent, inline assistant and tab-style edit prediction can all run on Ollama, llama.cpp or LM Studio.

GPL-3.0-or-laterAgent + edit prediction · editor
Kilo Code logo

Kilo Code

IDE agent

An MIT-licensed agent for VS Code, JetBrains and the CLI with a local Ollama provider, from a company whose default path is its paid model gateway.

MITAgent · VS Code, JetBrains, CLI
Codex CLI logo

Codex CLI

Terminal agent

OpenAI's Apache-2.0 terminal agent, which runs against Ollama or LM Studio with --oss as long as the server speaks the Responses API.

Apache-2.0Agent · CLI

Mode, interface and local model support

FIM means fill-in-the-middle tab completion. Agent means the tool edits files and runs commands on its own.

ToolModeInterfaceLocal model supportLicense
ClineChat, agentVS Code, JetBrains, CLI, desktopOllama, LM Studio, OpenAI-compatibleApache-2.0 (JetBrains plugin closed)
OpenCodeChat, agentTerminal UI, desktop appAny OpenAI-compatible server via configMIT
gooseChat, agentDesktop app, CLI, APIOllama (auto-listed), LM Studio, vLLM, Docker Model RunnerApache-2.0
OpenHandsAgent, automationsWeb UI, Docker or VM backendsvLLM, SGLang, Ollama, LM StudioMIT
llama.vscodeFIM, chat, agentVS Code extensionllama.cpp server (bundled install)MIT
TwinnyFIM, chat, inline editVS Code extension, team gatewayOllama, LM Studio, llama.cpp, OpenAI-compatibleMIT (paid gateway features)
TabbyFIM, chatServer + VS Code, IntelliJ, Vim clientsBuilt-in runtime, Ollama, llama.cppApache-2.0 (ee/ separate)
ZedFIM (edit prediction), chat, agentNative editorOllama, llama.cpp, LM Studio, OpenAI-compatibleGPL-3.0-or-later
Kilo CodeChat, agent (autocomplete via gateway)VS Code, JetBrains, CLIOllama, OpenAI-compatibleMIT
Codex CLIAgentCLIOllama, LM Studio (Responses API only)Apache-2.0

Network defaults, from each project's docs: Twinny sends no telemetry and needs no account; goose asks before collecting usage data; Cline, Zed and the Tabby server send usage data until switched off; OpenCode auto-updates at startup; Kilo's autocomplete and Zed's Zeta predictions use hosted services.

Detailed reviews

What each tool does with a local model, what it sends off the machine and when to pick something else.

Coding agents that edit your repository

Agent · #01–#04

These tools plan changes, edit files and run commands against a model you host. They need a model with reliable tool calling and a long context, which in practice means a 24 GB GPU or a large unified-memory Mac for the best local results.

cline/cline GitHub social previewGitHub preview
Cline logo
#01

Cline

IDE agentApache-2.0 · JetBrains plugin closed 63k

Best for: A VS Code team that wants an agent to plan, edit files and run commands against a local Ollama or LM Studio model, approving each step.

When not to choose: No inline tab completion, so pair it with an autocomplete tool. Telemetry is on until you switch it off in Cline or disable VS Code telemetry, and the JetBrains plugin is not open source.

Cline reads the project, proposes a plan, then edits files and runs terminal commands. In VS Code and JetBrains each edit appears as a diff, and checkpoints let you undo the agent's work.

The local path is documented step by step: choose Ollama, LM Studio or Atomic Chat as the provider, pick a model, and enable Use Compact Prompt so the system prompt fits a smaller context. Cline's docs put small quantized models at 16–32 GB of RAM and larger models with long context at 64 GB or more.

Anonymous telemetry (tools used, task events, errors, never code or file paths) goes to Cline unless you turn off the Cline Telemetry toggle or VS Code's own telemetry setting.

Key strengths

  • Plan and Act modes with approval before edits and commands
  • Per-edit diffs and checkpoints for rollback
  • Ollama, LM Studio and any OpenAI-compatible endpoint
  • Compact Prompt setting for small local context windows
  • One agent core behind VS Code, CLI, desktop app and SDK
Sources for these claims
VS Code extension, CLI or desktop app · model server separate
anomalyco/opencode GitHub social previewGitHub preview
OpenCode logo
#02

OpenCode

Terminal agentMIT 170k

Best for: Developers who work in the terminal or Neovim and want a Claude Code-style loop against a model served on their own machine or LAN.

When not to choose: Local providers are hand-written entries in opencode.json, and tool calls fail until Ollama's context is raised. On a closed network, set autoupdate to false and share to disabled.

OpenCode ships two agents you switch with Tab. Build has full access; plan is read-only, denies file edits by default and asks before running bash. A general subagent handles multi-step searches.

Local models are declared in opencode.json with the @ai-sdk/openai-compatible package and a baseURL such as http://localhost:11434/v1. The docs cover Ollama, LM Studio and llama.cpp's llama-server, and Ollama's own integration can write the config for you. If tool calls fail, the docs say to raise Ollama's num_ctx to 16k–32k.

Two defaults reach the network: OpenCode downloads updates at startup, and /share can publish a conversation (manual by default). Each is one config key.

Key strengths

  • Build and plan agents, switched with Tab
  • Any OpenAI-compatible endpoint through opencode.json
  • LSP diagnostics fed back to the agent
  • Terminal UI and desktop app from one project
Sources for these claims
CLI/TUI or desktop app (beta) · model server separate
aaif-goose/goose GitHub social previewGitHub preview
goose logo
#03

goose

Desktop agentApache-2.0 47k

Best for: A company that wants one vendor-neutral agent for coding and scripted chores on every workstation, backed by Ollama or an internal vLLM endpoint.

When not to choose: It does not live inside your editor and has no inline completion, so you review its changes in git or your IDE afterwards.

goose runs on your machine as a desktop app, a CLI or an API you embed. For local inference the docs list Ollama, LM Studio, Docker Model Runner, Ramalama and any OpenAI-compatible server such as vLLM, and every model installed in Ollama shows up in the model picker.

Most of its reach comes from the Model Context Protocol; the README counts 70+ extensions. Governance sits with the Agentic AI Foundation at the Linux Foundation, not with a single vendor.

Usage data is opt-in. goose asks on first use, and the anonymous metrics exclude conversations, code and tool arguments.

Key strengths

  • Desktop app, CLI and embeddable API from one codebase
  • Installed Ollama models listed automatically
  • Custom providers for OpenAI-, Anthropic- or Ollama-compatible APIs
  • 70+ MCP extensions
  • Opt-in anonymous usage data
Sources for these claims
Desktop app (macOS, Linux, Windows) or CLI · model server separate
OpenHands/OpenHands GitHub social previewGitHub preview
OpenHands logo
#04

OpenHands

Agent platformMIT 76k

Best for: A team with a shared GPU server that wants agents to run long tasks and automations in sandboxes instead of on developers' laptops.

When not to choose: Heavy for one developer: the recommended local model needs a 24 GB GPU or a 64 GB Apple Silicon Mac, and Docker networking to the model server trips up many first setups.

OpenHands now ships as Agent Canvas, a web control center for agent conversations and scheduled automations. Agents run on backends you choose: the local machine, Docker containers, VMs or company servers, and one frontend switches between them.

Its local-model guide is the most prescriptive on this list. Since May 2026 it recommends Qwen3.6-35B-A3B, which needs at least 24 GB of VRAM for quantized variants or a 64 GB Apple Silicon Mac, with a context of at least 22,000 tokens (32,768 recommended). Recipes cover LM Studio, Ollama, vLLM and SGLang.

When OpenHands runs in Docker, the model server must listen beyond 127.0.0.1. The guide shows how to test reachability through host.docker.internal from inside the container.

Key strengths

  • Agent backends on a laptop, in Docker, on VMs or company servers
  • Setup recipes for vLLM, SGLang, Ollama and LM Studio
  • Scheduled and webhook-triggered automations
  • Runs third-party ACP agents such as Codex or Claude Code
Sources for these claims
npm (agent-canvas) or Docker · backends on laptop, Docker or VMs

Fill-in-the-middle autocomplete on a small GPU

FIM · #05–#07

Copilot-style ghost text from a 1.5B–7B base model. This is the cheapest way to keep code local, and it runs on an 8 GB GPU or even a CPU at lower quality.

ggml-org/llama.vscode GitHub social previewGitHub preview
llama.vscode logo
#05

llama.vscode

Autocomplete extensionMIT

Best for: A developer on one consumer GPU, or CPU only, who wants ghost-text completion from a local Qwen2.5-Coder model without running Ollama.

When not to choose: VS Code only (llama.vim covers Vim and Neovim), tied to llama.cpp's server, and limited to FIM-trained models. There is no JetBrains client and no shared team server.

llama.vscode comes from ggml-org, the organisation behind llama.cpp, and treats local FIM as its main job. It keeps a ring of context from open and edited files and reuses the server's cache, which is how it handles large contexts on modest hardware.

The README sizes presets by VRAM: the 1.5B Qwen FIM model under 8 GB, 3B under 16 GB, 7B above 16 GB and 30B above 64 GB, with CPU-only presets at noticeably lower quality. The extension can install llama.cpp through Homebrew or winget and download models from Hugging Face.

Chat and Llama Agent sit next to completion. The agent has 9 built-in tools, can call MCP servers installed in VS Code, and the README names gpt-oss 20B as the best local model for it.

Key strengths

  • FIM ghost text with full, first-line and word-by-word accept
  • Context reuse across open, edited and yanked text
  • VRAM-based presets from 1.5B to 30B
  • Llama Agent with MCP tools
  • Model search and download from Hugging Face
Sources for these claims
VS Code extension · installs and starts llama.cpp locally
twinnydotdev/twinny GitHub social previewGitHub preview
Twinny logo
#06

Twinny

Autocomplete extensionMIT · paid gateway features

Best for: A small VS Code team that wants every developer's completions and chat served from one GPU box on the office network.

When not to choose: VS Code only and maintained by one person. The gateway is free for five developers; more seats, team policy, recording and plugins need a licence at $6 per seat a month.

Twinny finds Ollama, LM Studio and llama.cpp on their usual ports on first start and asks which models to use. Completions use context from open files, imports, the language server and recent edits. The docs suggest starting with qwen2.5-coder:1.5b-base and call 1.5B–7B the sweet spot.

Next to completion it has inline edit with per-hunk accept, chat with @-mentions, a hybrid keyword-and-vector workspace index, and review of the working tree or a GitHub pull request. The README states no telemetry and no account.

twinny-server is a small gateway that runs next to the models. Each developer gets a key, usage is counted per person without storing content, and the licence check happens locally.

Key strengths

  • FIM completion tuned to work with 7B-class models
  • No telemetry and no sign-in
  • Per-developer keys and usage on a self-hosted gateway
  • Use another machine's GPU over an encrypted peer-to-peer link
  • Code review and commit messages from local models
Sources for these claims
VS Code extension · optional twinny-server gateway (npx, Docker, Helm)
TabbyML/tabby GitHub social previewGitHub preview
Tabby logo
#07

Tabby

Completion serverApache-2.0 · ee/ directory separate 34k

Best for: A team of up to five on mixed editors that wants one internal completion endpoint with repository context.

When not to choose: Development has slowed: the last stable release is v0.32.0 from January 2026, and TabbyML's newer work is its Pochi agent. The free Community licence stops at 5 users, and usage stats are sent unless you set TABBY_DISABLE_USAGE_COLLECTION=1.

Tabby is a server first: one process with its own admin UI, no external database and an OpenAPI interface. Extensions for VS Code, the IntelliJ platform and Vim/Neovim connect to it.

It can run models itself on a consumer GPU or call Ollama, llama.cpp and other HTTP backends for completion, chat and embeddings. Repository indexing feeds your own code into completion and chat context.

Licensing is tiered. Community is free for up to 5 users and Team costs $19 per user a month for up to 50. By default the server reports its model, device, CPU and version to TabbyML.

Key strengths

  • Self-contained server with admin UI and no external DBMS
  • Clients for VS Code, IntelliJ and Vim/Neovim
  • Ollama, llama.cpp and other HTTP model backends
  • Repository indexing for completion context
  • OpenAPI interface for custom clients
Sources for these claims
Docker or binary server · consumer GPU, or Ollama/llama.cpp as backend

Local-capable tools with cloud-first defaults

Configure first · #08–#10

All three run on local models, but out of the box they point at the vendor's hosted service. Pick them when you already like the tool, and switch off the hosted paths before pointing them at private code.

zed-industries/zed GitHub social previewGitHub preview
Zed logo
#08

Zed

Code editorGPL-3.0-or-later 85k

Best for: Developers willing to switch editors to get agent chat and local tab predictions in one app, with no extensions to manage.

When not to choose: Defaults favour Zed's hosted services: Zeta edit prediction needs sign-in (2,000 free predictions a month), and usage metrics and crash reports are on until you disable them. It also means leaving VS Code or JetBrains.

Zed builds AI into the editor rather than an extension. The agent panel and inline assistant work with any provider, and Zed discovers models pulled into Ollama or served by llama.cpp, including their context length and tool support.

Edit prediction, Zed's tab completion, can call a local Ollama or OpenAI-compatible completions endpoint with a base model such as qwen2.5-coder:7b-base. Prompt formats cover Qwen, StarCoder, DeepSeek, CodeLlama, Codestral and Zeta.

Watch the context size: Zed sends num_ctx 4096 to Ollama unless you set context_window. For private code, set telemetry diagnostics and metrics to false.

Key strengths

  • Local agent, inline assistant and edit prediction in one app
  • Automatic discovery of Ollama and llama.cpp models
  • FIM prompt formats for common code models
  • Telemetry switches in settings
Sources for these claims
Kilo-Org/kilocode GitHub social previewGitHub preview
Kilo Code logo
#09

Kilo Code

IDE agentMIT 20k

Best for: Teams that already use Kilo with hosted models and want the same agent on local Ollama models for private repositories.

When not to choose: Autocomplete is routed through the Kilo Gateway (Codestral by default), so there is no local tab completion. Kilo's own FAQ says sign-in, updates, telemetry and cloud features each need configuring or disabling for an air-gapped setup.

Kilo runs the same agent in a VS Code extension, a JetBrains plugin and a CLI. The Ollama provider uses model IDs such as ollama/qwen3-coder:30b against your local base URL, which Kilo keeps separate from the hosted Ollama Cloud path.

Its docs are blunt about local limits. They recommend qwen3-coder:30b or devstral:24b, warn that the 30B model sometimes fails tool calls, and ask for a 24 GB GPU or 32 GB of unified memory with at least 32k context.

The product is built around an account. The README's install steps start with creating one for access to 500+ hosted models, and cloud agents and code review run on app.kilo.ai.

Key strengths

  • One agent across VS Code, JetBrains and CLI
  • Local Ollama provider kept separate from Ollama Cloud
  • Codebase indexing with Ollama embeddings and LanceDB or Qdrant
  • Documented local model, context and timeout settings
Sources for these claims
VS Code, JetBrains or CLI · local Ollama or Kilo Gateway
openai/codex GitHub social previewGitHub preview
Codex CLI logo
#10

Codex CLI

Terminal agentApache-2.0 89k

Best for: Developers who already use Codex with OpenAI models and want the same agent on a local gpt-oss model for sensitive repositories.

When not to choose: Only the Responses API is supported, so servers that offer only Chat Completions fail. Ollama asks for at least 64k context, and OpenAI's hosted models remain the default path.

Codex CLI edits files and runs commands in your repository under an approval policy you set. `codex --oss` switches it to a local provider; Ollama and LM Studio are built in, the default local model is gpt-oss:20b, and `ollama launch codex` writes a matching profile.

Codex removed `wire_api = "chat"`, so every provider must serve `/v1/responses`. Many OpenAI-compatible servers that work with the other agents here will not work with Codex.

Web search through Ollama's profile runs on Ollama's service and needs `ollama signin`. Set web_search to disabled to keep a session local.

Key strengths

  • Built-in Ollama and LM Studio providers via --oss
  • codex exec for scripts and CI
  • Configurable approval policies for commands
  • MCP server support
Sources for these claims
npm or binary CLI · Ollama or LM Studio via --oss

Decision guide: which coding assistant to self-host

Start from the job and the hardware you have, then check the review for the network settings to change.

Agent inside VS Code, every step approved

Plan and Act modes, diffs and checkpoints, and a Compact Prompt option written for local models.

Terminal agent on a LAN model server

Any OpenAI-compatible baseURL works, and plan mode keeps exploration read-only until you switch to build.

Tab completion on an 8 GB GPU

The 1.5B Qwen FIM preset targets under 8 GB of VRAM, and the extension installs and runs llama.cpp for you.

One completion server for a small team

Twinny's gateway is free for five VS Code developers; Tabby covers IntelliJ and Vim/Neovim users, also free up to five.

Twinny or Tabby Jump to review →
Long agent jobs on a shared GPU box

Agents run in Docker or on VMs you control, with vLLM and SGLang recipes for the recommended model.

Switching editors is on the table

Agent, inline assistant and edit prediction all accept a local Ollama model once telemetry is off.

Questions people ask

Common problems from issue trackers and setup guides when running coding assistants on local models.

Which of these give Copilot-style tab completion with a local model?

llama.vscode, Twinny, Tabby and Zed's edit prediction all do fill-in-the-middle completion against a local server. Cline, OpenCode, goose, OpenHands and Codex CLI are chat and agent tools only. Kilo Code has autocomplete, but it runs through the Kilo Gateway rather than a local model.

Why does my agent stall or ignore tools on Ollama?

Usually the context window. OpenHands notes Ollama's 4096-token default cannot even hold its system prompt and asks for at least 22,000 tokens via OLLAMA_CONTEXT_LENGTH. OpenCode suggests 16k–32k and Ollama's Codex guide asks for 64k. Small models also miss tool calls more often; Kilo reports this even with qwen3-coder:30b.

What hardware do I need?

Autocomplete is light: llama.vscode recommends a 1.5B FIM model under 8 GB of VRAM and a 7B model above 16 GB, with CPU-only presets at lower quality. Agents are heavier: OpenHands' recommended model needs 24 GB of VRAM or a 64 GB Apple Silicon Mac, and Kilo asks for 24 GB or 32 GB of unified memory.

Is Continue still worth installing?

Not for a new setup. Its README says the continuedev/continue repository is no longer actively maintained and is read-only, after a final 2.0.0 release in June 2026. Roo Code (archived May 2026), Void and Refact.ai are also archived.

Why does Codex CLI fail against my OpenAI-compatible server?

Codex only speaks the Responses API and rejects `wire_api = "chat"`. Use a server that exposes /v1/responses, such as Ollama through `codex --oss` or `ollama launch codex`.

My agent runs in Docker and cannot reach the model server. What is wrong?

Inside a container, 127.0.0.1 is the container itself. Point the agent at host.docker.internal and make the model server listen on the network; OpenHands' guide shows enabling LM Studio's Serve on Local Network and testing the connection from inside the container.