openclaw system
网关的系统级助手:加入系统事件队列、控制心跳和查看在线状态。
常用命令
bash
openclaw system event --text "检查紧急跟进" --mode now
openclaw system heartbeat enable
openclaw system heartbeat last
openclaw system presencesystem event
在主会话中加入系统事件。下次心跳将把它作为提示中的 System: 行注入。使用 --mode now 立即触发心跳;next-heartbeat 等待下次计划时间。
标志:
--text <text>:必需的系统事件文字。--mode <mode>:now或next-heartbeat(默认)。--json:机器可读输出。
system heartbeat last|enable|disable
心跳控制:
last:显示最后一次心跳事件。enable:重新打开心跳(如果它们被禁用了,使用这个)。disable:暂停心跳。
标志:
--json:机器可读输出。
system presence
列出网关知道的当前系统在线状态条目(节点、实例和类似状态行)。
标志:
--json:机器可读输出。
注意
- 需要运行中的网关,可通过当前配置访问(本地或远程)。
- 系统事件是临时的,不会跨重启持久化。