← 返回 Skills 市场
dagangtj

Gateway Guardian

作者 dagangtj · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
630
总下载
0
收藏
10
当前安装
1
版本数
在 OpenClaw 中安装
/install gateway-guardian
功能描述
Daemon that monitors OpenClaw gateway, auto-restarts it on failure, and logs events with configurable intervals on macOS and Linux.
使用说明 (SKILL.md)

Gateway Guardian

Watchdog daemon that monitors and auto-restarts OpenClaw gateway.

Usage

./guardian.sh

Run as background daemon:

nohup ./guardian.sh &

Features

  • Monitors gateway process health
  • Auto-restarts on crash
  • Configurable check interval
  • Logs restart events
  • Works on macOS and Linux

Configuration

Edit guardian.sh to customize:

  • CHECK_INTERVAL: seconds between checks (default: 30)
  • MAX_RESTARTS: max restarts before alerting (default: 5)
  • LOG_FILE: where to log events

Requirements

  • OpenClaw installed
  • Bash shell
安全使用建议
Do not run this script unmodified. Specific recommendations: - Don't trust the SKILL.md description alone: the script only performs a single check-and-restart; add a safe loop and interval and implement restart limits before using as a daemon. - Remove or replace the hard-coded alert recipient ("7533987198"). Confirm where alerts should go and that messaging channels are configured and authorized. - Inspect $HOME/.openclaw/openclaw.json and its backup; the script may overwrite your configuration — back up config elsewhere first. - Run the script interactively first (not with nohup &) to observe behavior and logs, and test restart and messaging commands manually to ensure they do what you expect. - Because source is 'unknown', prefer running in a restricted environment or container until you’re confident. If you want this skill to be accepted, request the maintainer update SKILL.md to match the script, expose configurable CHECK_INTERVAL and MAX_RESTARTS, and remove hard-coded external recipients.
功能分析
Type: OpenClaw Skill Name: gateway-guardian Version: 1.0.0 The skill bundle 'gateway-guardian' is designed to monitor and auto-restart the OpenClaw gateway. The `guardian.sh` script uses standard shell commands and the `openclaw` CLI to check gateway health, restart it if necessary, and restore configuration from a local backup. It sends status notifications to a hardcoded Telegram ID via the `openclaw message send` command, which is consistent with its watchdog purpose and not indicative of sensitive data exfiltration. There is no evidence of malicious intent, prompt injection against the agent in `SKILL.md`, or significant vulnerabilities.
能力评估
Purpose & Capability
Name/description claim a cross-platform daemon with configurable check interval and restart limits. The supplied guardian.sh performs a single one-shot check and restart attempt (no loop or interval, no MAX_RESTARTS), so it does not implement the advertised 'daemon' behavior. package.json exists but there is no install/build step — extra metadata that is unnecessary but not harmful. Hard-coded paths under $HOME/.openclaw and use of the openclaw CLI are coherent with a gateway watchdog, but the mismatch between claims and actual capabilities is notable.
Instruction Scope
SKILL.md instructs editing CHECK_INTERVAL, MAX_RESTARTS, LOG_FILE and running as a background daemon; the script exposes GATEWAY_PORT and LOG variables only, and lacks any loop or restart-count logic. The script reads/writes $HOME/.openclaw/openclaw.json and its backup, and invokes openclaw CLI commands (doctor, gateway restart/start, message send). The script sends alerts via openclaw message send to a hard-coded recipient ("7533987198"), which is an unexpected outbound alert target and could forward alerts to an unknown third party if left unchanged.
Install Mechanism
No install spec; this is instruction-only plus a shell script. Nothing is downloaded or written by an installer. Risk is limited to executing the included script.
Credentials
The skill does not request environment variables or external credentials. However, it depends on the user's installed openclaw CLI and existing OpenClaw configuration under $HOME/.openclaw; it will read/overwrite config and copy a backup to the active config. The hard-coded alert recipient is disproportionate — alerts should not be sent to a fixed external recipient without user confirmation.
Persistence & Privilege
The skill itself is not always:true and does not alter system-wide settings, but it writes logs to $HOME/.openclaw/logs/guardian.log and can be run in background via nohup as suggested by SKILL.md. Running it as daemon will create a persistent background process that has access to the user's OpenClaw config and can restart the gateway service.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gateway-guardian
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gateway-guardian 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Gateway Guardian. - Monitors the OpenClaw gateway process and automatically restarts it if it crashes - Configurable health check interval and maximum restarts before alerting - Logs all restart events to a specified file - Runs as a background daemon on macOS and Linux - Easy configuration via variables in guardian.sh
元数据
Slug gateway-guardian
版本 1.0.0
许可证
累计安装 12
当前安装数 10
历史版本数 1
常见问题

Gateway Guardian 是什么?

Daemon that monitors OpenClaw gateway, auto-restarts it on failure, and logs events with configurable intervals on macOS and Linux. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 630 次。

如何安装 Gateway Guardian?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gateway-guardian」即可一键安装,无需额外配置。

Gateway Guardian 是免费的吗?

是的,Gateway Guardian 完全免费(开源免费),可自由下载、安装和使用。

Gateway Guardian 支持哪些平台?

Gateway Guardian 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Gateway Guardian?

由 dagangtj(@dagangtj)开发并维护,当前版本 v1.0.0。

💬 留言讨论