docs/cli/system.md
openclaw systemSystem-level helpers for the Gateway: enqueue system events, control heartbeats, and view presence.
All system subcommands use Gateway RPC and accept the shared client flags:
--url <url>--token <token>--timeout <ms>--expect-finalopenclaw system event --text "Check for urgent follow-ups" --mode now
openclaw system event --text "Check for urgent follow-ups" --url ws://127.0.0.1:18789 --token "$OPENCLAW_GATEWAY_TOKEN"
openclaw system heartbeat enable
openclaw system heartbeat last
openclaw system presence
system eventEnqueue a system event on the main session. The next heartbeat will inject
it as a System: line in the prompt. Use --mode now to trigger the heartbeat
immediately; next-heartbeat waits for the next scheduled tick.
Flags:
--text <text>: required system event text.--mode <mode>: now or next-heartbeat (default).--json: machine-readable output.--url, --token, --timeout, --expect-final: shared Gateway RPC flags.system heartbeat last|enable|disableHeartbeat controls:
last: show the last heartbeat event.enable: turn heartbeats back on (use this if they were disabled).disable: pause heartbeats.Flags:
--json: machine-readable output.--url, --token, --timeout, --expect-final: shared Gateway RPC flags.system presenceList the current system presence entries the Gateway knows about (nodes, instances, and similar status lines).
Flags:
--json: machine-readable output.--url, --token, --timeout, --expect-final: shared Gateway RPC flags.