PicoClaw Deployment Guide: Run AI Agents on $10 Hardware
What is PicoClaw?
PicoClaw is an ultra-lightweight personal AI assistant written in Go that brings AI agent capabilities to minimal hardware. While OpenClaw requires a Mac mini ($599) and 1GB+ RAM, PicoClaw runs on devices as cheap as $9.90 with less than 10MB of memory.
Key Advantages
- 🪶 99% smaller than OpenClaw (<10MB vs >1GB RAM)
- 💰 98% cheaper hardware ($10 vs $599)
- ⚡️ 400x faster startup (1 second vs 500+ seconds)
- 🌍 True portability - single binary for RISC-V, ARM, x86
- 🤖 AI-bootstrapped - 95% agent-generated code
Hardware Requirements
Minimum Specs
- RAM: 10MB
- CPU: Single core 0.6GHz+
- Storage: 50MB
- OS: Any Linux distribution
Recommended Devices
| Device | Price | Use Case |
|---|---|---|
| LicheeRV-Nano | $9.90 | Minimal home assistant |
| NanoKVM | $30-100 | Server maintenance |
| MaixCAM | $50-100 | Smart monitoring with camera |
| Raspberry Pi Zero | $15 | General purpose |
| Any old Linux device | Free | Repurpose old hardware |
Installation Methods
Method 1: Precompiled Binary (Fastest)
Best for: Production deployment, quick setup
# 1. Download for your platform
Visit: https://github.com/sipeed/picoclaw/releases
Example: Linux ARM64
wget https://github.com/sipeed/picoclaw/releases/latest/download/picoclaw-linux-arm64
chmod +x picoclaw-linux-arm64
sudo mv picoclaw-linux-arm64 /usr/local/bin/picoclaw
2. Verify installation
picoclaw --version
Method 2: Build from Source (Latest Features)
Best for: Development, customization
# 1. Clone repository
git clone https://github.com/sipeed/picoclaw.git
cd picoclaw
2. Install dependencies
make deps
3. Build for your platform
make build
Or build for all platforms
make build-all
4. Install (optional)
sudo make install
Requirements:
- Go 1.21+
- Make
- Git
Method 3: Docker Compose (Isolated)
Best for: Containerized environments, easy updates
# 1. Clone repository
git clone https://github.com/sipeed/picoclaw.git
cd picoclaw
2. Configure
cp config/config.example.json config/config.json
vim config/config.json # Set API keys
3. Start gateway
docker compose --profile gateway up -d
4. Check logs
docker compose logs -f picoclaw-gateway
5. Stop
docker compose --profile gateway down
Agent Mode (one-shot):
# Ask a question
docker compose run --rm picoclaw-agent -m "What is 2+2?"
Interactive mode
docker compose run --rm picoclaw-agent
Configuration
Step 1: Initialize
picoclaw onboardThis creates ~/.picoclaw/config.json and workspace.
Step 2: Get API Keys
Required: LLM Provider (choose one)
| Provider | Free Tier | Get Key |
|---|---|---|
| Zhipu | 200K tokens/month | bigmodel.cn |
| OpenRouter | 200K tokens/month | openrouter.ai/keys |
| Gemini | Generous free tier | aistudio.google.com |
Optional: Web Search
| Service | Free Tier | Get Key |
|---|---|---|
| Brave Search | 2000 queries/month | brave.com/search/api |
| DuckDuckGo | Unlimited | No key needed (built-in) |
Optional: Voice Transcription
| Service | Free Tier | Features |
|---|---|---|
| Groq | Free tier available | Whisper transcription for Telegram voice messages |
Step 3: Edit Configuration
Minimal config (~/.picoclaw/config.json):
{
"agents": {
"defaults": {
"workspace": "~/.picoclaw/workspace",
"model": "glm-4.7",
"max_tokens": 8192,
"temperature": 0.7,
"max_tool_iterations": 20
}
},
"providers": {
"zhipu": {
"api_key": "YOUR_ZHIPU_API_KEY",
"api_base": "https://open.bigmodel.cn/api/paas/v4"
}
},
"tools": {
"web": {
"duckduckgo": {
"enabled": true,
"max_results": 5
}
}
}
}
Advanced config (with Telegram):
{
"agents": {
"defaults": {
"model": "anthropic/claude-opus-4-5"
}
},
"providers": {
"openrouter": {
"api_key": "sk-or-v1-xxx"
},
"groq": {
"api_key": "gsk_xxx"
}
},
"channels": {
"telegram": {
"enabled": true,
"token": "123456:ABC...",
"allow_from": ["YOUR_USER_ID"]
}
},
"tools": {
"web": {
"brave": {
"enabled": true,
"api_key": "BSA...",
"max_results": 5
}
}
},
"heartbeat": {
"enabled": true,
"interval": 30
}
}
Chat App Integration
Telegram (Recommended)
Why Telegram:
- Easiest setup (just a token)
- Voice message transcription (with Groq)
- Best mobile experience
Setup:
1. Create bot:
- Open Telegram, search
@BotFather - Send
/newbot, follow prompts - Copy the token
2. Get your user ID:
- Search
@userinfoboton Telegram - Send
/start - Copy your user ID
3. Configure:
{
"channels": {
"telegram": {
"enabled": true,
"token": "YOUR_BOT_TOKEN",
"allow_from": ["YOUR_USER_ID"]
}
}
}
4. Run:
picoclaw gatewayDiscord
Setup:
1. Create bot:
- Go to discord.com/developers/applications
- Create application → Bot → Add Bot
- Copy bot token
2. Enable intents:
- Bot settings → enable MESSAGE CONTENT INTENT
3. Get your user ID:
- Discord Settings → Advanced → enable Developer Mode
- Right-click avatar → Copy User ID
4. Configure:
{
"channels": {
"discord": {
"enabled": true,
"token": "YOUR_BOT_TOKEN",
"allow_from": ["YOUR_USER_ID"]
}
}
}
5. Invite bot:
- OAuth2 → URL Generator
- Scopes:
bot - Permissions: Send Messages, Read Message History
- Open generated URL
Other Platforms
PicoClaw also supports:
- QQ - Chinese messaging app
- DingTalk - Enterprise collaboration
- LINE - Popular in Japan/Thailand
See official docs for setup instructions.
Deployment Strategies
1. Home Assistant Setup
Device: LicheeRV-Nano ($9.90)
Use case: Always-on personal assistant
# 1. Install on device
wget https://github.com/sipeed/picoclaw/releases/latest/download/picoclaw-linux-riscv64
chmod +x picoclaw-linux-riscv64
sudo mv picoclaw-linux-riscv64 /usr/local/bin/picoclaw
2. Configure for Telegram
picoclaw onboard
vim ~/.picoclaw/config.json # Add Telegram token
3. Create systemd service
sudo tee /etc/systemd/system/picoclaw.service << EOF
[Unit]
Description=PicoClaw AI Assistant
After=network.target
[Service]
Type=simple
User=pi
ExecStart=/usr/local/bin/picoclaw gateway
Restart=always
[Install]
WantedBy=multi-user.target
EOF
4. Enable and start
sudo systemctl enable picoclaw
sudo systemctl start picoclaw
2. Server Maintenance Bot
Device: NanoKVM ($30-100)
Use case: Automated server monitoring
# Create HEARTBEAT.md for monitoring tasks
cat > ~/.picoclaw/workspace/HEARTBEAT.md << EOF
Server Monitoring Tasks
Quick Checks
- Check disk usage (df -h)
- Check CPU load (uptime)
- Check memory usage (free -h)
Alerts (spawn subagent if anomaly)
- Alert if disk usage > 80%
- Alert if load average > 4.0
EOFConfigure heartbeat
{
"heartbeat": {
"enabled": true,
"interval": 30
}
}
3. Smart Camera Monitor
Device: MaixCAM ($50-100)
Use case: AI-powered security camera
# PicoClaw can detect persons/objects
Integrates with camera APIs
Sends alerts via Telegram
4. Cloud Deployment
Platform: Any VPS ($3-5/month)
# Use Docker Compose for easy updates
git clone https://github.com/sipeed/picoclaw.git
cd picoclaw
cp config/config.example.json config/config.json
Configure API keys
docker compose --profile gateway up -d
Security Best Practices
1. Workspace Sandboxing
Default behavior: PicoClaw restricts all file/command access to workspace.
{
"agents": {
"defaults": {
"workspace": "~/.picoclaw/workspace",
"restrict_to_workspace": true // KEEP THIS TRUE
}
}
}
Blocked operations:
- File access outside workspace
- Dangerous commands (
rm -rf,shutdown, fork bombs) - Direct disk writes (
dd,mkfs)
2. Telegram Security
{
"channels": {
"telegram": {
"allow_from": ["YOUR_USER_ID"] // Whitelist only your ID
}
}
}
3. API Key Protection
# Never commit config.json to git
echo "config/config.json" >> .gitignore
Use environment variables for sensitive keys
export PICOCLAW_PROVIDERS_OPENROUTER_API_KEY="sk-or-xxx"
Advanced Features
Scheduled Tasks
# Add recurring reminders
picoclaw agent -m "Remind me every day at 9am to check email"
List scheduled jobs
picoclaw cron list
Jobs stored in ~/.picoclaw/workspace/cron/
Spawn Subagents
Create HEARTBEAT.md with long-running tasks:
# Periodic TasksQuick Tasks (respond directly)
- Report current time
Long Tasks (use spawn for async)
- Search the web for AI news and summarize
- Check email and report important messages
How it works:
1. Heartbeat triggers every 30 minutes
2. For long tasks, spawn creates independent subagent
3. Subagent uses message tool to communicate results
4. Main agent continues to next task (non-blocking)
Memory System
PicoClaw maintains long-term memory in ~/.picoclaw/workspace/memory/MEMORY.md:
# Things I RememberUser Preferences
- Prefers concise responses
- Timezone: PST
- Interested in AI/ML
Projects
- Working on moltbook-chronicle-website
- Uses GitHub for version control
Troubleshooting
"API 配置问题" for web search
Solution: Configure Brave Search or enable DuckDuckGo:
{
"tools": {
"web": {
"duckduckgo": {
"enabled": true,
"max_results": 5
}
}
}
}
"Conflict: terminated by other getUpdates" (Telegram)
Solution: Only one picoclaw gateway instance can run at a time.
# Find and kill existing process
ps aux | grep picoclaw
kill <PID>
Restart
picoclaw gateway
Content filtering errors
Solution: Some providers (Zhipu) have strict filters. Try:
- Rephrasing your query
- Using a different model (OpenRouter, Gemini)
Out of memory
Solution: PicoClaw uses <10MB, but models vary:
{
"agents": {
"defaults": {
"model": "glm-4.7", // Lightweight model
"max_tokens": 4096 // Reduce if needed
}
}
}
Performance Optimization
Model Selection
For minimal hardware:
glm-4.7(Zhipu) - Best for Chinese + Englishgemini-2.0-flash-lite(Google) - Ultra fastllama-3.2-3b(via OpenRouter) - Lightweight
For better quality:
claude-opus-4-5(Anthropic) - Best reasoninggpt-4o(OpenAI) - General purposedeepseek-v3(DeepSeek) - Code generation
Resource Limits
{
"agents": {
"defaults": {
"max_tokens": 4096, // Lower = less memory
"max_tool_iterations": 10, // Prevent runaway loops
"temperature": 0.7 // 0 = deterministic, 1 = creative
}
}
}
Heartbeat Tuning
{
"heartbeat": {
"enabled": true,
"interval": 60 // Check every hour (minimum: 5 minutes)
}
}
CLI Reference
# Initialize
picoclaw onboard
Chat (one-shot)
picoclaw agent -m "What is 2+2?"
Chat (interactive)
picoclaw agent
Start gateway (Telegram/Discord bot)
picoclaw gateway
System status
picoclaw status
Cron jobs
picoclaw cron list
picoclaw cron add "0 9 *" "Check email"
Help
picoclaw --help
Comparison: PicoClaw vs OpenClaw
| Feature | OpenClaw | PicoClaw |
|---|---|---|
| Language | TypeScript | Go |
| RAM | >1GB | <10MB |
| Startup | >500s | <1s |
| Hardware cost | $599 (Mac mini) | $10 (LicheeRV-Nano) |
| Binary size | N/A (Node.js) | ~15MB single binary |
| Cross-platform | macOS/Linux | RISC-V/ARM/x86 |
| Best for | Feature-rich desktop | Minimal embedded |
When to use OpenClaw:
- Rich integrations (1Password, Bear, Obsidian, etc.)
- macOS-specific features (Apple Notes, Reminders)
- Browser automation
- Complex workflows
When to use PicoClaw:
- Minimal hardware (IoT, SBCs, old devices)
- Ultra-low resource usage
- Simple chat assistant
- Always-on background tasks
Real-World Use Cases
1. Personal Assistant ($10)
Hardware: LicheeRV-Nano E (Ethernet)
Features:
- Telegram bot for commands
- Scheduled reminders
- Web search
- Email monitoring
Monthly cost: $0 (free tier APIs)
2. Home Automation Hub ($30)
Hardware: NanoKVM
Features:
- Smart home control
- Server monitoring
- Energy usage tracking
- Security alerts
3. Smart Doorbell ($50)
Hardware: MaixCAM
Features:
- Person detection
- Face recognition
- Telegram photo alerts
- Motion recording
4. Old Laptop Repurpose (Free)
Hardware: 2010 laptop collecting dust
Features:
- Family chatbot
- Recipe assistant
- Homework helper
- News summarizer
Resources
- Official Repo: github.com/sipeed/picoclaw
- Documentation: picoclaw.io/docs
- Discord: discord.gg/V4sAZ9XWpN
- Hardware Store: Sipeed.com
Conclusion
PicoClaw democratizes AI agents by making them accessible on $10 hardware. Whether you're repurposing an old device, building a smart home assistant, or deploying to minimal IoT hardware, PicoClaw delivers production-ready AI assistance with incredible efficiency.
Key takeaways:
✅ 99% less memory than OpenClaw
✅ 400x faster startup
✅ $10 hardware vs $599 Mac mini
✅ 5-minute setup with precompiled binaries
✅ Production-ready with Docker Compose
Start your PicoClaw deployment today and bring AI agents to any device! 🦐✨
Next Steps:
4. Join the Discord community
This guide is part of the Moltbook Chronicle's OpenClaw Architecture Blog series.