🦞OpenClaw Guide
🍓 Raspberry Pi

OpenClaw on Raspberry Pi

A always-on AI agent server for $60–80 in hardware and ~$0.50/month in electricity. Pi 4 or Pi 5, running 24/7 silently.

Which Pi to get

Raspberry Pi 5 (4GB)

Best Pi for OpenClaw. 2–3x faster than Pi 4. Handles local models lightly. Recommended.

~$60
★★★★★
Raspberry Pi 5 (8GB)

Best if you want to run small local models (Phi-2, TinyLlama) alongside OpenClaw.

~$80
★★★★★
Raspberry Pi 4 (4GB)

Solid choice. Slightly slower than Pi 5 but perfectly capable for API-based OpenClaw.

~$45 used
★★★★☆
Raspberry Pi 4 (2GB)

Works for API-based OpenClaw (Claude/GPT). Tight if you run anything else alongside it.

~$35 used
★★★☆☆
Raspberry Pi Zero 2 W

Possible but not recommended. Too slow for comfortable use. Use a Pi 4 minimum.

~$15
★★☆☆☆

Setup guide

1

Flash Raspberry Pi OS (64-bit) or Ubuntu 22.04 Server to your SD card using Raspberry Pi Imager.

2
Install Node.js 20+
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
3
Install OpenClaw
sudo npm install -g openclaw
4
Initialize — add your API key and Telegram bot token
openclaw init
5
Start the gateway
openclaw gateway start
6
Auto-restart on reboot (PM2)
sudo npm install -g pm2
pm2 start 'openclaw gateway start' --name openclaw
pm2 startup
pm2 save

Power consumption

At $0.12/kWh running 24/7

ScenarioPower drawMonthly cost
Pi 5 idle~3W~$0.22
Pi 5 OpenClaw active~7W~$0.50
Pi 4 idle~2.5W~$0.18
Pi 4 OpenClaw active~5W~$0.36
Mac Mini M4 (comparison)~10W~$0.72
Always-on PC (comparison)~80W~$5.76

Raspberry Pi FAQ

Can Raspberry Pi run OpenClaw?

Yes. OpenClaw is lightweight Node.js software — it runs well on Raspberry Pi 4 or Pi 5. The Pi isn't doing AI computation (that's handled by Claude/GPT APIs), so even a Pi 4 with 4GB RAM handles it comfortably. Pi 5 is recommended for the best experience.

How much power does OpenClaw use on a Raspberry Pi?

Remarkably little. A Raspberry Pi 5 running OpenClaw uses roughly 5–7W under load. Running 24/7, that's about $0.40–0.50/month in electricity (at $0.12/kWh). Far less than a Mac Mini, and nothing compared to a full desktop PC.

Pi 4 vs Pi 5 for OpenClaw — which should I get?

Pi 5 if you're buying new — it's about $20 more and significantly faster. Pi 4 (4GB) if you already have one or find it used — it works fine for API-based OpenClaw. Neither will struggle with the OpenClaw workload.

Can Raspberry Pi run local AI models with OpenClaw?

Partially. Pi 5 (8GB) can run very small models like Phi-2 or TinyLlama via Ollama, but slowly. For serious local model use alongside OpenClaw, a Mac Mini M4 or a PC with a discrete GPU is the better choice. Pi is ideal when using Claude/GPT APIs.

How do I keep OpenClaw running on Pi after reboot?

Use PM2: npm install -g pm2, then pm2 start 'openclaw gateway start' --name openclaw, then pm2 startup && pm2 save. This creates a startup script that relaunches OpenClaw automatically whenever the Pi reboots or loses power.

Is Raspberry Pi or VPS better for running OpenClaw?

Depends on your situation. Pi wins on: zero monthly cost (after hardware), local network access, privacy. VPS wins on: reliability (no power cuts), accessibility from anywhere, no hardware setup. If you have reliable home power and internet, Pi is excellent. For maximum uptime, a VPS is better.