Best Local LLMs for OpenClaw
Self-hosted agentic assistant with first-class Ollama support
OpenClaw is a self-hosted, model-agnostic agentic assistant that runs across your messaging apps and executes tools (browser, cron, canvas, skills) on your own hardware. It supports local open-weight models through a native Ollama provider, where the agent loop depends entirely on the model emitting structured tool calls. Pick a model trained for that, and connect through the right endpoint.
- Best pick
- Qwen3.6 35B-A3BNewest Qwen3 MoE; the Qwen3 line has the most stable tool calling and rarely drops params.
- What OpenClaw needs
- Reliable structured tool-calling at 64K+ context (Ollama's own integration docs recommend at least 64K tokens for local models), accessed via the native Ollama API. Not the /v1 OpenAI-compatible endpoint, which OpenClaw's docs warn breaks tool calls.
OpenClaw local LLM tier list
13 models| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen3.6 35B-A3B | 35B | 32GB | Newest Qwen3 MoE; the Qwen3 line has the most stable tool calling and rarely drops params. | |
| Qwen3.5 35B-A3B Instruct | 35B | 32GB | Same proven Qwen3 tool-calling reliability; the family featured in OpenClaw config recipes. | |
| Gemma 4 31B | 31B | 32GB | Gemma 4 ships native function calling; OpenClaw docs treat gemma4 as the local default. |
| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Gemma 4 26B-A4B | 26B | 24GB | Native function calling in an efficient MoE; a top consumer-hardware agent pick. | |
| Qwen3.5 27B Instruct | 27B | 24GB | Explicitly named in OpenClaw Ollama recipes; dense Qwen3 tool reliability. | |
| Llama 3.3 70B Instruct | 70B | 64GB | Solid tool calling and large context; named in OpenClaw recipes. | |
| Qwen3.5 9B Instruct | 9B | 12GB | Directly featured in OpenClaw docs (qwen3.5:9b, num_ctx 32768). |
| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen3 30B | 30B | 32GB | Qwen3-Coder 30B is RL-trained for multi-step agentic loops; strong but prior-gen. | |
| Mistral Small 22B | 22B | 32GB | Mistral supports tools; mid reliability with decent context. | |
| Phi-4 14B | 14B | 24GB | Reasoning-strong starter, but less battle-tested for sustained tool loops. |
| Model | Size | RAM | Why | Run |
|---|---|---|---|---|
| Qwen2.5 Coder 14B | 14B | 16GB | Great code completion, but not RL-trained for OpenClaw-style multi-step tool loops. | |
| Llama 3.1 8B Instruct | 8B | 12GB | Small, older Llama tool-calling; prone to malformed calls. | |
| Gemma 2 9B Instruct | 9B | 12GB | Predates native function calling; poor agentic fit. |
Tiers weigh tool-calling reliability, context window, and coding quality for OpenClaw specifically. A model can rank higher for one tool than another. RAM figures are for Q4 quantization. Sources are listed below.
Local setup notes
Pull a model with Ollama and OpenClaw auto-discovers it. Point it at the native API base URL (http://host:11434, no /v1) and set num_ctx to 64K+, the minimum Ollama's own integration docs recommend for local models. Quality and tool-call reliability scale with model size, so prefer the largest variant your hardware allows.
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
Can I run OpenClaw fully local with no API costs?
Why does the endpoint URL matter so much for OpenClaw?
Why are the Qwen2.5-Coder models only mid-tier here despite being great coders?
Sources
- OpenClaw: self-hosted, model-agnostic agentic assistant
- OpenClaw Ollama provider: /v1 endpoint breaks tool calling, use the native URL
- OpenClaw local-model guidance: prefer the largest variant you can host
- Ollama integration docs: recommend at least 64K context for local models
- Qwen3 most stable tool calling; Gemma 4 native function calling
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
- AiderTerminal AI pair-programmer with its own edit-format leaderboardTerminal pair-programmer
- ClineAutonomous coding agent for VS Code (formerly Claude Dev)IDE extension
- 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