2026-01-01 17:34:46 +01:00
---
2026-03-16 19:50:31 -05:00
summary: "CLI onboarding: guided setup for gateway, workspace, channels, and skills"
2026-01-01 17:34:46 +01:00
read_when:
2026-03-16 19:50:31 -05:00
- Running or configuring CLI onboarding
2026-01-01 21:09:24 +01:00
- Setting up a new machine
2026-03-16 19:50:31 -05:00
title: "Onboarding (CLI)"
2026-03-16 05:50:48 +00:00
sidebarTitle: "Onboarding: CLI"
2026-01-01 17:34:46 +01:00
---
2026-03-16 19:50:31 -05:00
# Onboarding (CLI)
2026-01-01 17:34:46 +01:00
2026-03-16 19:50:31 -05:00
CLI onboarding is the **recommended ** way to set up OpenClaw on macOS,
2026-02-05 17:45:01 -05:00
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.
2026-01-01 17:34:46 +01:00
2026-01-01 21:09:24 +01:00
``` bash
2026-03-16 05:50:48 +00:00
openclaw onboard
2026-01-01 21:09:24 +01:00
```
2026-01-01 17:34:46 +01:00
2026-02-05 10:09:45 -05:00
<Info>
2026-01-26 20:26:03 +00:00
Fastest first chat: open the Control UI (no channel setup needed). Run
2026-01-30 03:15:10 +01:00
`openclaw dashboard` and chat in the browser. Docs: [Dashboard ](/web/dashboard ).
2026-02-05 10:09:45 -05:00
</Info>
2026-01-26 20:26:03 +00:00
2026-02-05 17:45:01 -05:00
To reconfigure later:
``` bash
openclaw configure
openclaw agents add <name>
```
<Note>
`--json` does not imply non-interactive mode. For scripts, use `--non-interactive` .
</Note>
<Tip>
2026-03-16 19:50:31 -05:00
CLI onboarding includes a web search step where you can pick a provider
2026-04-04 12:00:46 +01:00
such as Brave, DuckDuckGo, Exa, Firecrawl, Gemini, Grok, Kimi, MiniMax Search,
Ollama Web Search, Perplexity, SearXNG, or Tavily. Some providers require an
API key, while others are key-free. You can also configure this later with
2026-03-06 19:09:00 +00:00
`openclaw configure --section web` . Docs: [Web tools ](/tools/web ).
2026-02-05 17:45:01 -05:00
</Tip>
2026-01-08 11:54:40 +01:00
## QuickStart vs Advanced
2026-03-16 19:50:31 -05:00
Onboarding starts with **QuickStart ** (defaults) vs **Advanced ** (full control).
2026-01-08 11:54:40 +01:00
2026-02-05 10:09:45 -05:00
<Tabs>
<Tab title="QuickStart (defaults)">
2026-02-05 17:45:01 -05:00
- Local gateway (loopback)
- Workspace default (or existing workspace)
- Gateway port **18789 **
- Gateway auth **Token ** (auto‑ generated, even on loopback)
2026-03-07 16:40:51 +00:00
- Tool policy default for new local setups: `tools.profile: "coding"` (existing explicit profile is preserved)
2026-03-16 05:50:48 +00:00
- DM isolation default: local onboarding writes `session.dmScope: "per-channel-peer"` when unset. Details: [CLI Setup Reference ](/start/wizard-cli-reference#outputs-and-internals )
2026-02-05 17:45:01 -05:00
- Tailscale exposure **Off **
- Telegram + WhatsApp DMs default to **allowlist ** (you'll be prompted for your phone number)
2026-02-05 10:09:45 -05:00
</Tab>
<Tab title="Advanced (full control)">
2026-02-05 17:45:01 -05:00
- Exposes every step (mode, workspace, gateway, channels, daemon, skills).
2026-02-05 10:09:45 -05:00
</Tab>
</Tabs>
2026-01-08 11:54:40 +01:00
2026-03-16 19:50:31 -05:00
## What onboarding configures
2026-01-01 21:09:24 +01:00
2026-02-05 17:45:01 -05:00
**Local mode (default) ** walks you through these steps:
2026-01-31 21:13:13 +09:00
2026-04-04 14:49:42 +09:00
1. **Model/Auth ** — choose any supported provider/auth flow (API key, OAuth, or provider-specific manual auth), including Custom Provider
2026-02-10 20:31:02 +08:00
(OpenAI-compatible, Anthropic-compatible, or Unknown auto-detect). Pick a default model.
2026-03-03 00:02:25 +00:00
Security note: if this agent will run tools or process webhook/hooks content, prefer the strongest latest-generation model available and keep tool policy strict. Weaker/older tiers are easier to prompt-inject.
2026-02-24 16:26:51 -06:00
For non-interactive runs, `--secret-input-mode ref` stores env-backed refs in auth profiles instead of plaintext API key values.
2026-02-24 22:26:33 -06:00
In non-interactive `ref` mode, the provider env var must be set; passing inline key flags without that env var fails fast.
2026-02-25 17:58:10 -06:00
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.
2026-04-06 15:30:49 +01:00
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.
2026-02-05 17:45:01 -05:00
2. **Workspace ** — Location for agent files (default `~/.openclaw/workspace` ). Seeds bootstrap files.
3. **Gateway ** — Port, bind address, auth mode, Tailscale exposure.
2026-03-05 12:53:56 -06:00
In interactive token mode, choose default plaintext token storage or opt into SecretRef.
Non-interactive token SecretRef path: `--gateway-token-ref-env <ENV_VAR>` .
2026-04-04 15:13:14 +01:00
4. **Channels ** — built-in and bundled chat channels such as BlueBubbles, Discord, Feishu, Google Chat, Mattermost, Microsoft Teams, QQ Bot, Signal, Slack, Telegram, WhatsApp, and more.
2026-04-04 10:49:13 +01:00
5. **Daemon ** — Installs a LaunchAgent (macOS), systemd user unit (Linux/WSL2), or native Windows Scheduled Task with per-user Startup-folder fallback.
2026-03-05 12:53:56 -06:00
If token auth requires a token and `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.
2026-02-05 17:45:01 -05:00
6. **Health check ** — Starts the Gateway and verifies it's running.
7. **Skills ** — Installs recommended skills and optional dependencies.
2026-01-07 09:58:54 +01:00
2026-02-05 10:09:45 -05:00
<Note>
2026-03-16 19:50:31 -05:00
Re-running onboarding does **not ** wipe anything unless you explicitly choose **Reset ** (or pass `--reset` ).
2026-02-26 17:35:55 +01:00
CLI `--reset` defaults to config, credentials, and sessions; use `--reset-scope full` to include workspace.
2026-03-16 19:50:31 -05:00
If the config is invalid or contains legacy keys, onboarding asks you to run `openclaw doctor` first.
2026-02-05 10:09:45 -05:00
</Note>
2026-01-01 21:09:24 +01:00
2026-02-05 17:45:01 -05:00
**Remote mode ** only configures the local client to connect to a Gateway elsewhere.
It does **not ** install or change anything on the remote host.
## Add another agent
Use `openclaw agents add <name>` to create a separate agent with its own workspace,
2026-03-16 19:50:31 -05:00
sessions, and auth profiles. Running without `--workspace` launches onboarding.
2026-02-05 17:45:01 -05:00
What it sets:
- `agents.list[].name`
- `agents.list[].workspace`
- `agents.list[].agentDir`
Notes:
- Default workspaces follow `~/.openclaw/workspace-<agentId>` .
2026-03-16 19:50:31 -05:00
- Add `bindings` to route inbound messages (onboarding can do this).
2026-02-05 17:45:01 -05:00
- Non-interactive flags: `--model` , `--agent-dir` , `--bind` , `--non-interactive` .
## Full reference
2026-03-13 01:56:02 +00:00
For detailed step-by-step breakdowns and config outputs, see
2026-03-15 21:39:36 -07:00
[CLI Setup Reference ](/start/wizard-cli-reference ).
2026-03-13 01:56:02 +00:00
For non-interactive examples, see [CLI Automation ](/start/wizard-cli-automation ).
For the deeper technical reference, including RPC details, see
2026-03-16 19:50:31 -05:00
[Onboarding Reference ](/reference/wizard ).
2026-01-15 05:03:56 +00:00
2026-01-01 21:09:24 +01:00
## Related docs
2026-03-16 05:50:48 +00:00
- CLI command reference: [`openclaw onboard` ](/cli/onboard )
- Onboarding overview: [Onboarding Overview ](/start/onboarding-overview )
2026-01-10 14:51:21 -06:00
- macOS app onboarding: [Onboarding ](/start/onboarding )
2026-02-05 13:46:11 -05:00
- Agent first-run ritual: [Agent Bootstrapping ](/start/bootstrapping )