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.
Table 1Tier list

OpenClaw local LLM tier list

13 models
SS: Best in class3
ModelSizeRAMWhyRun
Qwen3.6 35B-A3B35B32GBNewest Qwen3 MoE; the Qwen3 line has the most stable tool calling and rarely drops params.
Qwen3.5 35B-A3B Instruct35B32GBSame proven Qwen3 tool-calling reliability; the family featured in OpenClaw config recipes.
Gemma 4 31B31B32GBGemma 4 ships native function calling; OpenClaw docs treat gemma4 as the local default.
AA: Strong, reliable4
ModelSizeRAMWhyRun
Gemma 4 26B-A4B26B24GBNative function calling in an efficient MoE; a top consumer-hardware agent pick.
Qwen3.5 27B Instruct27B24GBExplicitly named in OpenClaw Ollama recipes; dense Qwen3 tool reliability.
Llama 3.3 70B Instruct70B64GBSolid tool calling and large context; named in OpenClaw recipes.
Qwen3.5 9B Instruct9B12GBDirectly featured in OpenClaw docs (qwen3.5:9b, num_ctx 32768).
BB: Usable with caveats3
ModelSizeRAMWhyRun
Qwen3 30B30B32GBQwen3-Coder 30B is RL-trained for multi-step agentic loops; strong but prior-gen.
Mistral Small 22B22B32GBMistral supports tools; mid reliability with decent context.
Phi-4 14B14B24GBReasoning-strong starter, but less battle-tested for sustained tool loops.
CC: Works, but not recommended3
ModelSizeRAMWhyRun
Qwen2.5 Coder 14B14B16GBGreat code completion, but not RL-trained for OpenClaw-style multi-step tool loops.
Llama 3.1 8B Instruct8B12GBSmall, older Llama tool-calling; prone to malformed calls.
Gemma 2 9B Instruct9B12GBPredates 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.

Setup

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.

FAQ

Frequently asked questions

Can I run OpenClaw fully local with no API costs?
Yes. OpenClaw has a native Ollama provider: pull a model and it is auto-discovered. The docs note quality and tool-call reliability scale with model size, so a larger model gives a smoother agent loop.
Why does the endpoint URL matter so much for OpenClaw?
OpenClaw's docs warn against the /v1 OpenAI-compatible URL: it breaks tool calling, and models may emit raw tool JSON as plain text. Use the native API base URL (http://host:11434, no /v1) so tool calls parse correctly.
Why are the Qwen2.5-Coder models only mid-tier here despite being great coders?
They excel at code completion, but OpenClaw is an agentic tool-loop driver. Qwen3 and Gemma 4 are trained for reliable multi-step tool calling, which OpenClaw weights most. A great autocomplete model that fumbles tool JSON makes a poor agent.
Sources

Sources

Directory

Other AI coding tools

Related

Explore more