CLI Automation
Use--non-interactive to automate openclaw onboard.
--json does not imply non-interactive mode. Use --non-interactive (and --workspace) for scripts.Baseline non-interactive example
--json for a machine-readable summary.
Provider-specific examples
Gemini example
Gemini example
Z.AI example
Z.AI example
Vercel AI Gateway example
Vercel AI Gateway example
Cloudflare AI Gateway example
Cloudflare AI Gateway example
Moonshot example
Moonshot example
Synthetic example
Synthetic example
OpenCode Zen example
OpenCode Zen example
Custom provider example
Custom provider example
--custom-api-key is optional. If omitted, onboarding checks CUSTOM_API_KEY.Add another agent
Useopenclaw agents add <name> to create a separate agent with its own workspace,
sessions, and auth profiles. Running without --workspace launches the wizard.
agents.list[].nameagents.list[].workspaceagents.list[].agentDir
- Default workspaces follow
~/.openclaw/workspace-<agentId>. - Add
bindingsto route inbound messages (the wizard can do this). - Non-interactive flags:
--model,--agent-dir,--bind,--non-interactive.
Related docs
- Onboarding hub: Onboarding Wizard (CLI)
- Full reference: CLI Onboarding Reference
- Command reference:
openclaw onboard