OpenClaw is an LLM-based AI agent tool designed for Raspberry Pi, supporting command execution, programming, and third-party integrations. This guide focuses on setting up OpenClaw on **Raspberry Pi 4 or 5**, providing a powerful 24/7 AI automation server.
Ensure your system is up to date and correctly configured before starting the installation.
sudo apt-get update && sudo apt-get upgrade -y
Use raspi-config to configure your timezone, locale, and network settings if you haven't
already.
The OpenClaw installation script automatically detects your OS and installs the global npm package and systemd services.
curl -fsSL https://openclaw.ai/install.sh | bash
Alternative command if the above fails:
curl -fsSL https://openclaw.bot/install.sh | bash
After installation, the interactive Terminal UI (TUI) will launch to guide you through the setup.
gemini-1.5-flash)./newbot to get your token, and paste it into the TUI.
/start in
Telegram to complete the link.Once running, you can manage OpenClaw and customize its behavior.
openclaw configure to restart the TUI setup.~/.openclaw/workspace/.
You can edit Markdown files here to define custom memories and personality.Q: CMake version incompatibility?
A: Upgrade to 64-bit OS. 32-bit systems often have outdated CMake versions (3.18) while 3.19+ is
required.
Q: Performance is sluggish?
A: Especially on Pi 4 2GB, the UI may lag. Access via SSH tunnel:
ssh -L 8080:localhost:8080 pi@your-pi-ip or upgrade to Pi 5.
Q: Telegram bot doesn't respond?
A: Verify the token from @BotFather. Ensure your Pi has internet access. Try sending /start
again.
Q: Missing context or laggy responses?
A: Use local embeddings or a faster model to reduce latency. Avoid using too many channels
simultaneously.