← Back to Skills Marketplace
adminlove520

Gateway Watchdog

by Anonymous · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
402
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install gateway-watchdog-xiaoxi
Description
Monitors and restarts OpenClaw Gateway 24/7 by downloading and running an external watchdog script to ensure continuous operation.
README (SKILL.md)

SKILL.md - OpenClaw Gateway Watchdog

让你的 OpenClaw Gateway 7/24 稳定运行

触发语

  • "帮我 7/24 运行"
  • "让 Gateway 持续运行"
  • "设置 watchdog"
  • "保持 Gateway 运行"

做什么

  1. 检查是否有 gateway_watchdog.py,如果没有则从 GitHub 下载
  2. 执行 python gateway_watchdog.py start
  3. 反馈结果

快速开始

# 一键安装+启动
python install.py

# 或手动
python gateway_watchdog.py start
python gateway_watchdog.py status
python gateway_watchdog.py restart
python gateway_watchdog.py stop

输出示例

用户: 帮我7/24运行
-> 📥 正在下载 gateway_watchdog.py...
-> ✅ 下载完成
-> 🚀 启动 Gateway Watchdog...
-> ✅ Gateway Watchdog 已启动 (PID: 12345)
-> ✅ 完成!Gateway 将 7/24 运行

命令

命令 说明
python install.py 一键安装并启动
python gateway_watchdog.py start 启动 watchdog
python gateway_watchdog.py status 查看状态
python gateway_watchdog.py restart 重启 Gateway
python gateway_watchdog.py stop 停止 watchdog

依赖

  • Python 3.7+
  • openclaw CLI

原理

不要用 OpenClaw 自己的 cron 监控 Gateway。 Gateway 挂了,cron job 根本收不到 wake event,形成死锁。

外部 watchdog:

  • Gateway 挂了 → 外部进程检测到 → 触发重启 → 恢复运行

🦞 小溪的作品

Usage Guidance
This skill's behavior is coherent with a watchdog but has two things you should verify before installing: (1) the install script downloads an executable Python script from raw.githubusercontent.com — confirm the GitHub repository and its commit history are trustworthy and review the fetched script to ensure it hasn't been tampered with; (2) the watchdog runs continuously and can restart the gateway, so run it with least privileges (not as root) and in a controlled environment if possible. If you prefer to avoid runtime downloads, use the included gateway_watchdog.py after reviewing its source, and do not run install.py that fetches remote code. Finally, ensure the openclaw CLI is legitimate and the system paths used by the script point to the intended binaries.
Capability Analysis
Type: OpenClaw Skill Name: gateway-watchdog-xiaoxi Version: 1.0.0 The skill is classified as suspicious primarily due to a significant supply chain vulnerability. The `install.py` script downloads the core `gateway_watchdog.py` file directly from an unverified GitHub raw content URL (`https://raw.githubusercontent.com/adminlove520/openclaw-gateway-watchdog-v2/main/gateway_watchdog.py`). This means that if the external GitHub repository is compromised or the maintainer pushes malicious code, the user's system will download and execute it without any integrity checks. While the `gateway_watchdog.py` script itself appears to perform its stated function (monitoring and restarting the OpenClaw Gateway) and does not show explicit malicious intent, the installation method introduces a critical security risk.
Capability Assessment
Purpose & Capability
The name/description match the code and instructions: the scripts check gateway status and restart the OpenClaw gateway. The included files implement start/stop/status/restart and a long-running watchdog loop; none of the requested resources are unrelated to that purpose.
Instruction Scope
SKILL.md instructs the agent to download gateway_watchdog.py if missing and then run it (or run install.py which downloads the script). Downloading and executing an external Python script is outside the agent's runtime-only scope because it introduces new executable code at runtime. This is explainable for an installer, but it means the agent will fetch and run remote code — review the remote source before allowing this.
Install Mechanism
There is no package manager install spec; install.py fetches a single file from raw.githubusercontent.com (a well-known host). Using raw.githubusercontent.com is preferable to an arbitrary IP/shortener, but the target repository owner (adminlove520/openclaw-gateway-watchdog-v2) is not verified in the skill metadata. Also the skill bundle already includes gateway_watchdog.py, making the download step redundant and potentially a channel for fetching different code.
Credentials
The skill does not request credentials or config paths. The runtime code reads common system env vars (APPDATA, LOCALAPPDATA) to search for openclaw locations — this is proportional to locating the CLI. No unrelated secrets or broad credential access are requested.
Persistence & Privilege
The watchdog writes files (config, log, pid) in its script directory and launches a persistent background process that restarts the gateway; always:false so it won't be force-included. Persisting a background process is reasonable for a watchdog but increases attack surface if the running code can be updated remotely or replaced on disk.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gateway-watchdog-xiaoxi
  3. After installation, invoke the skill by name or use /gateway-watchdog-xiaoxi
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
OpenClaw Gateway Watchdog skill initial release. - Enables 24/7 stable running of OpenClaw Gateway with simple commands. - Automatically downloads and starts `gateway_watchdog.py` if missing. - Provides installation and management commands (start, status, restart, stop). - Shares sample output for user interactions. - Does not rely on OpenClaw's cron; uses an external watchdog process for robustness.
Metadata
Slug gateway-watchdog-xiaoxi
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Gateway Watchdog?

Monitors and restarts OpenClaw Gateway 24/7 by downloading and running an external watchdog script to ensure continuous operation. It is an AI Agent Skill for Claude Code / OpenClaw, with 402 downloads so far.

How do I install Gateway Watchdog?

Run "/install gateway-watchdog-xiaoxi" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Gateway Watchdog free?

Yes, Gateway Watchdog is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Gateway Watchdog support?

Gateway Watchdog is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Gateway Watchdog?

It is built and maintained by Anonymous (@adminlove520); the current version is v1.0.0.

💬 Comments