Openclaw Health Guardian

name: openclaw-health-guardian description: Deploy OpenClaw health monitoring with auto-restart, cooldown (180s), and rate limiting (5/hour). Use when: (1) setting up OpenClaw health checks, (2) auto-restarting failed Gateway, (3) monitoring OpenClaw status, (4) deploying health daemon on macOS. --- metadata: { "openclaw": { "emoji": "๐Ÿ› ๏ธ", "requires": { "bins": ["node"] } }, } ---

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Openclaw Health Guardian" with this command: npx skills add zhilshi/openclaw-health-guardian

name: openclaw-health-guardian description: Deploy OpenClaw health monitoring with auto-restart, cooldown (180s), and rate limiting (5/hour). Use when: (1) setting up OpenClaw health checks, (2) auto-restarting failed Gateway, (3) monitoring OpenClaw status, (4) deploying health daemon on macOS.

metadata: { "openclaw": { "emoji": "๐Ÿ› ๏ธ", "requires": { "bins": ["node"] } }, }

OpenClaw Health Guardian

Auto-monitor and recover OpenClaw Gateway with intelligent rate limiting.

Quick Start

Install health guardian:

bash ~/.openclaw/skills/openclaw-health-guardian/scripts/install.sh

Verify installation:

launchctl list | grep openclaw

When to Use

  • Gateway frequently stops responding
  • Need automatic recovery without manual intervention
  • Running OpenClaw on macOS with LaunchAgent support
  • Want cooldown protection against restart loops

Features

FeatureValueDescription
Check Interval5 minutesLaunchAgent StartInterval
Cooldown180 secondsMinimum between restarts
Rate Limit5/hourMax restarts per hour
HTTP Timeout5 secondscurl --max-time
Auto NotifyTerminal popupAppleScript alert on failure

Workflow

  1. Install guardian

    bash ~/.openclaw/skills/openclaw-health-guardian/scripts/install.sh
    
  2. Verify service running

    launchctl list | grep com.openclaw.healthcheck
    
  3. Monitor logs

    tail -f ~/.openclaw/logs/health-check.log
    
  4. Test manually (optional)

    bash ~/.openclaw/scripts/openclaw-health-check.sh
    

Commands

CommandPurpose
launchctl list | grep openclawCheck service status
tail -f ~/.openclaw/logs/health-check.logView real-time logs
bash ~/.openclaw/scripts/openclaw-health-check.shManual check
launchctl unload ~/Library/LaunchAgents/com.openclaw.healthcheck.plistStop service
launchctl load ~/Library/LaunchAgents/com.openclaw.healthcheck.plistStart service

File Structure

After installation:

~/.openclaw/
โ”œโ”€โ”€ scripts/
โ”‚   โ””โ”€โ”€ openclaw-health-check.sh    # Main script
โ”œโ”€โ”€ state/
โ”‚   โ”œโ”€โ”€ last_restart                # Timestamp
โ”‚   โ”œโ”€โ”€ restart_count               # Hourly counter
โ”‚   โ””โ”€โ”€ hour_marker                 # Hour tracking
โ””โ”€โ”€ logs/
    โ”œโ”€โ”€ health-check.log            # Main log
    โ”œโ”€โ”€ health-check-daemon.log     # Daemon stdout
    โ””โ”€โ”€ health-check-daemon-error.log # Daemon stderr

~/Library/LaunchAgents/
โ””โ”€โ”€ com.openclaw.healthcheck.plist  # LaunchAgent config

Log Examples

Normal:

[2026-03-16 10:28:47] No issues found. OpenClaw is healthy!

Cooldown triggered:

[2026-03-16 10:30:05] ๅ†ทๅดๆœŸๅ†… (120s/180s)๏ผŒ่ทณ่ฟ‡้‡ๅฏๆ“ไฝœ

Rate limit triggered:

[2026-03-16 10:30:05] ๆœฌๅฐๆ—ถๅทฒ่พพ้‡ๅฏไธŠ้™(5ๆฌก)๏ผŒ่ทณ่ฟ‡

Restart executed:

[2026-03-16 10:30:02] ๅทฒ่ฎฐๅฝ•้‡ๅฏไบ‹ไปถ (ๅ†ทๅด: 180s, ้™ๆต: 5/ๅฐๆ—ถ)
[2026-03-16 10:30:05] Gateway restart completed successfully

Uninstall

# Stop and remove service
launchctl unload ~/Library/LaunchAgents/com.openclaw.healthcheck.plist
rm ~/Library/LaunchAgents/com.openclaw.healthcheck.plist

# Remove scripts and logs
rm ~/.openclaw/scripts/openclaw-health-check.sh
rm -rf ~/.openclaw/state/
rm ~/.openclaw/logs/health-check*.log

Requirements

  • macOS 10.14+
  • OpenClaw installed
  • User home directory write permissions

References

  • references/technical-details.md - Implementation details
  • references/troubleshooting.md - Common issues

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Claw Desktop Pet - Enterprise-grade 7x24 AI Assistant

Enterprise-grade 24/7 desktop AI assistant with system-level fault tolerance, auto-restart, performance monitoring, intelligent voice, and resource optimizat...

Registry SourceRecently Updated
1.7K4Profile unavailable
General

API Health Monitor

Parses recent OpenClaw session logs for LLM API errors and returns a structured health report.

Registry SourceRecently Updated
1010Profile unavailable
Automation

Web Gateway

Minimal Flask-based multi-user chat interface enabling OpenClaw HTTP integration with persistent UI state and optional Google Maps support.

Registry SourceRecently Updated
3470Profile unavailable
Automation

Agent Kanban

OpenClaw Agent Dashboard - A Bloomberg Terminal-style web interface for real-time monitoring of all Agent status, session history, and session file sizes. Us...

Registry SourceRecently Updated
3360Profile unavailable