Installation
This guide covers installing OneClaw on development machines and deploying to edge devices like Raspberry Pi and other ARM-based hardware.Prerequisites
Development machine
- Rust toolchain: Version 1.85 or later with edition 2024 support
- Build tools: Standard C/C++ compiler toolchain
- Operating system: Linux, macOS, or Windows (Linux/macOS recommended for edge deployment)
Target edge device
- Architecture: ARM64 (aarch64), x86_64, or RISC-V
- RAM: Minimum 512MB (OneClaw uses less than 5MB)
- Storage: Minimum 50MB for binary and data
- Operating system: Linux-based (Raspbian, Ubuntu, Alpine, etc.)
OneClaw is optimized for Raspberry Pi 4+ but runs on any ARM64 or x86_64 Linux system.
Install Rust
If you don’t have Rust installed:OneClaw requires Rust 1.85+ for edition 2024 features. Update with
rustup update if needed.Build from source
Build release binary
target/release/oneclaw-core (~3.4MB).First build downloads and compiles all dependencies. Subsequent builds are much faster.
Cross-compile for edge devices
To deploy OneClaw on ARM devices like Raspberry Pi, cross-compile on your development machine.Option A: Using cross (recommended)
cross provides Docker-based cross-compilation with zero configuration:
Run build script
OneClaw includes a cross-compilation script:This builds for ARM64 (aarch64-unknown-linux-gnu) and creates deployment artifacts.
The script automatically handles Docker, target setup, and binary stripping.
Option B: Manual cross-compilation
For manual control or custom targets:Add target
armv7-unknown-linux-gnueabihf(32-bit ARM)x86_64-unknown-linux-gnu(Intel/AMD 64-bit)riscv64gc-unknown-linux-gnu(RISC-V)
Deploy to Raspberry Pi
Once you have a cross-compiled binary, deploy it to your edge device:Copy files to device
Transfer the binary and deployment files:Replace
pi@raspberrypi with your device’s username and hostname.Run installer
The install script sets up OneClaw as a systemd service:This:
- Copies binary to
/opt/oneclaw/bin/ - Creates config directory at
/opt/oneclaw/config/ - Installs systemd service
- Sets up proper permissions
systemd service management
Manage the OneClaw service on your edge device:Platform-specific notes
Raspberry Pi
- Recommended model: Pi 4 or later (4GB+ RAM preferred)
- OS: Raspberry Pi OS (64-bit) or Ubuntu Server
- Storage: Use SD card or SSD for better performance
- Networking: Ensure stable internet for cloud LLM providers
Industrial gateways
- OneClaw runs on standard x86_64 industrial PCs
- Consider using Ollama locally to eliminate cloud dependencies
- Use MQTT channel for sensor integration
Embedded ARM devices
- Minimum 512MB RAM recommended
- Test memory usage with
metricscommand - Consider disabling unused features to reduce footprint
Verify installation
Test your OneClaw installation:Uninstall
To remove OneClaw from an edge device:/opt/oneclaw/, and uninstalls the systemd unit.
Troubleshooting
Build fails with “edition 2024 not found”
Update Rust to version 1.85+:Cross-compilation linker errors
Usecross instead of manual cross-compilation:
Service fails to start on Pi
Check logs for errors:- Missing or invalid config file
- Incorrect file permissions
- Missing API keys
Binary too large
Ensure you’re building in release mode:Next steps
Configuration
Configure providers and features
Architecture
Understand the 6-layer design
Development
Build custom tools and channels
Deployment
Production deployment guide