← All guides

OpenClaw + Qwen 3.5 + Ollama: Best Free Setup (2026)

Qwen 3.5 27B running locally through Ollama is the best free model for OpenClaw in 2026. It handles tool calling reliably, fits in 32GB RAM, and costs nothing per month. This guide walks you through the complete setup with a video walkthrough.

TL;DR — Install Ollama, run ollama pull qwen3.5:27b, configure OpenClaw with one command. Total monthly cost: $0. Jump to setup ↓

Video Walkthrough

Why Qwen 3.5 + Ollama?

OpenClaw needs a model that can do tool calling (executing commands, reading files, browsing the web). Most small local models fail at this. Qwen 3.5 27B is the sweet spot:

  • Tool calling works reliably (unlike 7B models that hallucinate tool calls)
  • Fits in 32GB RAM (unlike 70B models that need 64GB+)
  • Competitive with GPT-4o-mini on most tasks
  • $0/month vs $3-15/month for cloud APIs
  • Fully offline after initial download
Model Cost/Month Tool Calling RAM Needed Speed
Qwen 3.5 27B (Ollama) $0 Reliable 32 GB 15-25 tok/s
GPT-4o-mini $3-8 Reliable N/A (cloud) 50+ tok/s
Claude Sonnet $6-15 Excellent N/A (cloud) 80+ tok/s
Llama 3.1 8B (Ollama) $0 Unreliable 16 GB 30+ tok/s

Setup: 3 Commands, 5 Minutes

Step 1: Install Ollama

curl -fsSL https://ollama.ai/install.sh | sh

On Mac, you can also download from ollama.ai. Verify it is running:

ollama --version

Step 2: Pull Qwen 3.5 27B

ollama pull qwen3.5:27b

This downloads approximately 16GB. It takes a few minutes depending on your connection. Once done, test it:

ollama run qwen3.5:27b "What is 2+2?"

Step 3: Configure OpenClaw

openclaw config set agents.defaults.models.chat ollama/qwen3.5:27b

That is it. OpenClaw will now use your local Qwen model for all conversations. Verify with:

openclaw models status

What Works and What Does Not

Works well:

  • File management (reading, writing, organizing files)
  • Code generation and debugging
  • Email drafting and summarization
  • Calendar and task management
  • Local automation and scripting
  • Research from local documents

Works but slower:

  • Multi-step reasoning (takes 10-30 seconds per step vs instant on cloud)
  • Long conversations (context window fills up faster)
  • Complex tool chains (3+ tools in sequence)

Does not work well:

  • Very long documents (64K token context limit)
  • Real-time tasks that need fast responses
  • Tasks requiring 70B+ model quality (legal analysis, complex code architecture)

Hardware Recommendations

Apple Mac mini M4
Apple Mac mini M4 (16GB+)
The most popular dedicated host for OpenClaw + Ollama. Silent, always-on, handles Qwen 3.5 27B with the 24GB or 32GB RAM config. Andrej Karpathy bought one for this.
Check current price
  • Minimum: 16GB RAM (will swap, usable for testing)
  • Recommended: 32GB RAM, or a Mac mini M4 at 24GB — which is the top config Apple offers on the base M4 as of August 2026 (smooth daily use)
  • Optimal: 32GB+ unified memory (M4 Pro or Studio) or a 24GB GPU (fast inference)

The Cost Math

Running OpenClaw with Qwen 3.5 on Ollama:

  • Software: $0 (OpenClaw is open source, Ollama is free)
  • API fees: $0 (model runs locally)
  • Hosting: $0 (runs on your own machine)
  • Electricity: ~$1-2/month idling, ~$4-6/month under heavy sustained inference. A Mac mini draws 5-15W idle and 30-50W while a 27B model is actually generating; at the US average of $0.18/kWh as of August 2026, 10W around the clock is about $1.30/month.
  • Total: $1-6/month depending on duty cycle, vs $6-200/month with cloud APIs

Two caveats on that comparison, because it is the one people quote. Electricity is the running cost, not the cost — the hardware is a real up-front number, and it went up in 2026: the Mac mini M4 now starts at $799 (16GB/512GB) rather than the $599 figure still quoted everywhere, since Apple dropped the 256GB SKU in May 2026. The base M4 also no longer offers 32GB or 64GB, so the “32GB RAM” recommendation above means a 24GB mini, an M4 Pro, or a PC. And if you are replacing a $20/month subscription rather than a $200 one, a $799 box takes over three years to pay back before you count your own setup time — run local for privacy and offline capability, not because the arithmetic obviously favors it at the low end.

For full cost details, see our OpenClaw costs guide.

Try this now: If you already have OpenClaw installed, run ollama pull qwen3.5:27b && openclaw config set agents.defaults.models.chat ollama/qwen3.5:27b and try a conversation. If you do not have OpenClaw yet, follow our install guide first.

Related guides:

Need OpenClaw fixed live?

Remote rescue sessions for gateway, auth, tunnel, VPS, and model access problems.

See Rescue Session

Read next

How to Run OpenClaw for Free and Offline with Ollama
Run OpenClaw 100% free and offline using Ollama with local models. No API key, no subscription, no internet required after setup.
OpenClaw + Gemma 4: Google's New Model Setup Guide
Run Google Gemma 4 with OpenClaw via Ollama. Setup commands, tool calling tips, hardware requirements, and comparison to Qwen 3.5.
OpenClaw API Costs Compared: Claude vs GPT-4o vs Local Models (2026)
Compare OpenClaw API costs across Claude, GPT-4o, GPT-4o-mini, Together AI, Groq, and Ollama. Real pricing per model with monthly estimates.
Qwen 3.5 27B on One RTX 3090: Beats 120B Models
Qwen 3.5 27B dense Q4 on a single RTX 3090 one-shots agent coding tasks that 120B MoE models on $70K H200 rigs fail. Benchmarks, setup, and OpenClaw install steps.