OpenClaw 有两条引导路径,均配置 Auth、Gateway 和可选 Channel。

路径对比

CLI 引导macOS App 引导
平台macOS/Linux/Windows(WSL2)仅 macOS
界面终端向导可视化 UI
适合服务器/无头/完全控制桌面 Mac
自动化--non-interactive仅手动
命令openclaw onboard启动 App

推荐大多数用户使用 CLI 引导。

引导配置内容

  1. 模型提供商和 Auth(API Key/OAuth/Setup Token)
  2. 工作区(Agent 文件、引导模板、记忆)
  3. Gateway(端口、绑定地址、Auth 模式)
  4. Channels(可选)
  5. Daemon(可选,后台自动启动)

CLI 引导

openclaw onboard
# 同时安装后台服务
openclaw onboard --install-daemon

macOS App 引导

打开 OpenClaw.app,首次运行向导自动启动。

自定义/未列出的提供商

选择 Custom Provider,填写:

  • API 兼容模式(OpenAI/Anthropic 兼容或自动检测)
  • Base URL 和 API Key
  • Model ID 和可选别名

相关

  • concepts/start-wizard — CLI 引导完整参考
  • concepts/start-getting-started — 快速开始