← All guides

OpenClaw + Qwen 3.5 + Ollama: The Best Free Setup in 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 Mac mini M4 24GB (smooth daily use)
  • Optimal: 32GB+ unified memory or RTX 4090 (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: ~$3-5/month if always-on (Mac mini draws 5-15W)
  • Total: $3-5/month vs $6-200/month with cloud APIs

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 a Single RTX 3090 Beats 120B Models on $70K H200 Rigs (For Agent Coding)
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.