macOS 上的 Gateway 网关(外部 launchd)
OpenClaw.app 不再捆绑 Node/Bun 或 Gateway 网关运行时。macOS 应用期望有一个外部的openclaw CLI 安装,不会将 Gateway 网关作为子进程启动,而是管理一个每用户的 launchd 服务来保持 Gateway 网关运行(或者如果已有本地 Gateway 网关正在运行,则连接到现有的)。
安装 CLI(本地模式必需)
你需要在 Mac 上安装 Node 22+,然后全局安装openclaw:
Launchd(Gateway 网关作为 LaunchAgent)
标签:bot.molt.gateway(或bot.molt.<profile>;旧版com.openclaw.*可能仍然存在)
~/Library/LaunchAgents/bot.molt.gateway.plist(或~/Library/LaunchAgents/bot.molt.<profile>.plist)
- macOS 应用在本地模式下拥有 LaunchAgent 的安装/更新权限。
- CLI 也可以安装它:
openclaw gateway install。
- “OpenClaw Active”启用/禁用 LaunchAgent。
- 应用退出不会停止 Gateway 网关(launchd 保持其存活)。
- 如果 Gateway 网关已经在配置的端口上运行,应用会连接到它而不是启动新的。
- launchd stdout/err:
/tmp/openclaw/openclaw-gateway.log