OpenClaw Setup Wizard
OpenClaw Setup Wizard
Section titled “OpenClaw Setup Wizard”The OpenClaw Setup Wizard provides an interactive, guided configuration experience for new users. It handles everything from initial setup to service installation.
Running the Wizard
Section titled “Running the Wizard”Basic Wizard
Section titled “Basic Wizard”# Start the interactive wizardopenclaw onboard
# Or with service installationopenclaw onboard --install-daemonAdvanced Wizard Options
Section titled “Advanced Wizard Options”# Wizard with custom configuration pathOPENCLAW_CONFIG_PATH=/custom/path/config.json openclaw onboard
# Wizard with specific profileopenclaw onboard --profile production
# Wizard with verbose outputopenclaw onboard --verboseWizard Steps
Section titled “Wizard Steps”The wizard guides you through several configuration steps:
1. Welcome and Overview
Section titled “1. Welcome and Overview”The wizard starts with an introduction to OpenClaw:
🦞 Welcome to OpenClaw!
OpenClaw is a multi-platform gateway that bridges messaging appsto AI agents. This wizard will help you configure your installation.
Press Enter to continue...2. Environment Check
Section titled “2. Environment Check”The wizard verifies your system meets requirements:
✓ Node.js version: 22.1.0✓ Package manager: npm found✓ System: macOS (arm64)✓ Memory: 16GB available✓ Disk space: 250GB available
✓ Environment check passed!If requirements aren’t met, the wizard provides installation guidance.
3. Installation Type
Section titled “3. Installation Type”Choose your installation preference:
Select installation type:1) Global npm install (Recommended)2) Source installation (Development)3) Docker container (Isolated)
Choice [1]:4. Configuration Path
Section titled “4. Configuration Path”Set up your configuration location:
Configuration will be stored at: ~/.openclaw/Press Enter to accept, or specify custom path:5. Gateway Configuration
Section titled “5. Gateway Configuration”Configure the core Gateway settings:
Gateway Configuration:- Port: 18789 (default)- Bind address: 127.0.0.1 (loopback only)- Enable authentication: Yes- Generate token: Yes
Configure Gateway? [Y/n]:6. Channel Selection
Section titled “6. Channel Selection”Choose which messaging platforms to enable:
Select messaging channels:[ ] WhatsApp (requires phone)[ ] Telegram (requires bot token)[ ] Discord (requires bot token)[ ] iMessage (macOS only)[ ] Mattermost (plugin)
Select channels (space-separated numbers): 1 27. Agent Configuration
Section titled “7. Agent Configuration”Set up the AI agent:
Agent Configuration:- Agent type: Pi (default)- Model: claude-3.5-sonnet- Max tokens: 4096- Temperature: 0.7
Configure agent? [Y/n]:8. Security Settings
Section titled “8. Security Settings”Configure security options:
Security Configuration:- Enable sandboxing: Yes- Require authentication: Yes- Log level: info- Backup config: Yes
Apply security defaults? [Y/n]:9. Service Installation
Section titled “9. Service Installation”Install system service for automatic startup:
Service Installation:- Install as user service: Yes- Auto-start on boot: Yes- Restart on failure: Yes
Install service? [Y/n]:10. Summary and Confirmation
Section titled “10. Summary and Confirmation”Review your configuration before applying:
Configuration Summary:- Installation: Global npm- Gateway: Port 18789, Loopback only- Channels: WhatsApp, Telegram- Agent: Pi with Claude 3.5 Sonnet- Security: Sandboxing enabled- Service: User service installed
Apply configuration? [Y/n]:Automated Configuration
Section titled “Automated Configuration”Non-Interactive Mode
Section titled “Non-Interactive Mode”For automated deployments, use non-interactive mode:
openclaw onboard --auto \ --install-type global \ --gateway-port 18789 \ --channels whatsapp,telegram \ --agent-model claude-3.5-sonnet \ --install-daemonConfiguration File
Section titled “Configuration File”You can provide a configuration file:
# Create config filecat > openclaw-config.json << EOF{ "gateway": { "port": 18789, "bind": "127.0.0.1" }, "channels": { "whatsapp": true, "telegram": true }, "agent": { "model": "claude-3.5-sonnet", "maxTokens": 4096 }, "security": { "sandboxing": true, "authentication": true }}EOF
# Apply configurationopenclaw onboard --config openclaw-config.jsonProfiles
Section titled “Profiles”The wizard includes predefined profiles for different use cases:
Development Profile
Section titled “Development Profile”openclaw onboard --profile developmentIncludes:
- Verbose logging
- Debug mode enabled
- Source installation
- No service installation
Production Profile
Section titled “Production Profile”openclaw onboard --profile productionIncludes:
- Minimal logging
- Security hardening
- Service installation
- Monitoring enabled
Testing Profile
Section titled “Testing Profile”openclaw onboard --profile testingIncludes:
- Isolated configuration
- Mock services
- Test data
- No persistent storage
Custom Profiles
Section titled “Custom Profiles”Create your own wizard profiles:
# Create custom profilemkdir -p ~/.openclaw/profilescat > ~/.openclaw/profiles/custom.json << EOF{ "name": "Custom Setup", "description": "My custom OpenClaw configuration", "installation": { "type": "global", "service": true }, "gateway": { "port": 19000, "bind": "0.0.0.0" }, "channels": ["whatsapp", "discord"], "agent": { "model": "gpt-4", "temperature": 0.5 }, "security": { "sandboxing": false, "authentication": true }}EOF
# Use custom profileopenclaw onboard --profile customTroubleshooting the Wizard
Section titled “Troubleshooting the Wizard”Common Issues
Section titled “Common Issues”Wizard hangs during setup
# Cancel with Ctrl+C and restartopenclaw onboard --force
# Check system logsopenclaw wizard logsPermission errors
# Run with appropriate permissionssudo openclaw onboard --install-daemon
# Or use user directoryopenclaw onboard --user-dirNetwork connectivity issues
# Use offline modeopenclaw onboard --offline
# Or specify mirroropenclaw onboard --npm-mirror https://registry.npmjs.org/Debug Mode
Section titled “Debug Mode”Enable detailed wizard logging:
# Run wizard with debug outputopenclaw onboard --debug
# Save wizard logsopenclaw onboard --log-file wizard.logReset Configuration
Section titled “Reset Configuration”If wizard configuration fails, reset and retry:
# Reset wizard stateopenclaw wizard reset
# Clear all configurationopenclaw wizard reset --full
# Start freshopenclaw onboardWizard Configuration Files
Section titled “Wizard Configuration Files”Main Config
Section titled “Main Config”After completion, the wizard creates ~/.openclaw/openclaw.json:
{ gateway: { port: 18789, bind: "127.0.0.1", token: "generated-token-here" }, channels: { whatsapp: { enabled: true, allowFrom: [] }, telegram: { enabled: true, botToken: "" } }, agents: { default: { type: "pi", model: "claude-3.5-sonnet" } }, security: { sandboxing: true, authentication: true }}Service Files
Section titled “Service Files”The wizard installs system service files:
macOS (launchd): ~/Library/LaunchAgents/com.openclaw.gateway.plist
Linux (systemd): ~/.config/systemd/user/openclaw-gateway.service
Environment Files
Section titled “Environment Files”Creates environment configuration:
OPENCLAW_CONFIG_PATH=~/.openclaw/openclaw.jsonOPENCLAW_STATE_DIR=~/.openclaw/stateOPENCLAW_LOG_LEVEL=infoPost-Wizard Steps
Section titled “Post-Wizard Steps”After the wizard completes:
1. Verify Installation
Section titled “1. Verify Installation”# Check Gateway statusopenclaw gateway status
# Test configurationopenclaw config validate
# View summaryopenclaw wizard summary2. Complete Channel Setup
Section titled “2. Complete Channel Setup”# WhatsApp loginopenclaw channels login whatsapp
# Add bot tokensopenclaw config set channels.telegram.botToken YOUR_TOKEN3. Open Dashboard
Section titled “3. Open Dashboard”Access the web dashboard: http://127.0.0.1:18789/
4. Send Test Message
Section titled “4. Send Test Message”# Test your setupopenclaw message testAdvanced Wizard Features
Section titled “Advanced Wizard Features”Migration Mode
Section titled “Migration Mode”Migrate from existing installation:
# Migrate from old configopenclaw onboard --migrate /path/to/old/config
# Import from Clawdbot/Moltbotopenclaw onboard --import moltbotUpdate Mode
Section titled “Update Mode”Update existing configuration:
# Re-run wizard to updateopenclaw onboard --update
# Add new channels onlyopenclaw onboard --add-channels discord,slackBackup and Restore
Section titled “Backup and Restore”# Backup wizard configurationopenclaw wizard backup
# Restore from backupopenclaw wizard restore openclaw-backup-2024-01-15.jsonNext Steps
Section titled “Next Steps”After completing the wizard:
- Configure specific channels - Complete platform setup
- Set up agents - Configure AI assistants
- Explore the dashboard - Learn the web interface
- Security hardening - Production security setup
The OpenClaw Setup Wizard makes getting started easy and ensures your configuration is secure and optimized from the start! 🧙♂️