Cloud hosting is convenient. But every month you are paying for servers that could be sitting in your home running 24/7 for a fraction of the cost. If you have an old computer or a Raspberry Pi collecting dust, you have the hardware you need to run OpenClaw at home.
Why Run OpenClaw at Home?
Several scenarios make home hosting attractive:
- Cost - A Pi uses about $5-10/month in electricity versus $20-100+/month for cloud VPS
- Privacy - Your data stays on your hardware, not someone elses server
- Permanence - No risk of a cloud provider changing pricing or discontinuing a product
- Learning - Running your own server is educational and satisfying
The tradeoff is that you are responsible for uptime, backups, and security updates. For personal projects or homelab enthusiasts, this is usually a feature, not a bug.
Hardware Options
Raspberry Pi 4 or 5
The classic choice for homelab projects. Get the 4GB or 8GB model for headroom. The 2GB model works but you will feel the memory pressure if you run multiple services or larger skills.
What you need:
- Raspberry Pi 4 (4GB or 8GB) - around $55-80
- 128GB SD card (Class A2 rated) - $15-20
- Official Pi power supply - $12
- Small case with heatsinks - $10-20
Total: roughly $100 for a capable headless server.
Old Laptop or Desktop
Do not throw away that old laptop. Even a 2015-era machine with 4GB RAM and a dual-core CPU works well for OpenClaw. The advantage is built-in battery backup (UPS) and usually more RAM and CPU than a Pi.
Mini-ITX Build
If you want serious horsepower, a small Mini-ITX build with a low-power CPU (AMD Ryzen 5600G or Intel 12100) gives you desktop performance in a compact form factor. Budget $300-500 for a capable system.
Setting Up Raspberry Pi
Start with a fresh Raspberry Pi OS Lite install (64-bit). You do not need a desktop environment since we are running a headless server.
# Flash Raspberry Pi OS Lite to SD card using Raspberry Pi Imager
# Configure hostname, SSH, and WiFi before flashing
# After first boot, update the system
sudo apt update && sudo apt upgrade -y
# Install Docker
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker pi
# Enable Docker on boot
sudo systemctl enable docker
# Verify Docker works
docker run hello-worldInstalling OpenClaw
With Docker installed, setting up OpenClaw is straightforward:
# Create directories for OpenClaw
mkdir -p ~/openclaw/{config,data,skills}
# Create docker-compose.yml
cat > ~/openclaw/docker-compose.yml << 'EOF'
services:
openclaw:
image: ghcr.io/openclaw/openclaw:latest
container_name: openclaw
restart: unless-stopped
ports:
- "18789:18789"
volumes:
- ./config:/home/node/.openclaw
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
- NODE_ENV=production
EOF
# Start OpenClaw
cd ~/openclaw
docker compose up -d
# Check logs
docker logs -f openclawAccessing OpenClaw Remotely
Running at home means your OpenClaw is behind your router NAT. To access it from outside, you need either a VPN or a tunnel. Tailscale is the recommended approach:
# Install Tailscale on your Pi
curl -fsSL https://tailscale.com/install.sh | sh
# Connect and authenticate
sudo tailscale up
# Note the Tailscale IP (100.x.x.x) - use this to connect from anywhere
tailscale ip -4Now you can access your OpenClaw gateway at `http://100.x.x.x:18789` from any device with Tailscale installed, anywhere in the world.
Power Considerations
One advantage of a Pi is power efficiency. A properly configured Pi 4 draws:
- Idle: 3-5 watts
- Normal load: 5-8 watts
- Heavy load: 10-15 watts
At 10 cents per kWh, running 24/7 costs about $7/month. A desktop might cost $30-80/month for the same workload.
UPS Protection
For a basement server, consider a small UPS. The Raspberry Pi UPS Pico from Pi Supply ($35) provides battery backup and graceful shutdown. This prevents SD card corruption from unexpected power loss.
FAQ
What hardware do I need to run OpenClaw at home?
A Raspberry Pi 4 with 4GB RAM is the minimum recommended setup. For better performance, consider a Raspberry Pi 5, an old laptop you have lying around, or a small mini-ITX build. OpenClaw itself is lightweight, but running heavy workloads benefits from more RAM.
Is a Raspberry Pi powerful enough for OpenClaw?
Yes, for most personal use cases. A Raspberry Pi 4 can handle OpenClaw gateway, several skills, and moderate automation workloads. The CPU is the bottleneck for LLM inference, but if you are using remote model providers (OpenAI, Anthropic, etc.), the Pi just manages API calls, not the heavy lifting.
How much power does a Raspberry Pi use?
A Raspberry Pi 4 typically draws 5-8 watts at idle and up to 15 watts under load. Compared to a desktop computer that uses 100-300 watts, a Pi is extremely efficient. Running 24/7 costs roughly $5-10 per month in electricity depending on your rates.
How do I access OpenClaw from outside my home network?
You have several options: Tailscale (recommended - easy VPN setup), port forwarding on your router (simpler but less secure), or a tunneling service like ngrok (temporary URLs, good for testing). Tailscale gives you a secure VPN-like connection from anywhere.
Should I run OpenClaw in Docker on a Raspberry Pi?
Docker is recommended for several reasons: easier updates without breaking dependencies, cleaner separation between your host system and OpenClaw, and simpler backup and restore. On a Pi, use the official Docker images which support arm64 architecture.
Backup Strategy
Your OpenClaw config and data are in the `config` directory you mounted. Back this up regularly:
# Add to crontab for daily backups
0 3 * * * tar -czf /backup/openclaw-config-$(date +%Y%m%d).tar.gz ~/openclaw/config
# Or use rclone to sync to cloud storage
rclone sync ~/openclaw/config remote:bucket/openclaw-backup/}Network Storage
As your OpenClaw usage grows, storing data on the SD card becomes limiting. Mount a NAS or external drive for data:
# Mount NAS share at boot
sudo mount -t cifs //192.168.1.100/nas /mnt/nas -o username=pi,uid=1000,gid=1000
# Add to /etc/fstab for persistent mounting
//192.168.1.100/nas /mnt/nas cifs username=pi,password=YOURPASSWORD,uid=1000,gid=1000 0 0Need help from people who already use this stuff?
Running OpenClaw on a Pi or home server?
Show off your homelab setup in the community and help others get started.