myclaw-guardian

Detect OpenClaw Gateway downtime and trigger doctor --fix and git rollback recovery.

572|106|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/LeoYeAI/openclaw-guardian --skill myclaw-guardian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: myclaw-guardian
Source: https://github.com/LeoYeAI/openclaw-guardian/tree/main
Command: npx skills add https://github.com/LeoYeAI/openclaw-guardian --skill myclaw-guardian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, git, pgrep, pkill, curl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

OpenClaw Gateway outages waste uptime while manual recovery is slow and error-prone, so this Skill continuously monitors health and takes automated recovery actions when the Gateway goes down.

Core Features & Use Cases

  • Auto-monitoring: checks Gateway status every 30 seconds and detects failures quickly, suitable for always-on deployments.
  • Self-repair with fallbacks: runs openclaw doctor --fix up to 3 times and then performs a git-based rollback to the last stable commit, ideal for environments where fixes may not always succeed.
  • Daily workspace snapshots & alerting: makes daily git commits for rollback safety and can send Discord webhook notifications on failures/recovery, useful for teams that need traceability and operational awareness.

Quick Start

Tell your OpenClaw agent: "Help me install openclaw-guardian to harden my gateway" .

Frequently Asked Questions about myclaw-guardian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor OpenClaw Gateway health and restart it automatically when it goes down?

You can monitor OpenClaw Gateway health by running scheduled checks via a bash script that detects downtime and automatically triggers recovery actions like running openclaw doctor --fix to restart the service.

What is the best way to automatically rollback my self-hosted gateway to a stable commit after a failed update?

The best way to rollback your gateway is using a git reset --hard to a stable commit. This automated recovery process triggers after remediation attempts fail, restoring your workspace to its last daily snapshot.

Does OpenClaw guardian require a specific environment setup to run self-healing scripts?

Yes, the guardian requires a git-enabled workspace and standard command-line utilities including bash, pgrep, pkill, and curl to execute health checks, apply doctor-based remediation, and perform git rollbacks.

Can I send Discord alerts when my OpenClaw Gateway experiences downtime or recovery?

Yes, you can send Discord alerts by configuring a DISCORD_WEBHOOK_URL. The monitoring script will send notifications to your Discord channel whenever a gateway failure or successful recovery event occurs.

What happens when openclaw doctor --fix fails to repair the gateway during an automated health check?

When openclaw doctor --fix fails up to 3 times, the guardian automatically performs a git-based rollback using git reset --hard to restore the last stable commit, ensuring gateway availability.