Overview
PicoClaw’s ultra-lightweight design makes it perfect for Raspberry Pi devices. With less than 10MB RAM usage and fast startup times, it runs smoothly even on low-powered boards like the Pi Zero 2 W.Supported Devices
- Raspberry Pi Zero 2 W (tested)
- Raspberry Pi 3/4/5
- Any Raspberry Pi with ARMv7 (32-bit) or ARM64 (64-bit) support
Performance Expectations
| Metric | Performance |
|---|---|
| RAM Usage | < 10MB |
| Boot Time | ~1 second (even on 0.6GHz single core) |
| Architecture | ARM (32-bit), ARM64 (64-bit) |
Installation Methods
Method 1: Download Precompiled Binary
- Download the appropriate binary for your Raspberry Pi OS:
Replace
v0.1.1 with the latest version from the Releases page.- Initialize PicoClaw:
-
Configure your API keys in
~/.picoclaw/config.json - Test the installation:
Method 2: Build from Source
Building from source gives you the latest features and allows customization.Prerequisites
Build Instructions
Binary Locations
After building:- 32-bit binary:
build/picoclaw-linux-arm - 64-bit binary:
build/picoclaw-linux-arm64
Install the Binary
Determining Your OS Architecture
Use the binary that matches your Raspberry Pi OS:| Output | OS Type | Binary to Use |
|---|---|---|
armv7l | 32-bit | picoclaw-linux-arm |
aarch64 | 64-bit | picoclaw-linux-arm64 |
Configuration
Basic Configuration
After installation, configure PicoClaw:~/.picoclaw/config.json to set your API keys:
Running as a Service
For always-on operation, see the systemd setup guide.Raspberry Pi Zero 2 W Specific Notes
The Pi Zero 2 W has:- 512MB RAM (PicoClaw uses <10MB)
- 1GHz quad-core ARM Cortex-A53
- WiFi and Bluetooth
- Use 32-bit OS - Better memory efficiency on 512MB RAM
- Enable swap - Recommended for stability:
- Optimize config - Use lower
max_tokensto reduce memory:
Troubleshooting
Binary Won’t Run
Out of Memory Errors
- Check current memory usage:
free -h - Reduce
max_tokensin config - Enable swap (see Pi Zero notes above)
- Close other applications
Slow Performance
- Ensure you’re using the correct binary for your architecture
- Check CPU temperature:
vcgencmd measure_temp - Ensure adequate cooling
Next Steps
- Run as a System Service - Auto-start on boot
- Configure Chat Apps - Connect Telegram, Discord, etc.
- Environment Variables - Advanced configuration