跳转到主要内容

openclaw onboard

交互式新手引导向导(本地或远程 Gateway 网关设置)。

12. 相关指南

示例

openclaw onboard
openclaw onboard --flow quickstart
openclaw onboard --flow manual
openclaw onboard --mode remote --remote-url ws://gateway-host:18789
非交互式自定义 provider:
openclaw onboard --non-interactive \
  --auth-choice custom-api-key \
  --custom-base-url "https://llm.example.com/v1" \
  --custom-model-id "foo-large" \
  --custom-api-key "$CUSTOM_API_KEY" \
  --custom-compatibility openai
在非交互式模式下,--custom-api-key 是可选的。 如果未提供,onboarding 会检查 CUSTOM_API_KEY 非交互式 Z.AI 端点选项: 注意:--auth-choice zai-api-key 现在会为你的密钥自动检测最佳 Z.AI 端点(优先使用通用 API 并搭配 zai/glm-5)。 如果你明确希望使用 GLM Coding Plan 端点,请选择 zai-coding-globalzai-coding-cn
# 无需提示的端点选择
openclaw onboard --non-interactive \
  --auth-choice zai-coding-global \
  --zai-api-key "$ZAI_API_KEY"

# 其他 Z.AI 端点选项:
# --auth-choice zai-coding-cn
# --auth-choice zai-global
# --auth-choice zai-cn
  1. 流程说明:
  • quickstart:最少提示,自动生成 Gateway 网关令牌。
  • manual:完整的端口/绑定/认证提示(advanced 的别名)。
  • 最快开始聊天:openclaw dashboard(控制 UI,无需渠道设置)。
  • 自定义 Provider:连接任何兼容 OpenAI 或 Anthropic 的端点, 包括未列出的托管 provider。 使用 Unknown 进行自动检测。

48. 常见后续命令

49. openclaw configure
openclaw agents add <name>
  1. --json 并不意味着非交互模式。 Use --non-interactive for scripts.