Hosting & Deployment Self-Hosted

OpenClaw on Raspberry Pi 5: Faster Home Agent Deployment

Deploy OpenClaw on Raspberry Pi 5 — 2-3x faster than Pi 4, with NVMe SSD support, improved thermal design, and enough headroom for more demanding agent workflows.

AL
A. Larsen
Embedded Systems Engineer
2025-03-05 15 min 6.4k views
Updated Mar 2025
Key Takeaways
Pi 5 is 2-3x faster than Pi 4 for OpenClaw workloads — noticeably faster cold starts and skill execution.
PCIe NVMe via M.2 HAT+ gives 5-10x faster storage than SD card — strongly recommended for 24/7 use.
4GB is comfortable; 8GB for Playwright automation or 3+ concurrent skill workloads.
Local model inference (Ollama) reaches 3-8 tokens/sec on Pi 5 — usable for simple tasks.
Same OS setup as Pi 4: Raspberry Pi OS Lite 64-bit (Bookworm) is required.

The Raspberry Pi 5 changed the home server equation. With 2-3x the CPU performance of the Pi 4 and native NVMe support, it's a legitimate always-on agent host for workloads that pushed the Pi 4 to its limits. Here's what changes in the setup and what stays the same.

Pi 5 vs Pi 4 for OpenClaw

If you're already running OpenClaw on a Pi 4 and it's handling your workload fine, don't upgrade. The Pi 5 matters when you're hitting CPU limits — typically when running Playwright browser automation, multiple concurrent skills, or channels that trigger frequently.

  • CPU: Cortex-A76 vs Cortex-A55 — roughly 2-3x performance for compute-heavy tasks
  • Storage: Native PCIe NVMe via M.2 HAT+ vs USB 3.0 SSD on Pi 4 — 5-10x faster random I/O
  • RAM bandwidth: LPDDR4X on Pi 5 — faster than Pi 4's LPDDR4, helps with multi-skill concurrent execution
  • Power: 5-12W vs 3-7W — requires the official 27W USB-C power supply
💡
Get the M.2 HAT+ for NVMe from the start
The official M.2 HAT+ costs $12 and the performance improvement over SD card is transformative — faster boot, faster log writes, dramatically longer storage lifespan. Buy it with the Pi 5 rather than retrofitting later. Any 2230 or 2242 NVMe SSD works.

Setup & Installation

The installation process is identical to Pi 4. Flash Raspberry Pi OS Lite 64-bit (Bookworm) using Raspberry Pi Imager. Enable SSH in advanced settings. Boot and connect via SSH.

# Same install steps as Pi 4:
sudo apt update && sudo apt full-upgrade -y
sudo apt install python3.11 python3.11-venv python3-pip -y
sudo useradd -m -s /bin/bash openclaw
sudo su - openclaw
python3.11 -m venv /home/openclaw/venv
source /home/openclaw/venv/bin/activate
pip install openclaw
openclaw init

The Pi 5 requires the updated eeprom for NVMe boot. Run sudo rpi-eeprom-update -a and reboot before attaching the M.2 HAT+.

Use the official 27W USB-C power supply
The Pi 5 requires a USB-C PD power supply rated at 5V/5A (27W). Standard USB-C chargers (including those from Pi 4 accessories) underpower the Pi 5 under sustained OpenClaw load, causing brown-out reboots. The official supply is non-negotiable for 24/7 operation.

NVMe SSD Configuration

# After attaching M.2 HAT+ and NVMe SSD:
# In raspi-config, enable PCIe:
sudo raspi-config
# Advanced Options > PCIe Speed > PCIe Gen 2

# Check SSD is detected
lsblk  # should show nvme0n1

# For boot from NVMe, use Raspberry Pi Imager to flash OS directly to NVMe
# Or copy SD card to NVMe:
sudo dd if=/dev/mmcblk0 of=/dev/nvme0n1 bs=4M status=progress

# Update boot order in eeprom
sudo rpi-eeprom-config --edit
# Set BOOT_ORDER=0xf416  (NVMe first)

Workflow Optimization

With the Pi 5's additional headroom, you can enable workloads that were impractical on Pi 4:

# openclaw.yaml — Pi 5 optimized settings
runtime:
  max_concurrent_skills: 4  # up from 2 on Pi 4
  skill_timeout: 45
  log_level: info  # can afford more verbose logging with NVMe

model:
  provider: anthropic
  model: claude-sonnet-4-6  # can use faster models vs haiku-only on Pi 4

skills:
  playwright:
    enabled: true  # usable on Pi 5; too slow on Pi 4

Common Mistakes

Using the Pi 4 power supply with Pi 5 is the most common setup mistake. The Pi 4 uses 5V/3A; the Pi 5 needs 5V/5A. Under OpenClaw load, the Pi 5 draws more than the Pi 4 supply can provide.

  • Skipping the eeprom update — the Pi 5 ships with older eeprom that doesn't fully support NVMe boot. Always run rpi-eeprom-update before configuring NVMe boot.
  • Not enabling PCIe Gen 2 — the M.2 HAT+ defaults to Gen 1 speed in older eeprom versions. Enable Gen 2 in raspi-config for full NVMe performance.
  • Running too many concurrent local models — even on Pi 5, running two simultaneous Ollama instances causes memory pressure. Stick to one local model instance if you go the local inference route.
  • Same config as Pi 4 — don't copy Pi 4 configs that limit concurrent skills to 2. The Pi 5 can handle 4 comfortably. Increase the limits to actually benefit from the hardware.

Frequently Asked Questions

Is the Pi 5 worth upgrading from Pi 4 for OpenClaw?
For most users, Pi 4 4GB is sufficient. Upgrade for 3+ simultaneous channels, Playwright automation, or faster cold starts.

Does the Pi 5 support NVMe storage?
Yes. Via the official M.2 HAT+ and PCIe 2.0 x1 interface — dramatically faster than USB SSD or SD card.

How much RAM for Pi 5?
4GB for standard use; 8GB for Playwright, local models, or multiple concurrent skill workloads.

Can I run Ollama local models on Pi 5?
Yes — expect 3-8 tokens/second with small models. Usable for simple tasks, still slower than hosted APIs.

What OS should I use?
Raspberry Pi OS Lite 64-bit (Bookworm/Debian 12). 64-bit is mandatory; Lite saves RAM by skipping the desktop.

Does the Pi 5 run cooler than Pi 4?
Similar temperatures under sustained load with appropriate cooling. The official active cooler is recommended for 24/7 OpenClaw workloads.

AL
A. Larsen
Embedded Systems Engineer · aiagentsguides.com

A. Larsen tests OpenClaw on ARM hardware from Pi 4 to Pi 5 and documents the performance differences at aiagentsguides.com.

Get the OpenClaw Weekly

New guides, tips, and updates every week. Free forever.