openclaw-never-die

Restart crashed OpenClaw Gateways with health checks every 60 seconds.

6|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/kennyzheng-builds/openclaw-never-die --skill openclaw-never-die
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-never-die
Source: https://github.com/kennyzheng-builds/openclaw-never-die/tree/main
Command: npx skills add https://github.com/kennyzheng-builds/openclaw-never-die --skill openclaw-never-die

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

OpenClaw downtime causes missed messages and manual gateway restarts; this skill ensures uninterrupted 24/7 operation by automatically restarting the gateway, monitoring health every 60 seconds, preventing the Mac from sleeping, and handling log rotation.

Core Features & Use Cases

  • Automatic gateway restart on crash within seconds.
  • Regular health checks every 60 seconds.
  • Sleep prevention and log rotation to maximize uptime.
  • Use Case: run OpenClaw on a Mac Mini for a hands-off, reliable server.

Quick Start

To activate, run: /openclaw-never-die --prevent-sleep and Claude will install and load the three LaunchAgents for gateway, watchdog, and optional sleep prevention.

Frequently Asked Questions about openclaw-never-die

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

FAQPage Schema
How do I keep OpenClaw gateway running 24/7 on macOS without manual restarts?

You can prevent your Mac from sleeping during OpenClaw gateway uptime monitoring by applying sleep prevention logic alongside the watchdog, ensuring the system stays awake for continuous 60-second health checks and automatic service restarts.

How does a watchdog automatically recover a crashed macOS gateway service?

A watchdog recovers a crashed macOS gateway by running a three-agent stack that implements backoff and port-detection logic, checks system resources, and automatically restarts the gateway service when health checks fail.

What's the best way to set up log rotation and crash recovery for a Mac Mini server?

The best way to set up log rotation and crash recovery for a Mac Mini server is deploying a monitoring agent that handles log rotation, applies backoff logic during restarts, and sends Telegram or macOS notifications upon gateway failure.

Does OpenClaw gateway monitoring work with macOS LaunchAgents for automatic restart?

Yes, OpenClaw gateway monitoring works with macOS LaunchAgents by loading three agents for gateway, watchdog, and optional sleep prevention, ensuring automatic service recovery and uninterrupted operation on macOS.

Why does my OpenClaw gateway keep going offline when my Mac sleeps?

Your OpenClaw gateway goes offline when your Mac sleeps because the system suspends active processes, which you can prevent by applying sleep prevention logic and loading a dedicated watchdog LaunchAgent.