Skip to main content

openclaw daemon

网关服务管理命令的旧别名。 openclaw daemon ... 对应于与 openclaw gateway ... 服务命令相同的服务控制界面。

用法

openclaw daemon status
openclaw daemon install
openclaw daemon start
openclaw daemon stop
openclaw daemon restart
openclaw daemon uninstall

子命令

  • status:显示服务安装状态并检测网关健康状态
  • install:安装服务(launchd/systemd/schtasks
  • uninstall:移除服务
  • start:启动服务
  • stop:停止服务
  • restart:重启服务

常用选项

  • status--url--token--password--timeout--no-probe--deep--json
  • install--port--runtime <node|bun>--token--force--json
  • 生命周期命令(uninstall|start|stop|restart):--json
备注:
  • status 会在可能的情况下解析配置的认证 SecretRefs 以进行探测认证。
  • 在 Linux systemd 安装中,status 的令牌偏移检测包含来自 Environment=EnvironmentFile= 单元文件的来源。
  • 当令牌认证需要令牌且 gateway.auth.token 由 SecretRef 管理时,install 会验证该 SecretRef 是否可解析,但不会将解析出的令牌持久化到服务环境元数据中。
  • 如果令牌认证需要令牌且配置的令牌 SecretRef 无法解析,安装将失败。
  • 如果同时配置了 gateway.auth.tokengateway.auth.password,且未设置 gateway.auth.mode,则安装将在明确设置模式之前被阻止。

推荐

请使用 openclaw gateway 查看最新文档和示例。