Skip to content

How to run Gemma locally with OpenClaw (step-by-step guide)

Cover image for a step-by-step guide on running Gemma locally with OpenClaw Guides

Step 1 — install Ollama

Download and install Ollama: download Ollama. Then verify it works:

ollama --version

If that prints a version — you're good

Step 2 — pull Gemma model

You have two options here:

Option A (recommended): let OpenClaw handle it automatically
→ Skip this step and go to step 3

Option B (manual): install model yourself

ollama pull gemma:26b

Or if you want a lighter/faster version:

ollama pull gemma:7b

Then test it:

ollama run gemma:26b

If it responds – model is working locally

Step 3 – run OpenClaw with Ollama backend

You don’t need to manually install OpenClaw – it can run directly. Run:

npx openclaw@latest --local --agent main -m gemma:26b

What this does:

  • Installs OpenClaw (if not installed)
  • Connects it to Ollama
  • Launches the default agent
  • Uses your local Gemma model as brain

How it works (simple explanation)

  • Ollama runs the model locally
  • Gemma – the actual LLM
  • OpenClaw – agent layer (tools, workflows, automation)

Together: you get a local AI agent system


System requirements (realistic, not marketing)

For Gemma 26B:

  • 32–64 GB RAM recommended
  • Apple Silicon (M1/M2/M3) or strong GPU

For Gemma 7B:

  • Works on most laptops (16 GB RAM is enough)

If it crashes – switch to 7B


Common issues (and fixes)

1. “model not found”

ollama list

→ check exact model name (case matters)

2. OpenClaw doesn’t connect to Ollama

Make sure Ollama is running:

ollama serve

3. Very slow responses

You're running too big model. Switch:

-m gemma:7b

Quick test

Once OpenClaw starts, try:

hello, what model are you using?

If it answers – everything works. Congrats!


What you can do with this

  • Run autonomous agents locally
  • Build workflows without API costs
  • Test ideas privately
  • Prototype AI products fast
Portrait of Nick Trenkler, author at thehype.news

Nick Trenkler

Contributing Journalist & Content Creator at thehype. Nick holds a Bachelor’s degree in Journalism, Master’s in Marketing. He has been leading marketing for AI startups since 2024, with experience in media, digital strategy, and tech-focused content.

More articles by Nick Trenkler →
On air · radio.thehype.news ↗ AI news radio — 24/7