OpenClaw Setup Wizard#
One-command diagnostic and guided setup for OpenClaw installations.
Quick Start#
Run the diagnostic first to assess the current state:
bash
bash scripts/diagnose.sh
This produces a JSON report covering: gateway status, provider config, channels, skills, cron jobs, security, and system resources.
Workflow#
- Diagnose — Run
scripts/diagnose.sh to get current system state
- Plan — Based on diagnosis, identify what needs setup/fixing
- Configure — Use
openclaw CLI commands (never edit JSON directly)
- Verify — Re-run diagnosis to confirm fixes
- Harden — Run
scripts/harden.sh for security best practices
Diagnosis Output#
The diagnose script checks 12 areas:
- OpenClaw version and gateway status
- Provider configuration (API keys, models, fallbacks)
- Channel connections (Telegram, Discord, Slack, etc.)
- Installed skills count and list
- Cron jobs status
- Memory/disk/CPU usage
- Backup configuration
- Security posture (token strength, file permissions)
- Network connectivity
- Node.js and dependency versions
- LaunchAgent/systemd service status
- Recent error logs
Common Setup Tasks#
First-Time Setup#
- Run
diagnose.sh → identify missing components
- Configure primary LLM provider:
openclaw models set <model>
- Add fallback:
openclaw models fallbacks add <model>
- Connect chat channel (see references/channels.md)
- Install essential skills:
clawhub install <skill>
- Set up backup cron
- Run
harden.sh
Multi-Provider Setup#
See references/providers.md for provider-specific configuration including API key setup, model selection, and fallback chains.
Channel Connection#
See references/channels.md for step-by-step guides for each supported channel (Telegram, Discord, Slack, WhatsApp, etc.)
Security Hardening#
Run scripts/harden.sh which checks and fixes:
- Gateway token strength (warns if default/weak)
- Config file permissions (should be 600)
- API key exposure in logs
- Firewall recommendations
- SSH hardening (if applicable)
Troubleshooting#
See references/troubleshooting.md for common issues and fixes.