Best Local LLMs for Roo Code
Autonomous VS Code agent with modes (a Cline fork)
Roo Code is an autonomous VS Code coding agent forked from Cline, adding selectable modes (Architect, Code, Ask, Debug). It runs any local model via Ollama, LM Studio, or an OpenAI-compatible endpoint, and because it shares Cline's diff/tool-use protocol it has the same low tolerance for weak tool-callers and small context windows. The strong agentic Qwen MoE models lead.
- Best pick
- Qwen3.6 35B-A3BNewest large Qwen3.x MoE; strongest tool-use + repo-scale reasoning in the catalog.
- What Roo Code needs
- Reliable structured tool-calling sustained across a large multi-turn context window. The model must follow the diff/tool protocol turn after turn without drifting.
Roo Code local LLM tier list
12 models| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen3.6 35B-A3B | 35B | 32GB | Newest large Qwen3.x MoE; strongest tool-use + repo-scale reasoning in the catalog. | |
| Qwen3.5 35B-A3B Instruct | 35B | 32GB | Prior-gen of the same MoE class; proven agentic tool-calling, fast active-param inference. |
| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen3 30B | 30B | 32GB | Direct lineage of Cline/Roo's recommended Qwen3 Coder 30B; the safe default local pick. | |
| Qwen2.5 Coder 14B | 14B | 16GB | The most-reported "actually works in Roo/Cline" dense coder; community Modelfiles target it. | |
| Qwen3.5 27B Instruct | 27B | 24GB | Dense 27B with current-gen instruction-following; reliable tool calls, ample context. | |
| Mistral Small 22B | 22B | 32GB | Mistral Small (Devstral) lineage built for agentic tool-use; solid mid-size performer. |
| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen3.5 9B Instruct | 9B | 12GB | Handles tool calls but occasionally drifts on long agentic chains. | |
| Qwen3 14B | 14B | 16GB | Decent tool-use; weaker repo-scale memory than 27B+. | |
| Gemma 4 31B | 31B | 32GB | Strong reasoning, but Gemma tool-calling is less battle-tested in Roo/Cline than Qwen. |
| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen3.5 4B Instruct | 4B | 6GB | Too small for reliable multi-turn tool-calling; fine only for quick Ask mode. | |
| DeepSeek-R1 Distill Qwen 14B | 14B | 16GB | Verbose chain-of-thought interferes with the strict tool-call protocol. | |
| Llama 4 Scout | 109B | 96GB | Large MoE but inconsistent tool-calling in coding agents. |
Tiers weigh tool-calling reliability, context window, and coding quality for Roo Code specifically. A model can rank higher for one tool than another. RAM figures are for Q4 quantization. Sources are listed below.
Local setup notes
Select Ollama or LM Studio as the provider. Roo Code defers to your model's Modelfile num_ctx. Use 16K for ~8GB VRAM, 32K for ~16GB, and 64K+ for 24GB+. With LM Studio, switch the model to the OpenAI Compatible mode for clean tool calls.
Get told when a better model fits your MacBook Air M5 16 GB
Get one email when a new open-weight model is a better fit for this machine.
For: MacBook Air M5 16 GB
You'll also get the weekly ModelFit email. By signing up you agree to our Privacy Policy. Unsubscribe from either email anytime, in one click.
Frequently asked questions
What is the best local model for Roo Code?
What context window does Roo Code need for local models?
Why do small local models fail in Roo Code?
Sources
Other AI coding tools
- Claude CodeAnthropic's terminal coding agent, driven by a local modelCLI agent
- OpenCodeOpen-source terminal coding agent (Ollama / OpenAI-compatible)CLI agent
- OpenClawSelf-hosted agentic assistant with first-class Ollama supportSelf-hosted agent
- AiderTerminal AI pair-programmer with its own edit-format leaderboardTerminal pair-programmer
- ClineAutonomous coding agent for VS Code (formerly Claude Dev)IDE extension
- Continue.devOpen-source chat, edit & autocomplete for VS Code / JetBrainsIDE extension
- GooseBlock's open-source autonomous developer agent (MCP-driven)CLI agent
- Open Claude CodeOpen-source Claude Code CLI reimplementation, with an undocumented endpoint override for local modelsCLI agent
- CodexOpenAI's coding agent, driven by a local model via its built-in Ollama providerCLI agent