Best Local LLMs for Cline
Autonomous coding agent for VS Code (formerly Claude Dev)
Cline is an autonomous coding agent VS Code extension that reads files, edits code, runs terminal commands, and drives a browser through a tightly looped tool-call cycle. It is one of the most demanding agents to run locally. Every step is a structured tool call over a long, growing context, so sub-7B and under-trained models routinely break its loop. This list is honest about what actually holds together.
- Best pick
- Qwen3 30BQwen3-Coder 30B is the community default: 256K context, agentic tuning, ~96% well-formed tool calls.
- What Cline needs
- Reliable structured tool-calling under a long, growing context window. This matters far more than raw benchmark coding skill.
Cline local LLM tier list
12 models| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen3 30B | 30B | 32GB | Qwen3-Coder 30B is the community default: 256K context, agentic tuning, ~96% well-formed tool calls. | |
| Llama 3.3 70B Instruct | 70B | 64GB | Highest tool-call ceiling in benchmarks (~97%); strong instruction-following holds the loop, at heavy RAM cost. |
| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen3.6 35B-A3B | 35B | 32GB | Newest large Qwen3 MoE; strong reasoning, big enough to sustain Cline's loop. | |
| Qwen3.5 35B-A3B Instruct | 35B | 32GB | Same MoE class, proven agentic behavior and long context. | |
| Gemma 4 31B | 31B | 32GB | Benchmarked at ~95% tool-call reliability; best general-purpose pick for mid rigs. | |
| Qwen3.5 27B Instruct | 27B | 24GB | Dense Qwen3.5; reliable tool use and long context. |
| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen3.5 9B Instruct | 9B | 12GB | Fine for focused single-file tasks; tool calls get shaky on long multi-file sessions. | |
| Mistral Small 22B | 22B | 32GB | Solid instruction-following but less agent-tuned than Qwen3/Gemma peers. | |
| Qwen2.5 Coder 14B | 14B | 16GB | Strong code knowledge but weaker structured tool-calling than the Qwen3 generation. |
| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen2.5 Coder 7B | 7B | 8GB | Reported to emit malformed/skipped tool calls; needs custom cline/tools variants to work at all. | |
| DeepSeek-R1 Distill Qwen 14B | 14B | 16GB | Over-thinks and dumps prose instead of structured tool calls. | |
| Phi-4 14B | 14B | 24GB | Not tool-call trained for agents; paraphrases rather than emitting clean tool calls. |
Tiers weigh tool-calling reliability, context window, and coding quality for Cline specifically. A model can rank higher for one tool than another. RAM figures are for Q4 quantization. Sources are listed below.
Local setup notes
Set Cline's API provider to Ollama or LM Studio (OpenAI-compatible, localhost:11434). Enable "Use Compact Prompt", raise the model's context window, and budget 64GB+ RAM for the larger models. Q4_K_M is the practical quantization floor. Q3/Q2 degrade tool-call reliability.
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 Cline?
Why do small models fail in Cline?
What quantization should I use for Cline?
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
- Roo CodeAutonomous VS Code agent with modes (a Cline fork)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