Why go local

There are two honest reasons to run OpenClaw on a local model: privacy and cost. With Ollama, your prompts and files never leave the machine, and there's no per-token bill to surprise you at the end of the month. If you're feeding the agent sensitive data — customer records, internal code, your own notes — that's a real argument. The catch is capability, and I'll get to that.

Setup

Install Ollama, pull a model, and point OpenClaw at the local endpoint:

# install ollama from ollama.com, then:
ollama pull llama3.1:8b
ollama serve

Ollama serves a local API on http://localhost:11434. In OpenClaw's config, set the provider to that local endpoint and pick the model you pulled. The exact key names vary by release, so check the config docs for the local-provider spelling.

Picking a model by RAM

Model choice is mostly a RAM question. As a rough rule, an 8-billion-parameter model wants about 8GB of RAM; a 70B model wants roughly 40GB or more. Most people are fine with the 8B range for everyday tasks. The gap between a 7–8B local model and a top hosted model is large on hard reasoning, but small on straightforward chores like summarizing text or drafting a routine message.

The trade-offs

Be realistic about what you're giving up. A local model is slower, less reliable at following long multi-step instructions, and worse at anything that needs deep reasoning. An agent makes a lot of calls, so those weaknesses compound — a task that a hosted model nails in one pass might take a local model three tries and still miss the mark.

My rule: use local for volume and privacy, hosted for anything where getting it right the first time matters. The two aren't mutually exclusive — OpenClaw can switch providers, so run the routine stuff locally and reach for a hosted model when the task actually needs it.