OpenClaw.app 不再捆绑 Node/Bun 或 Gateway 运行时。macOS 应用 期望使用一个外部安装的Documentation Index
Fetch the complete documentation index at: https://openclaw.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
openclaw CLI,不会将 Gateway 作为
子进程启动,并且会管理一个按用户区分的 launchd 服务,以保持 Gateway
持续运行(如果已有本地 Gateway 在运行,则会连接到现有实例)。
安装 CLI(本地模式必需)
Mac 上默认的运行时是 Node 24。当前22.14+ 的 Node 22 LTS 仍可用于兼容性。然后全局安装 openclaw:
launchd(将 Gateway 作为 LaunchAgent)
标签:ai.openclaw.gateway(或ai.openclaw.<profile>;旧的com.openclaw.*可能仍然存在)
~/Library/LaunchAgents/ai.openclaw.gateway.plist(或~/Library/LaunchAgents/ai.openclaw.<profile>.plist)
- macOS 应用在本地模式下负责 LaunchAgent 的安装/更新。
- CLI 也可以安装它:
openclaw gateway install。
- “OpenClaw Active” 会启用/禁用 LaunchAgent。
- 退出应用不会停止 gateway(launchd 会让它继续运行)。
- 如果配置端口上已经有一个 Gateway 在运行,应用会连接到它 而不是启动一个新的实例。
- launchd 标准输出/错误:
/tmp/openclaw/openclaw-gateway.log