Blog· OpenClaw·

Best local models for OpenClaw on a Mac mini: open models that fit, with sizes, licences and commands

Which open models to run with OpenClaw on a Mac mini without a paid API: what OpenClaw asks of a model, sizes, licences and the commands to get each one.

A red robotic crab on a silver Mac mini, between translucent violet cubes

OpenClaw needs a model to think with. Most people start with a cloud model and an API key, but the agent can also use an open model that runs on the same Mac as its Gateway. Then there is no per-token bill and no rate limit, and your messages, your files and the results of the agent’s tools stay on the machine.

This guide covers which open models to pick for a Mac mini and how to connect them, following OpenClaw’s own documentation and the model pages. It assumes OpenClaw is already installed: if it isn’t, start with How to run OpenClaw 24/7 on a cloud Mac mini.

How OpenClaw connects to a local model

OpenClaw’s docs describe four routes:

  • Managed llama.cpp. You install OpenClaw’s llama.cpp plugin and choose “Managed local server” in onboarding. OpenClaw reads the Mac’s memory, graphics chip and free disk space, recommends a model, downloads it after you confirm, and starts and stops the server itself. This is the route the docs point to for a recommendation that matches your hardware.
  • Ollama. OpenClaw talks to Ollama’s native API (/api/chat) at http://127.0.0.1:11434. The docs warn against pointing it at Ollama’s OpenAI-compatible /v1 address, because that breaks tool calling.
  • LM Studio. OpenClaw connects to LM Studio’s local server at http://localhost:1234/v1 and lists the models it finds there.
  • Any OpenAI-compatible server. MLX (mlx_lm.server), vLLM, LiteLLM or your own proxy work as a custom provider, as long as they expose /v1/chat/completions.

All four keep the model on the Mac, on an address only the Mac itself can reach.

What OpenClaw asks of a model

An agent is harder on a model than a chat is. On every turn OpenClaw sends its instructions, the definitions of its tools and the conversation so far, and still needs room for the answer. Two things decide whether a model is up to it:

  • Tool calling. The model must be able to call tools. Automatic setup only offers models that support them, and the managed llama.cpp setup goes further: before a model becomes your default, it has to read a temporary file through an OpenClaw tool and return its contents.
  • Context length. Automatic setup skips a model whose effective context window is below 16,384 tokens. In practice you want more. OpenClaw’s managed llama.cpp recipes all run with a 65,536-token context, its Ollama setup uses 32,768 tokens (or the model’s own window if that is smaller), and Ollama’s documentation suggests at least 64,000 tokens for agents and coding tools.

Context takes memory on top of the model file. That is why the size of the Mac decides which model you run.

The models, by Mac

The names, sizes and licences below come from OpenClaw’s llama.cpp recipe list, Ollama’s library and the models’ own pages.

Model Ollama tag Download Licence Mac
Qwen3.5 4B qwen3.5:4b 3.3 to 4.0 GB Apache 2.0 Mac mini M6
Qwen3.5 9B qwen3.5:9b 6.6 to 7.6 GB Apache 2.0 Mac mini M6
Gemma 4 E4B gemma4 6.6 to 9.5 GB Apache 2.0 Mac mini M6
Gemma 4 12B gemma4:12b 7.7 to 8.0 GB Apache 2.0 Mac Studio M5 Ultra
gpt-oss 20B gpt-oss:20b 14 GB Apache 2.0 Mac Studio M5 Ultra
Qwen3.8 27B qwen3.8:27b 18 GB Apache 2.0 Mac Studio M5 Ultra
Muse Glimmer 30B muse-glimmer:30b 18 GB Apache 2.0 Mac Studio M5 Ultra
Gemma 4 31B gemma4:31b 19 to 20 GB Apache 2.0 Mac Studio M5 Ultra
gpt-oss 120B gpt-oss:120b 65 GB Apache 2.0 Mac Studio M5 Ultra

A size given as a range means Ollama offers more than one build of that model. Ollama marks every model in the table as able to call tools, and every one is published under Apache 2.0, which allows commercial use.

On the Mac mini M6 (16 GB of memory shared between the processor and the graphics chip, 256 GB SSD), the pick is Qwen3.5 9B. OpenClaw’s recipe list gives it a minimum of 16 GiB of host memory, which is what the Mac mini has, with the 65,536-token context and a download of about 5.7 GB, a small embedding model included. On Ollama, qwen3.5:9b is 6.6 to 7.6 GB, with a native context of 256K, and it reads images as well as text. Its model card presents tool calling as one of the family’s strengths.

If you keep Xcode, a browser and a build running next to the agent, Qwen3.5 4B is the lighter choice: about 2.7 GB in OpenClaw’s recipe, with a minimum of 8 GiB, or 3.3 to 4.0 GB on Ollama. And if you connect Ollama with nothing suitable installed, the model OpenClaw’s setup suggests is gemma4, Google’s Gemma 4 in its E4B size. On disk, the three together take about 21 GB of the 256 GB at most. OpenClaw’s docs present these memory figures as minimums, not as a promise of speed.

