openclaw-self-healing banner
Ramsbaby Ramsbaby

openclaw-self-healing

AI community intermediate

Description

**Stop getting paged at 3 AM. Let AI fix your crashes automatically.**

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

🦞 OpenClaw Self-Healing System

*Autonomous AI-Powered Recovery for Any Service*

**Stop getting paged at 3 AM. Let AI fix your crashes automatically.**

[](https://github.com/Ramsbaby/openclaw-self-healing/releases) [](#-quick-start) [](LICENSE) [](https://github.com/ramsbaby/openclaw-self-healing/stargazers) [](README.md) [](README.md) [](README.md) [](https://github.com/Ramsbaby/openclaw-self-healing/actions/workflows/lint.yml)

[πŸš€ Quick Start](#-quick-start) Β· [🎬 Demo](#-demo) Β· [πŸ—οΈ Architecture](#️-architecture) Β· [πŸ“– Docs](docs/)

[](README.ko.md)

If this saved your night πŸŒ™, a ⭐ helps others find it.


🎬 Demo

*4-tier recovery in action: KeepAlive β†’ Watchdog β†’ AI Doctor β†’ Alert*


πŸ”₯ Why This Exists

**This system wraps any long-running service with autonomous crash recovery.** OpenClaw Gateway is the primary example β€” a self-hosted AI gateway for Claude/GPT-4 routing β€” but the watchdog/recovery architecture adapts to any service.

Your service crashes at midnight. A basic watchdog restarts it β€” but what if the config is corrupted? The API rate limit hit? A dependency broken?

**Simple restart = crash loop.** You get paged. Your weekend is ruined.

**This system doesn't just restart β€” it understands and fixes root causes.**


πŸ†š Why openclaw-self-healing vs. rolling your own

Feature Basic Watchdog supervisord openclaw-self-healing
Auto-restart on crash βœ… βœ… βœ…
HTTP health polling ❌ ❌ βœ…
Crash loop prevention (backoff) ❌ partial βœ… exponential backoff
Config validation before start ❌ ❌ βœ… Level 0 preflight
AI root-cause diagnosis ❌ ❌ βœ… Claude / GPT-4 / Gemini / Ollama
Auto-fix corrupted config ❌ ❌ βœ…
Multi-channel alerts (Discord/Slack/Telegram) ❌ ❌ βœ…
Prometheus metrics ❌ ❌ βœ…
Works on macOS + Linux + Docker partial βœ… βœ…
Zero vendor lock-in βœ… βœ… βœ… MIT

...