Setup guide10 minUpdated 2026-05-06

Build a $50 always-on agent on a Raspberry Pi.

A Pi 4 with 8 GB RAM is the cheapest realistic OpenClaw host that doesn't suck. It pulls 5 W, costs about $5/year to run, and can keep one chat-focused agent live 24/7 — provided you offload the browser and pick the right model.

Quick answers

  • Can OpenClaw run on a Raspberry Pi?

    Yes. Pi 4 or Pi 5 with 4 GB+ RAM works for chat-only personal use with cloud LLMs. Browser automation needs 8 GB. Local model inference is limited to small (1B–3B) models. Total cost ~$80–130 hardware + $5/year electricity.
  • Do I need a Mac mini for OpenClaw?

    No. OpenClaw runs on Linux, macOS, Windows (via WSL2), Docker, Raspberry Pi, and any VPS. Mac mini M4 16 GB is excellent because of unified memory, but it's not required. Cheapest realistic host is a $5/month Hetzner VPS.
  • Is the Raspberry Pi the cheapest way to run OpenClaw?

    Cheapest 24/7 home option, yes. Hardware is $80–130 once + $5/year electricity. Compared to a $20/mo VPS, the Pi pays for itself in 4–6 months. Cheaper than the Pi: Oracle Free Tier (genuinely $0).
  • Can I run a local model on a Raspberry Pi?

    Tiny models only. Pi 5 8 GB runs Llama 3.2 1B/3B at 3–10 tokens/sec — usable for heartbeats and basic chat, not primary use. For real local-model performance, Mac mini M4 or 16 GB Pi 5 is the floor.
  • How much electricity does an OpenClaw Pi use?

    Pi 4 averages 5 W (~$5/year at US rates). Pi 5 averages 7 W (~$7/year). The most cost-efficient always-on AI agent host you can buy.

Honest take

Is the Pi the right fit?

A Raspberry Pi is the cheapest realistic OpenClaw host that isn't a free-tier VPS. It's also the most fun one to build — there's something delightful about a blinking little box on your shelf running a fully-functional AI agent.

$80–$130

Hardware total

5–7 W

Power draw

$5/yr

Electricity

Always-on

Use case

The Pi is a great fit for: a personal assistant on Telegram or WhatsApp, a daily digest agent, a cron-driven monitoring agent. It's a poor fit for: heavy browser automation, multi-agent setups, anything that runs a local model larger than 3B.

What to buy

Hardware shopping list

Total damage: $90–$130 depending on extras you want. None of these links are affiliated; pick whichever vendor has stock.

ItemRecommendation~Price
BoardPi 5 8 GB (or Pi 4 8 GB if Pi 5 is back-ordered)$80
Power supplyOfficial 27W USB-C (Pi 5) or 15W (Pi 4)$15
Storage256 GB SATA SSD + USB 3.0 enclosure$30
CaseOfficial Pi 5 case w/ active cooler$10
MicroSD (boot)32 GB Samsung Evo Plus$8
EthernetCat 6 cable (1 m+ to your router)$5

Why Ethernet, not Wi-Fi

The agent will run for years. Ethernet is one fewer thing that can flake. Wi-Fi works fine but adds an unreliability vector you don't need on always-on infrastructure.

Setup

Flash + first boot

The official Raspberry Pi Imager is the cleanest path. Install it on your laptop, plug in the SD card, and configure everything before the Pi boots for the first time.

  • Choose 'Raspberry Pi OS Lite (64-bit)' — no desktop needed
  • Click the gear icon: enable SSH (key-based), set hostname 'openclaw', set username 'openclaw', paste your SSH public key
  • Set Wi-Fi if you must, but prefer Ethernet
  • Flash, insert SD card into Pi, plug in Ethernet, plug in power
  • Find the Pi on your network: `ssh openclaw.local` should work via mDNS

After first boot, switch to the SSD as the boot drive — SD cards aren't built for OpenClaw's write patterns:

# Once booted, copy the SD to the SSD and switch
sudo rpi-clone sda
# Then in raspi-config: Advanced → Boot Order → USB first
sudo raspi-config
sudo reboot

Native

Install OpenClaw on ARM

OpenClaw's official packages include ARM64 binaries. No special flags needed.

# Update first
sudo apt update && sudo apt upgrade -y

# Install Node 22+
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs

# Verify ARM detection
node --version  # v22.x.x
uname -m        # aarch64

