openclaw onboard
Guided setup wizard for first-time OpenClaw configuration.Usage
Options
Run in non-interactive mode (requires —accept-risk)
Acknowledge security risks (required for —non-interactive)
Onboarding flow:
quick, advanced, or manualquick: Guided setup with defaultsadvanced: Full configuration optionsmanual: Expert mode with minimal guidance
Authentication choice:
token or openai-codextoken: Anthropic setup-token flowopenai-codex: OpenAI Codex OAuth
Workspace directory path (default: ~/openclaw-workspace)
Reset existing configuration before onboarding
Install gateway as a system service (launchd/systemd/schtasks)
Flows
Quick Flow
Recommended for first-time users. Guides through:- Model provider authentication
- Gateway configuration
- Workspace setup
- Optional channel connections
- Gateway daemon installation
Advanced Flow
For users who want more control:- Choose authentication method
- Configure gateway details (port, bind, auth)
- Set up workspace and skills
- Configure multiple channels
- Advanced agent settings
Manual Flow
Expert mode with minimal guidance:Authentication
The onboarding wizard supports multiple authentication methods:Anthropic Setup Token
Recommended for Claude models:OpenAI Codex OAuth
For OpenAI models:Non-Interactive Mode
For automated setups and CI/CD:Examples
What Gets Configured
The onboarding wizard sets up:1. Model Provider Authentication
- Anthropic API credentials
- OpenAI API credentials
- Custom model endpoints
- Authentication profiles
2. Gateway Configuration
- Gateway mode (local or remote)
- WebSocket port (default: 18789)
- Bind address (loopback, lan, tailnet)
- Authentication (token or password)
- Tailscale integration (optional)
3. Workspace Setup
- Workspace directory creation
- Bootstrap files (BOOTSTRAP.md, guides)
- Skills directory structure
- Memory system configuration
4. Channel Connections
- Optional channel setup (Telegram, Discord, Slack, etc.)
- Channel authentication and tokens
- Default channel configuration
5. Agent Defaults
- Default model selection
- Thinking level preferences
- Context token limits
- Timeout settings
6. System Service
- Gateway daemon installation (optional)
- LaunchAgent (macOS)
- systemd user service (Linux)
- Task Scheduler (Windows)
Configuration File
Onboarding creates~/.openclaw/openclaw.json with your settings:
Workspace Structure
The workspace is created with:Post-Onboarding
After onboarding completes:-
Start the gateway:
-
Check status:
-
Test agent:
-
Add channels (if not done during onboarding):
Troubleshooting
If onboarding fails:-
Check requirements:
-
Reset and retry:
-
Run diagnostics:
-
Check logs:
Platform-Specific Notes
macOS
- Supports LaunchAgent for automatic gateway startup
- iMessage integration available
- Menu bar app available
Linux
- Uses systemd user services
- May require lingering:
loginctl enable-linger $USER - Signal CLI integration recommended
Windows
- WSL2 recommended for best experience
- Native Windows support is experimental
- Task Scheduler for service management

