Prerequisites
Development Machine
- Rust 1.85+ with edition 2024 support
crosstool for cross-compilation (or manual ARM toolchain)- SSH access to target Raspberry Pi
Raspberry Pi
- Model: Raspberry Pi 3, 4, 5, or Zero
- OS: Raspberry Pi OS (64-bit recommended) or any Linux with systemd
- RAM: 512 MB+ available
- Storage: 200 MB+ free space
Installation Steps
Cross-compile the binary
On your development machine, build the ARM binary:This creates binaries in the
release/ directory:oneclaw-elderly-1.6.0-aarch64-unknown-linux-gnu(Pi 4/5 64-bit)oneclaw-elderly-1.6.0-armv7-unknown-linux-gnueabihf(Pi 3/Zero 32-bit)
Copy files to Raspberry Pi
Use SCP to transfer the binary and deployment scripts:Tip: Replace
raspberrypi with your Pi’s hostname or IP address.Run the installer
The installer creates directories, user account, and systemd service:The installer:
- Creates
/opt/oneclaw/directory structure - Creates
oneclawsystem user - Installs binary to
/opt/oneclaw/oneclaw-elderly - Creates default configuration
- Installs systemd service file
Configure OneClaw
Edit the configuration file:Key settings to configure:For cloud providers, set API keys as environment variables or in the config:See Configuration Guide for all options.
Service Management
Common systemd commands:Troubleshooting
Binary Not Found
If the installer reports “Binary not found”:- Verify the binary was copied:
ls -lh ~/oneclaw-elderly-* - Check architecture matches:
uname -m(should beaarch64orarmv7l) - Rename if needed:
mv oneclaw-elderly-1.6.0-aarch64-unknown-linux-gnu oneclaw-elderly
Permission Denied
If you see permission errors:Service Fails to Start
Check logs for errors:- Config syntax error: Check
/opt/oneclaw/config/default.tomlsyntax - Missing API key: Set provider API key in config or environment
- Port conflict: Ensure MQTT/TCP ports are available
Out of Memory
The service limits RAM to 128 MB. If you see OOM errors:- Use a smaller LLM model (e.g.,
llama3.2:1binstead of larger models) - Reduce memory limit in
/etc/systemd/system/oneclaw.service: - Reload systemd:
sudo systemctl daemon-reload && sudo systemctl restart oneclaw
Performance Tips
Use Local LLMs
For best latency on Pi, run Ollama locally:Optimize Disk I/O
Use a high-quality SD card or USB SSD for better database performance.Monitor Resources
Watch CPU and memory usage:Updating OneClaw
To update to a new version:Uninstalling
To completely remove OneClaw:- Systemd service
/opt/oneclaw/directory (including all data)oneclawsystem user
/opt/oneclaw/data/ if needed.
Next Steps
systemd Configuration
Customize service settings and resource limits
MQTT Integration
Connect sensors via MQTT broker
Telegram Alerts
Receive notifications on your phone