← 返回 Skills 市场
402
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install gateway-watchdog-xiaoxi
功能描述
Monitors and restarts OpenClaw Gateway 24/7 by downloading and running an external watchdog script to ensure continuous operation.
使用说明 (SKILL.md)
SKILL.md - OpenClaw Gateway Watchdog
让你的 OpenClaw Gateway 7/24 稳定运行
触发语
- "帮我 7/24 运行"
- "让 Gateway 持续运行"
- "设置 watchdog"
- "保持 Gateway 运行"
做什么
- 检查是否有
gateway_watchdog.py,如果没有则从 GitHub 下载 - 执行
python gateway_watchdog.py start - 反馈结果
快速开始
# 一键安装+启动
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 挂了 → 外部进程检测到 → 触发重启 → 恢复运行
🦞 小溪的作品
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gateway-watchdog-xiaoxi - 安装完成后,直接呼叫该 Skill 的名称或使用
/gateway-watchdog-xiaoxi触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
Gateway Watchdog 是什么?
Monitors and restarts OpenClaw Gateway 24/7 by downloading and running an external watchdog script to ensure continuous operation. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 402 次。
如何安装 Gateway Watchdog?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gateway-watchdog-xiaoxi」即可一键安装,无需额外配置。
Gateway Watchdog 是免费的吗?
是的,Gateway Watchdog 完全免费(开源免费),可自由下载、安装和使用。
Gateway Watchdog 支持哪些平台?
Gateway Watchdog 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gateway Watchdog?
由 Anonymous(@adminlove520)开发并维护,当前版本 v1.0.0。
推荐 Skills