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.
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.
| Item | Recommendation | ~Price |
|---|---|---|
| Board | Pi 5 8 GB (or Pi 4 8 GB if Pi 5 is back-ordered) | $80 |
| Power supply | Official 27W USB-C (Pi 5) or 15W (Pi 4) | $15 |
| Storage | 256 GB SATA SSD + USB 3.0 enclosure | $30 |
| Case | Official Pi 5 case w/ active cooler | $10 |
| MicroSD (boot) | 32 GB Samsung Evo Plus | $8 |
| Ethernet | Cat 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 rebootNative
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 onboardSkip 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.
| Model | RAM used | tok/s on Pi 5 | Verdict |
|---|---|---|---|
| Llama 3.2 1B | 1.5 GB | 8–12 | Heartbeat-only quality |
| Llama 3.2 3B | 2.5 GB | 3–6 | Usable for chat |
| Qwen 2.5 1.5B | 1.8 GB | 6–10 | Best small tool-caller |
| Phi 3.5 mini | 2.4 GB | 4–7 | Fine 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.
{
"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.txtwithdtparam=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
Want OpenClaw without the ops?
Provision is the managed OpenClaw cloud — agents, channels, browser, and skills, all running. $99/mo. 48-hour free trial.