跳转到主要内容

openclaw daemon

Gateway 网关 服务管理命令的旧别名。 openclaw daemon ... 映射到与 openclaw gateway ... 服务命令相同的服务控制界面。

用法

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

子命令

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

通用选项

  • status--url--token--password--timeout--no-probe--require-rpc--deep--json
  • install--port--runtime <node|bun>--token--force--json
  • lifecycle (uninstall|start|stop|restart):--json
备注:
  • status 在可能的情况下解析探针身份验证配置的 SecretRefs。
  • 如果在此命令路径中未解析所需的身份验证 SecretRef,则在探针连接/身份验证失败时 daemon status --json 会报告 rpc.authWarning;请显式传递 --token/--password 或先解析密钥源。
  • 如果探针成功,将抑制未解析的 auth-ref 警告以避免误报。
  • 在 Linux systemd 安装上,status 令牌漂移检查包括 Environment=EnvironmentFile= 单元源。
  • 当令牌身份验证需要令牌且 gateway.auth.token 由 SecretRef 管理时,install 会验证 SecretRef 是否可解析,但不会将解析出的令牌持久化到服务环境元数据中。
  • 如果令牌身份验证需要令牌但配置的令牌 SecretRef 未解析,则安装将失败并关闭。
  • 如果同时配置了 gateway.auth.tokengateway.auth.password 且未设置 gateway.auth.mode,则安装将被阻止,直到显式设置模式。

首选

请使用 openclaw gateway 查看当前文档和示例。
本页面源自 openclaw/openclaw,由 BeaversLab 翻译,遵循 MIT 协议 发布。
Last modified on March 27, 2026