On the Mac Studio M5 Ultra (96 GB of memory, 1 TB SSD), you move up to the models OpenClaw’s setup recommends first. Qwen3.8 27B is its first recommendation when the memory is there: about 16.5 GB in the recipe, 18 GB on Ollama, with a minimum of 32 GiB. Muse Glimmer 30B, Meta’s open model built for always-on local agents and tuned for tool use and long tasks, is about 16.8 GB (18 GB on Ollama) with the same minimum. For agent work OpenClaw’s recipe gives Gemma 4 12B a minimum of 24 GiB, so its place is here, with gemma4:31b above it. OpenAI’s open-weight gpt-oss comes as gpt-oss:20b and gpt-oss:120b, text only, with a 128K context; Ollama’s page says the larger one fits in 80 GB of graphics memory. Each of them sits inside the 96 GB. The Mac Studio is coming soon to SoloRack: on the pricing page you can leave your email to be among the first to get one. Everything below works today on the Mac mini.

Route 1: Ollama

Install Ollama on the Mac as in step 1 of our Gemma 4 guide: download it, drag it into Applications, open it. Then pull the model:

ollama pull qwen3.5:9b

The shortest way to connect it is Ollama’s own launcher:

ollama launch openclaw --model qwen3.5:9b

According to Ollama’s docs, it configures the Ollama provider in OpenClaw, sets the model as the primary one and restarts the Gateway if it is already running.

To do the same from OpenClaw, run openclaw onboard, choose Ollama, then Local only: it asks for the address of Ollama, lists the models you have installed and lets you pick one. To switch model later:

ollama pull qwen3.5:4b
openclaw models list --provider ollama
openclaw models set ollama/qwen3.5:4b

A model reference is the provider’s name plus the Ollama tag, so qwen3.5:9b becomes ollama/qwen3.5:9b. OpenClaw sends the context length with each request, so there is nothing to change in Ollama’s settings. To raise it above 32,768 tokens, the docs’ recipe sets contextTokens and params.num_ctx to the same value in the model’s entry of the configuration, within what the Mac’s memory can hold.

Route 2: OpenClaw’s managed llama.cpp

openclaw plugins install @openclaw/llama-cpp-provider
openclaw onboard

Choose Managed local server. Setup shows the model it recommends for this Mac and the size of the download, and asks you to confirm. Then it runs the tool check described above. If a check fails or you cancel, your previous default model stays in place. The model files live in ~/.openclaw/models/llama.cpp.

On a 16 GB Mac, the recipes in range are the two Qwen3.5 sizes. Setup reserves memory for macOS, the context and the embedding model before it chooses, so it may propose the 4B.

Route 3: LM Studio

LM Studio is a desktop app that runs both GGUF and MLX builds. Its page for Qwen3.5 9B (qwen/qwen3.5-9b) lists the model as trained for tool use, with image input and a minimum of 7 GB of system memory. Download the model in the app and turn on just-in-time model loading, as OpenClaw’s docs ask. Then start LM Studio’s local server, from the app or with the command the docs give, and run onboarding:

lms server start --port 1234
openclaw onboard

Choose LM Studio and pick the model at the “Default model” prompt. When you add another model later:

openclaw models list --provider lmstudio --refresh
openclaw models set lmstudio/qwen/qwen3.5-9b

Check that the agent really uses it

For the Ollama route, three commands from OpenClaw’s docs:

curl http://127.0.0.1:11434/api/tags
openclaw models status
openclaw infer model run --model ollama/qwen3.5:9b --prompt "Reply with exactly: ok"

The first shows that Ollama answers on the Mac, the second which model OpenClaw has selected, and the third sends one prompt straight to the model. That last test skips the agent’s tools, so finish with a real task from your chat app: ask the agent to list the files in a folder. ollama ps shows the model loaded in memory, the context it runs with and whether it sits on the graphics chip.

Keep it private

Ollama, LM Studio and the Gateway all listen on the Mac itself. Keep it that way: to open the dashboard from your own computer, forward the port through SSH as the main guide shows, with the SSH command from My account.

There is one more reason to keep the agent’s reach narrow. OpenClaw’s docs note that local models skip the filters a hosted provider applies before a request reaches the model. Our guide to securing OpenClaw on a Mac mini goes through the settings that matter.

Before your rental ends

At the end of a rental, your macOS account and all its files are deleted with no copy kept, and our reminders tell you in time. The models are free to download again. What you need to save is your own: your OpenClaw configuration, your scripts and whatever the agent wrote for you.

Give your agent a Mac of its own

A local model wants a machine that stays on, with memory nobody else touches. Rent a dedicated Mac mini M6 from SoloRack, from $3.73 a day on the monthly plan, $112 a month, and run OpenClaw on Qwen3.5 with no API bill. All plans are on the pricing page, and that is also where you leave your email to get the Mac Studio first, for the bigger models.

Try SoloRack from ⁦$3.73⁩ a day

A dedicated Mac mini M6 on the monthly plan: ⁦$112⁩ a month. Prices in US dollars, VAT included where it applies.

Before you pay

The email you enter on the payment page becomes your account: you sign in to My account with that same address.

Payment is handled by Stripe through Link, its payment service: the payment page shows Link's name, and your bank statement will show LINK.COM* SOLORACK.

They show us how the site is used, including recordings of your visit; what you type stays hidden (PostHog, Google Analytics). These tools use cookies and start only if you say yes. You can change your mind at any time from the bottom of the page. If you say no to statistics, we only count your visit, without cookies. Cookie policy