# Install OpenClaw
curl -fsSL https://openclaw.ai/install-cli.sh | bash
openclaw onboard

Skip Docker on the Pi

Docker works but adds 200–400 MB of RAM overhead you can't afford on a Pi. Native install is the right call here. Save Docker for setups with 16+ GB RAM.

If using Ollama

Models that fit 4 GB

Most Pi setups stick with cloud LLMs and use the Pi just as the always-on host. If you do want local inference, your options narrow to the smallest models.

ModelRAM usedtok/s on Pi 5Verdict
Llama 3.2 1B1.5 GB8–12Heartbeat-only quality
Llama 3.2 3B2.5 GB3–6Usable for chat
Qwen 2.5 1.5B1.8 GB6–10Best small tool-caller
Phi 3.5 mini2.4 GB4–7Fine for simple tasks

Reality check: even the best Pi-runnable model is materially worse than Claude Haiku on the API. The math usually favors "use Haiku via API at $0.10 per 1M tokens" over "run a 3B locally on the Pi." Local-on-Pi only wins if you're optimizing for offline operation or strict data locality.

The hard part

Browser: offload it

Headless Chrome on a Pi is technically supported and practically painful. Page rendering is 5–20x slower than on a real CPU, and a single Chrome process eats 800 MB+ of RAM — which on a Pi 4 4 GB leaves nothing for the gateway and the agent.

The right answer if you need browser automation: run the browser elsewhere.

~/.openclaw/openclaw.json (browser sidecar)json
{
  "browser": {
    "mode": "remote",
    "cdpUrl": "ws://browser-vps.tail-net.ts.net:9222"
  }
}

Spin up a 2 GB VPS just for headless Chrome (browserless/chrome container), put it on Tailscale, point your Pi-hosted agent at it. Best of both worlds: cheap always-on home server + real browser performance for the rare browsing.

Day-2 ops

Keep it alive

Pis are stable, but home environments aren't. Three uptime wins:

  • Run as a systemd service. openclaw service install — same as on a VPS.
  • Add a UPS. A $40 mini UPS lets the Pi survive 5–15 minutes of power outage. Critical if your agent handles anything time-sensitive.
  • Watchdog timer. Enable the hardware watchdog in /boot/firmware/config.txt with dtparam=watchdog=on — the Pi reboots itself if it locks up.
  • Healthcheck pings. Same Healthchecks.io pattern as a VPS: ping every 5 min, get an email if it goes silent.

The Pi setup we run

Pi 5 8 GB, SSD via USB, Tailscale for remote access, OpenClaw with Sonnet routing for chat and Haiku for heartbeats. Total cost: $130 once + $12/mo in API + $0.50/mo in electricity. Has been up 11 months at this point.

FAQ

Will OpenClaw run on a Pi 4 with 4 GB?
Yes for chat-only use with cloud LLMs. Skill loading is tight but works. Browser automation isn't realistic at 4 GB. Pi 4 8 GB or Pi 5 8 GB are the comfortable starting points.
Can I run a local model on a Pi?
Tiny models (Llama 3.2 1B/3B) run on a Pi 5 8 GB at usable speeds (3–8 tok/sec). They're suitable for heartbeats and chat fallback, not for primary use. For real local-model performance, a Mac mini M4 or a 16 GB Pi 5 is the floor.
How much electricity does it use?
Pi 4: ~5 W average, ~$5/year at US rates. Pi 5: ~7 W, ~$7/year. Compared to a $20/mo VPS that's $240/year, the Pi pays for itself in 4–6 months even at $80 hardware cost.
Do I need a case and cooling?
Pi 4 can run without active cooling for low-load OpenClaw use. Pi 5 needs the official active cooler — it'll thermal-throttle without one. Always use a case; bare boards collect dust into the SD card slot.
SD card or SSD?
SSD via USB 3.0 enclosure, always. SD cards die from OpenClaw's write pattern (memory.sqlite is hot) within 6–12 months. A 256 GB SATA SSD + USB enclosure is $30 and lasts forever.
Can a Pi handle browser automation?
Marginally. Headless Chrome runs but each page snapshot takes 5–10 seconds vs 0.5–1 second on a real server. Acceptable for a personal agent that browses occasionally; painful for any agent that browses heavily. Offload the browser to a sidecar VPS if browsing is a core workflow.

Want OpenClaw without the ops?

Provision is the managed OpenClaw cloud — agents, channels, browser, and skills, all running. $99/mo. 48-hour free trial.