Openclaw-config gateway-restart

Gateway Restart Skill ๐Ÿ”„

install
source ยท Clone the upstream repo
git clone https://github.com/TechNickAI/openclaw-config
Claude Code ยท Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/TechNickAI/openclaw-config "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/gateway-restart" ~/.claude/skills/technickai-openclaw-config-gateway-restart && rm -rf "$T"
OpenClaw ยท Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/TechNickAI/openclaw-config "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/gateway-restart" ~/.openclaw/skills/technickai-openclaw-config-gateway-restart && rm -rf "$T"
manifest: skills/gateway-restart/SKILL.md
source content

Gateway Restart Skill ๐Ÿ”„

Gracefully restarts the OpenClaw gateway by waiting for active queries and cron jobs to complete before restarting. Prevents mid-conversation interruptions.

Users say things like:

  • "Restart the gateway gracefully"
  • "Is the gateway busy right now?"
  • "Restart the gateway on the remote machine"

Commands

  • gateway-restart restart
    โ€” Wait for active work to finish, then restart
  • gateway-restart status
    โ€” Check if anything is actively running (no restart)
  • gateway-restart restart --force
    โ€” Skip waiting, restart immediately
  • gateway-restart restart --timeout 300
    โ€” Custom wait timeout in seconds (default: 300)
  • gateway-restart restart --remote <host>
    โ€” Restart a remote fleet machine via SSH

Detection Strategy

  1. Session age check โ€” Query
    openclaw gateway call status --json
    for sessions updated in the last 60 seconds
  2. Log confirmation โ€” If sessions look active, parse today's gateway log for unmatched
    inbound web message
    without a subsequent
    auto-reply sent
  3. Cron job check โ€” Query
    openclaw cron list --json
    for currently-running jobs

Setup

No setup required. Uses

openclaw
CLI commands available on any OpenClaw installation.