跳轉到主要內容

openclaw onboard

互動式入門引導精靈(本機或遠端 Gateway 閘道器設定)。

相關指南

範例

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 端點(優先使用搭配 zai/glm-5 的一般 API)。 若您特別需要 GLM Coding Plan 端點,請選擇 zai-coding-globalzai-coding-cn
# Promptless endpoint selection
openclaw onboard --non-interactive \
  --auth-choice zai-coding-global \
  --zai-api-key "$ZAI_API_KEY"

# Other Z.AI endpoint choices:
# --auth-choice zai-coding-cn
# --auth-choice zai-global
# --auth-choice zai-cn
Flow notes:
  • quickstart:最少提示,自動產生 Gateway 閘道器權杖。
  • manual:包含連接埠/綁定/身分驗證的完整提示(advanced 的別名)。
  • 最快開始第一個聊天:openclaw dashboard(控制介面,不進行頻道設定)。
  • 自訂 Provider:可連接任何相容於 OpenAI 或 Anthropic 的端點, 包含未列出的託管 provider。 使用 Unknown 以自動偵測。

常見後續指令

openclaw configure
openclaw agents add <name>
--json 並不代表非互動模式。用於腳本請使用 --non-interactive。 Use --non-interactive for scripts. Use --non-interactive for scripts.