← Back to Skills Marketplace
630
Downloads
0
Stars
10
Active Installs
1
Versions
Install in OpenClaw
/install gateway-guardian
Description
Daemon that monitors OpenClaw gateway, auto-restarts it on failure, and logs events with configurable intervals on macOS and Linux.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gateway-guardian - After installation, invoke the skill by name or use
/gateway-guardian - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Frequently Asked Questions
What is Gateway Guardian?
Daemon that monitors OpenClaw gateway, auto-restarts it on failure, and logs events with configurable intervals on macOS and Linux. It is an AI Agent Skill for Claude Code / OpenClaw, with 630 downloads so far.
How do I install Gateway Guardian?
Run "/install gateway-guardian" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Gateway Guardian free?
Yes, Gateway Guardian is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Gateway Guardian support?
Gateway Guardian is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Gateway Guardian?
It is built and maintained by dagangtj (@dagangtj); the current version is v1.0.0.
More Skills