ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified utilities Safety 3/5

Gateway Watchdog Xiaoxi

Skill by adminlove520

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/adminlove520/gateway-watchdog-xiaoxi
Or

What This Skill Does

The Gateway Watchdog Xiaoxi is an essential utility for OpenClaw users running persistent services. Unlike standard cron-based monitoring, this skill implements an external watchdog process designed to bypass deadlocks that occur when a gateway process crashes. It proactively monitors the health of your OpenClaw Gateway, ensuring it remains operational 24/7. Upon activation, it verifies the presence of the gateway_watchdog.py script, fetches it from GitHub if missing, and initializes the monitoring process. Once active, the watchdog continuously observes the Gateway process; if the Gateway encounters a fatal error or unexpected exit, the watchdog detects the failure immediately and triggers an automatic restart to restore service continuity.

Installation

To integrate this watchdog into your OpenClaw environment, use the command-line interface provided by the OpenClaw ecosystem:

clawhub install openclaw/skills/skills/adminlove520/gateway-watchdog-xiaoxi

Once installed, you can trigger the primary initialization by running python install.py. This script handles dependency verification, ensuring you have Python 3.7+ installed, and registers the watchdog process to begin monitoring your environment immediately.

Use Cases

This skill is designed for power users and administrators who require high-availability for their OpenClaw deployments. It is ideal for:

  • Production environments where downtime results in significant data loss or missed events.
  • Remote deployments where manual monitoring is impossible.
  • Development environments where the Gateway might be prone to intermittent crashes during testing phases.

Example Prompts

  1. "帮我 7/24 运行"
  2. "设置 watchdog"
  3. "保持 Gateway 运行"

Tips & Limitations

  • Stability First: Never rely on OpenClaw's internal cron tasks to monitor the Gateway. If the Gateway process itself freezes or crashes, it cannot trigger its own recovery event, creating a circular failure. The external watchdog process is the only reliable way to handle these scenarios.
  • Compatibility: Ensure your environment has Python 3.7 or higher installed. The openclaw CLI must be configured correctly in your path to allow the script to manage process lifecycle events.
  • Process Control: You can manually check the health of your setup at any time by running python gateway_watchdog.py status to see the current PID and uptime status of the monitored service.

Metadata

Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-adminlove520-gateway-watchdog-xiaoxi": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#automation#system-monitor#watchdog#high-availability
Safety Score: 3/5

Flags: file-write, file-read, code-execution