Skip to main content

openclaw onboard

Guided setup wizard for first-time OpenClaw configuration.

Usage

Options

boolean
Run in non-interactive mode (requires —accept-risk)
boolean
Acknowledge security risks (required for —non-interactive)
string
Onboarding flow: quick, advanced, or manual
  • quick: Guided setup with defaults
  • advanced: Full configuration options
  • manual: Expert mode with minimal guidance
string
Authentication choice: token or openai-codex
  • token: Anthropic setup-token flow
  • openai-codex: OpenAI Codex OAuth
string
Workspace directory path (default: ~/openclaw-workspace)
boolean
Reset existing configuration before onboarding
boolean
Install gateway as a system service (launchd/systemd/schtasks)

Flows

Quick Flow

Recommended for first-time users. Guides through:
  1. Model provider authentication
  2. Gateway configuration
  3. Workspace setup
  4. Optional channel connections
  5. Gateway daemon installation

Advanced Flow

For users who want more control:
  1. Choose authentication method
  2. Configure gateway details (port, bind, auth)
  3. Set up workspace and skills
  4. Configure multiple channels
  5. 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:
You’ll receive a setup token from Anthropic’s developer console.

OpenAI Codex OAuth

For OpenAI models:
Uses OAuth flow to authenticate with OpenAI.

Non-Interactive Mode

For automated setups and CI/CD:
Non-interactive mode requires --accept-risk to acknowledge security implications. Read the security documentation before using automated setup.

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:
  1. Start the gateway:
  2. Check status:
  3. Test agent:
  4. Add channels (if not done during onboarding):

Troubleshooting

If onboarding fails:
  1. Check requirements:
  2. Reset and retry:
  3. Run diagnostics:
  4. 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
Run openclaw onboard again at any time to reconfigure settings. Use --reset to start fresh.
  • setup - Initialize config without interactive wizard
  • configure - Interactive config wizard for existing setups
  • doctor - Validate and repair configuration
  • gateway - Manage the gateway after onboarding