docs/start/wizard.md
CLI onboarding is the recommended way to set up OpenClaw on macOS, Linux, or Windows (via WSL2; strongly recommended). It configures a local Gateway or a remote Gateway connection, plus channels, skills, and workspace defaults in one guided flow.
openclaw onboard
To reconfigure later:
openclaw configure
openclaw agents add <name>
Onboarding starts with QuickStart (defaults) vs Advanced (full control).
<Tabs> <Tab title="QuickStart (defaults)"> - Local gateway (loopback) - Workspace default (or existing workspace) - Gateway port **18789** - Gateway auth **Token** (auto‑generated, even on loopback) - Tool policy default for new local setups: `tools.profile: "coding"` (existing explicit profile is preserved) - DM isolation default: local onboarding writes `session.dmScope: "per-channel-peer"` when unset. Details: [CLI Setup Reference](/start/wizard-cli-reference#outputs-and-internals) - Tailscale exposure **Off** - Telegram + WhatsApp DMs default to **allowlist** (you'll be prompted for your phone number) </Tab> <Tab title="Advanced (full control)"> - Exposes every step (mode, workspace, gateway, channels, daemon, skills). </Tab> </Tabs>Local mode (default) walks you through these steps:
--secret-input-mode ref stores env-backed refs in auth profiles instead of plaintext API key values.
In non-interactive ref mode, the provider env var must be set; passing inline key flags without that env var fails fast.
In interactive runs, choosing secret reference mode lets you point at either an environment variable or a configured provider ref (file or exec), with a fast preflight validation before saving.
For Anthropic, interactive onboarding/configure offers Anthropic Claude CLI as the preferred local path and Anthropic API key as the recommended production path. Anthropic setup-token also remains available as a supported token-auth path.~/.openclaw/workspace). Seeds bootstrap files.--gateway-token-ref-env <ENV_VAR>.gateway.auth.token is SecretRef-managed, daemon install validates it but does not persist the resolved token into supervisor service environment metadata.
If token auth requires a token and the configured token SecretRef is unresolved, daemon install is blocked with actionable guidance.
If both gateway.auth.token and gateway.auth.password are configured and gateway.auth.mode is unset, daemon install is blocked until mode is set explicitly.Remote mode only configures the local client to connect to a Gateway elsewhere. It does not install or change anything on the remote host.
Use openclaw agents add <name> to create a separate agent with its own workspace,
sessions, and auth profiles. Running without --workspace launches onboarding.
What it sets:
agents.list[].nameagents.list[].workspaceagents.list[].agentDirNotes:
~/.openclaw/workspace-<agentId>.bindings to route inbound messages (onboarding can do this).--model, --agent-dir, --bind, --non-interactive.For detailed step-by-step breakdowns and config outputs, see CLI Setup Reference. For non-interactive examples, see CLI Automation. For the deeper technical reference, including RPC details, see Onboarding Reference.
openclaw onboard