openclaw setup
Initialize ~/.openclaw/openclaw.json and the agent workspace.
Related:
- Getting started: Getting started
- CLI onboarding: Onboarding (CLI)
Examples
Options
--workspace <dir>: agent workspace directory (stored asagents.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
- Plain
openclaw setupinitializes config + workspace without the full onboarding flow. - Onboarding auto-runs when any onboarding flags are present (
--wizard,--non-interactive,--mode,--remote-url,--remote-token).