# π¦ Claw Setup
### Professional AI Agent Deployment Made Simple
**End-to-end setup of OpenClaw, NanoBot, PicoClaw, ZeroClaw, or NanoClaw with security hardening and personal customization**
---
β¨ Autonomously developed by GLM 5 Advanced Coding Model
β οΈ Disclaimer: Test in a test environment prior to using on any live system
---
## Overview
Claw Setup handles the complete deployment of AI Agent platforms from the Claw family - from selection to production - with security best practices and personalized configuration through interactive brainstorming.
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CLAW SETUP WORKFLOW β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Phase 1 Phase 2 Phase 3 Phase 4 β
β ββββββββ ββββββββ ββββββββ ββββββββ β
β β
β βββββββββββ βββββββββββ βββββββββββ βββββββββββ β
β β SELECT ββββββΊβ INSTALL ββββββΊβCUSTOMIZEββββββΊβ DEPLOY β β
β βββββββββββ βββββββββββ βββββββββββ βββββββββββ β
β β β β β β
β βΌ βΌ βΌ βΌ β
β Compare Clone & Brainstorm Systemd β
β platforms harden your use case & monitor β
β security β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β SUPPORTED PLATFORMS ββ
β β ββ
β β π¦ OpenClaw Full-featured, 1700+ plugins, 215K stars ββ
β β π€ NanoBot Python, 4K lines, research-ready ββ
β β π¦ PicoClaw Go, <10MB, $10 hardware ββ
β β β‘ ZeroClaw Rust, <5MB, 10ms startup ββ
β β π¬ NanoClaw TypeScript, WhatsApp focused ββ
β β ββ
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
## Platform Comparison
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PLATFORM COMPARISON β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Metric OpenClaw NanoBot PicoClaw ZeroClaw NanoClaw β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β Language TS Python Go Rust TS β
β Memory >1GB ~100MB <10MB <5MB ~50MB β
β Startup ~500s ~30s ~1s <10ms ~5s β
β Binary Size ~28MB N/A ~8MB 3.4MB ~15MB β
β GitHub Stars 215K+ 22K 15K 10K 5K β
β Plugins 1700+ ~50 ~20 ~15 ~10 β
β Learning Medium Easy Easy Medium Easy β
β β
β BEST FOR: β
β βββββββββ β
β OpenClaw β Full desktop AI, extensive integrations β
β NanoBot β Research, customization, Python developers β
β PicoClaw β Embedded, low-resource, $10 hardware β
β ZeroClaw β Maximum performance, security-critical β
β NanoClaw β WhatsApp automation, messaging bots β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
## Decision Flowchart
```
βββββββββββββββββββ
β Need AI Agent? β
ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββββββββ
β Memory constrained? β
β (<1GB RAM available) β
βββββββββββββ¬ββββββββββββ
βββββββ΄ββββββ
β β
YES NO
β β
βΌ βΌ
ββββββββββββββββ ββββββββββββββββββββ
β Need <10MB? β β Want plugins? β
ββββββββ¬ββββββββ ββββββββββ¬ββββββββββ
βββββββ΄ββββββ βββββββ΄ββββββ
β β β β
YES NO YES NO
β β β β
βΌ βΌ βΌ βΌ
ββββββββββ ββββββββββ ββββββββββ ββββββββββ
βZeroClawβ βPicoClawβ βOpenClawβ βNanoBot β
β (Rust) β β (Go) β β (Full) β β(Python)β
ββββββββββ ββββββββββ ββββββββββ ββββββββββ
```
## Quick Start
### Option 1: Interactive Setup (Recommended)
```
"Setup Claw AI assistant on my server"
"Help me choose and install an AI agent platform"
```
### Option 2: Direct Platform Selection
```
"Setup OpenClaw with all security features"
"Install ZeroClaw on my VPS"
"Deploy NanoBot for research use"
```
## Installation Guides
### OpenClaw (Full Featured)
```bash
# Prerequisites
sudo apt update && sudo apt install -y nodejs npm git
# Clone official repo
git clone https://github.com/openclaw/openclaw.git
cd openclaw
# Install dependencies
npm install
# Run setup wizard
npm run setup
# Configure environment
cp .env.example .env
nano .env # Add your API keys
# Start
npm run start
```
### NanoBot (Python Lightweight)
```bash
# Quick install via pip
pip install nanobot-ai
# Initialize
nanobot onboard
# Configure (~/.nanobot/config.json)
{
"providers": {
"openrouter": { "apiKey": "sk-or-v1-xxx" }
},
"agents": {
"defaults": { "model": "anthropic/claude-opus-4-5" }
}
}
# Start gateway
nanobot gateway
```
### PicoClaw (Go Ultra-Light)
```bash
# Download latest release
wget https://github.com/sipeed/picoclaw/releases/latest/download/picoclaw-linux-amd64
chmod +x picoclaw-linux-amd64
sudo mv picoclaw-linux-amd64 /usr/local/bin/picoclaw
# Create config
mkdir -p ~/.config/picoclaw
picoclaw config init
# Start
picoclaw gateway
```
### ZeroClaw (Rust Minimal)
```bash
# Download latest release
wget https://github.com/zeroclaw-labs/zeroclaw/releases/latest/download/zeroclaw-linux-amd64
chmod +x zeroclaw-linux-amd64
sudo mv zeroclaw-linux-amd64 /usr/local/bin/zeroclaw
# Initialize config
zeroclaw init
# Migrate from OpenClaw (optional)
zeroclaw migrate openclaw --dry-run
# Start
zeroclaw gateway
```
## Security Hardening
### 1. Secrets Management
```bash
# Never hardcode API keys - use environment variables
export ANTHROPIC_API_KEY="your-key"
export OPENROUTER_API_KEY="your-key"
# Add to shell profile for persistence
echo 'export ANTHROPIC_API_KEY="your-key"' >> ~/.bashrc
# Use encrypted config files
mkdir -p ~/.config/claw
chmod 700 ~/.config/claw
```
### 2. Network Security
```bash
# Bind to localhost only
# config.json:
{
"server": {
"host": "127.0.0.1",
"port": 3000
}
}
# Use nginx reverse proxy for external access
sudo certbot --nginx -d claw.yourdomain.com
```
### 3. Systemd Hardened Service
```bash
# /etc/systemd/system/claw.service
[Unit]
Description=Claw AI Assistant
After=network.target
[Service]
Type=simple
User=claw
Group=claw
WorkingDirectory=/opt/claw
ExecStart=/usr/local/bin/claw gateway
Restart=on-failure
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/claw/data
Environment="ANTHROPIC_API_KEY=%i"
[Install]
WantedBy=multi-user.target
```
```bash
# Enable service
sudo systemctl daemon-reload
sudo systemctl enable --now claw
```
## Brainstorm Session
After installation, we'll explore your needs:
### π― Use Case Discovery
```
Q: What tasks should your AI handle?
β‘ Code assistance & development
β‘ Research & information gathering
β‘ Personal productivity (calendar, reminders)
β‘ Content creation & writing
β‘ Data analysis & visualization
β‘ Home automation
β‘ Customer support / chatbot
β‘ Other: _______________
```
### π€ Model Selection
```
Q: Which AI model(s) to use?
β‘ Claude (Anthropic) - Best reasoning
β‘ GPT-4 (OpenAI) - General purpose
β‘ Gemini (Google) - Multimodal
β‘ Local models (Ollama) - Privacy-first
β‘ OpenRouter - Multi-model access
```
### π Integration Planning
```
Q: Which platforms to connect?
Messaging:
β‘ Telegram β‘ Discord β‘ WhatsApp β‘ Slack
Calendar:
β‘ Google β‘ Outlook β‘ Apple β‘ None
Storage:
β‘ Local β‘ Google Drive β‘ Dropbox β‘ S3
APIs:
β‘ Custom REST APIs
β‘ Webhooks
β‘ Database connections
```
### π¨ Agent Personality
```
Q: How should your agent behave?
Tone: Professional β‘ Casual β‘ Formal β‘ Playful β‘
Proactivity:
β‘ Reactive (responds only when asked)
β‘ Proactive (suggests, reminds, initiates)
Memory:
β‘ Session only (fresh each chat)
β‘ Persistent (remembers everything)
β‘ Selective (configurable retention)
```
## Architecture
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DEPLOYED ARCHITECTURE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββββββ β
β β Internet β β
β ββββββββ¬βββββββ β
β β β
β βββββββββΌββββββββ β
β β nginx/HTTPS β β
β β (Reverse β β
β β Proxy) β β
β βββββββββ¬ββββββββ β
β β β
β ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββ β
β β localhost β β
β β βββββββββββ βββββββββββΌβββββββββ ββββββββββββββ β β
β β β Config β β CLAW ENGINE β β Data β β β
β β β ~/.configβ β (Gateway) β β Storage β β β
β β β /claw β β Port: 3000 β β ~/claw/ β β β
β β βββββββββββ βββββββββββ¬βββββββββ ββββββββββββββ β β
β β β β β
β β βββββββββββββββββββΌββββββββββββββββββ β β
β β β β β β β
β β ββββββΌβββββ βββββββΌββββββ βββββββΌββββββ β β
β β β LLM β β Tools β β Memory β β β
β β β APIs β β Plugins β β Context β β β
β β βClaude/GPTβ β Skills β β Store β β β
β β βββββββββββ βββββββββββββ βββββββββββββ β β
β β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
## Post-Setup Checklist
```
β‘ API keys configured securely
β‘ Network binding verified (localhost)
β‘ Firewall configured
β‘ SSL certificate installed (if external)
β‘ Systemd service enabled
β‘ Logs configured and rotating
β‘ Backup strategy in place
β‘ Test conversation successful
β‘ Custom agents created
β‘ Integrations connected
```
---