Files
openclaw/docs/cli/setup.md
T

46 lines
1.3 KiB
Markdown
Raw Normal View History

2026-01-15 06:12:54 +00:00
---
2026-03-16 05:50:48 +00:00
summary: "CLI reference for `openclaw setup` (initialize config + workspace)"
2026-01-15 06:12:54 +00:00
read_when:
- Youre doing first-run setup without full CLI onboarding
2026-01-15 06:12:54 +00:00
- You want to set the default workspace path
2026-01-31 16:04:03 -05:00
title: "setup"
2026-01-15 06:12:54 +00:00
---
2026-01-30 03:15:10 +01:00
# `openclaw setup`
2026-01-15 06:12:54 +00:00
2026-03-16 05:50:48 +00:00
Initialize `~/.openclaw/openclaw.json` and the agent workspace.
2026-01-15 06:12:54 +00:00
Related:
2026-01-31 21:13:13 +09:00
2026-01-15 06:12:54 +00:00
- Getting started: [Getting started](/start/getting-started)
- CLI onboarding: [Onboarding (CLI)](/start/wizard)
2026-01-15 06:12:54 +00:00
## Examples
```bash
2026-01-30 03:15:10 +01:00
openclaw setup
openclaw setup --workspace ~/.openclaw/workspace
2026-04-04 08:48:15 +01:00
openclaw setup --wizard
openclaw setup --non-interactive --mode remote --remote-url wss://gateway-host:18789 --remote-token <token>
2026-01-15 06:12:54 +00:00
```
2026-04-04 08:48:15 +01:00
## Options
- `--workspace <dir>`: agent workspace directory (stored as `agents.defaults.workspace`)
- `--wizard`: run onboarding
- `--non-interactive`: run onboarding without prompts
- `--mode <local|remote>`: onboarding mode
- `--remote-url <url>`: remote Gateway WebSocket URL
- `--remote-token <token>`: remote Gateway token
To run onboarding via setup:
2026-03-15 22:00:13 -07:00
2026-03-16 05:50:48 +00:00
```bash
openclaw setup --wizard
```
2026-04-04 08:48:15 +01:00
Notes:
- Plain `openclaw setup` initializes config + workspace without the full onboarding flow.
- Onboarding auto-runs when any onboarding flags are present (`--wizard`, `--non-interactive`, `--mode`, `--remote-url`, `--remote-token`).