Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
openclaw onboard
Interactive onboarding for local or remote Gateway setup.
Related guides
CLI onboarding hub
Walkthrough of the interactive CLI flow.
Onboarding overview
How OpenClaw onboarding fits together.
CLI setup reference
Outputs, internals, and per-step behavior.
CLI automation
Non-interactive flags and scripted setups.
macOS app onboarding
Onboarding flow for the macOS menu bar app.
Examples
--flow import uses plugin-owned migration providers such as Hermes. It only runs against a fresh OpenClaw setup; if existing config, credentials, sessions, or workspace memory/identity files are present, reset or choose a fresh setup before importing.
--modern starts the Crestodian conversational onboarding preview. Without
--modern, openclaw onboard keeps the classic onboarding flow.
For plaintext private-network ws:// targets (trusted networks only), set
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=1 in the onboarding process environment.
There is no openclaw.json equivalent for this client-side transport
break-glass.
Non-interactive custom provider:
--custom-api-key is optional in non-interactive mode. If omitted, onboarding checks CUSTOM_API_KEY.
OpenClaw marks common vision model IDs as image-capable automatically. Pass --custom-image-input for unknown custom vision IDs, or --custom-text-input to force text-only metadata.
LM Studio also supports a provider-specific key flag in non-interactive mode:
--custom-base-url defaults to http://127.0.0.1:11434. --custom-model-id is optional; if omitted, onboarding uses Ollama’s suggested defaults. Cloud model IDs such as kimi-k2.5:cloud also work here.
Store provider keys as refs instead of plaintext:
--secret-input-mode ref, onboarding writes env-backed refs instead of plaintext key values.
For auth-profile backed providers this writes keyRef entries; for custom providers this writes models.providers.<id>.apiKey as an env ref (for example { source: "env", provider: "default", id: "CUSTOM_API_KEY" }).
Non-interactive ref mode contract:
- Set the provider env var in the onboarding process environment (for example
OPENAI_API_KEY). - Do not pass inline key flags (for example
--openai-api-key) unless that env var is also set. - If an inline key flag is passed without the required env var, onboarding fails fast with guidance.
--gateway-auth token --gateway-token <token>stores a plaintext token.--gateway-auth token --gateway-token-ref-env <name>storesgateway.auth.tokenas an env SecretRef.--gateway-tokenand--gateway-token-ref-envare mutually exclusive.--gateway-token-ref-envrequires a non-empty env var in the onboarding process environment.- With
--install-daemon, when token auth requires a token, SecretRef-managed gateway tokens are validated but not persisted as resolved plaintext in supervisor service environment metadata. - With
--install-daemon, if token mode requires a token and the configured token SecretRef is unresolved, onboarding fails closed with remediation guidance. - With
--install-daemon, if bothgateway.auth.tokenandgateway.auth.passwordare configured andgateway.auth.modeis unset, onboarding blocks install until mode is set explicitly. - Local onboarding writes
gateway.mode="local"into the config. If a later config file is missinggateway.mode, treat that as config damage or an incomplete manual edit, not as a valid local-mode shortcut. --allow-unconfiguredis a separate gateway runtime escape hatch. It does not mean onboarding may omitgateway.mode.
- Unless you pass
--skip-health, onboarding waits for a reachable local gateway before it exits successfully. --install-daemonstarts the managed gateway install path first. Without it, you must already have a local gateway running, for exampleopenclaw gateway run.- If you only want config/workspace/bootstrap writes in automation, use
--skip-health. - If you manage workspace files yourself, pass
--skip-bootstrapto setagents.defaults.skipBootstrap: trueand skip creatingAGENTS.md,SOUL.md,TOOLS.md,IDENTITY.md,USER.md,HEARTBEAT.md, andBOOTSTRAP.md. - On native Windows,
--install-daemontries Scheduled Tasks first and falls back to a per-user Startup-folder login item if task creation is denied.
- Choose Use secret reference when prompted.
- Then choose either:
- Environment variable
- Configured secret provider (
fileorexec)
- Onboarding performs a fast preflight validation before saving the ref.
- If validation fails, onboarding shows the error and lets you retry.
Non-interactive Z.AI endpoint choices
--auth-choice zai-api-key auto-detects the best Z.AI endpoint for your key (prefers the general API with zai/glm-5.1). If you specifically want the GLM Coding Plan endpoints, pick zai-coding-global or zai-coding-cn.Flow notes
Flow types
Flow types
quickstart: minimal prompts, auto-generates a gateway token.manual: full prompts for port, bind, and auth (alias ofadvanced).import: runs a detected migration provider, previews the plan, then applies after confirmation.
Provider prefiltering
Provider prefiltering
When an auth choice implies a preferred provider, onboarding prefilters the default-model and allowlist pickers to that provider. For Volcengine and BytePlus, this also matches the coding-plan variants (
volcengine-plan/*, byteplus-plan/*).If the preferred-provider filter yields no loaded models yet, onboarding falls back to the unfiltered catalog instead of leaving the picker empty.Web-search follow-ups
Web-search follow-ups
Some web-search providers trigger provider-specific follow-up prompts:
- Grok can offer optional
x_searchsetup with the sameXAI_API_KEYand anx_searchmodel choice. - Kimi can ask for the Moonshot API region (
api.moonshot.aivsapi.moonshot.cn) and the default Kimi web-search model.
Other behaviors
Other behaviors
- Local onboarding DM scope behavior: CLI setup reference.
- Fastest first chat:
openclaw dashboard(Control UI, no channel setup). - Custom provider: connect any OpenAI or Anthropic compatible endpoint, including hosted providers not listed. Use Unknown to auto-detect.
- If Hermes state is detected, onboarding offers a migration flow. Use Migrate for dry-run plans, overwrite mode, reports, and exact mappings.
Common follow-up commands
--json does not imply non-interactive mode. Use --non-interactive for scripts.