openclaw system

Gateway 的系统级辅助工具:排入系统事件、控制心跳、查看在线状态。

常用命令

openclaw system event --text "Check for urgent follow-ups" --mode now
openclaw system heartbeat enable
openclaw system heartbeat last
openclaw system presence

system event

main session 上排入一个系统事件。下一次心跳会把它作为 System: 行注入到 prompt 中。用 --mode now 立即触发心跳;next-heartbeat 则等下一次计划的 tick。

参数:

  • --text <text>:必填,系统事件文本。
  • --mode <mode>nownext-heartbeat(默认)。
  • --json:机器可读输出。

system heartbeat last|enable|disable

心跳控制:

  • last:查看最近一次心跳事件。
  • enable:重新开启心跳(如果之前被禁用了)。
  • disable:暂停心跳。

参数:

  • --json:机器可读输出。

system presence

列出 Gateway 当前已知的系统在线条目(节点、实例及类似的状态行)。

参数:

  • --json:机器可读输出。

注意事项

  • 需要当前配置能访问到正在运行的 Gateway(本地或远程)。
  • 系统事件是临时性的,不会在重启后持久化。