{"repo":"Ramsbaby/openclaw-self-healing","free":true,"listed":false,"github":"https://github.com/Ramsbaby/openclaw-self-healing","clone":"git clone https://github.com/Ramsbaby/openclaw-self-healing.git","description":"AI-powered self-healing system for OpenClaw Gateway • 4-tier autonomous recovery • macOS & Linux","language":"Shell","stars":40,"topics":["devops","self-healing","automation","watchdog","claude-code","anthropic","ai-agents","hooks","infrastructure","resilience"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"OpenClaw Self-Healing System Autonomous crash recovery for long-running services Stop getting paged at 3 AM. Let the machine try the obvious fixes first. Quick Start · How It Works · Known Gaps · Docs --- What this is A set of shell scripts that wrap a long-running service with a five-level recovery ladder. A plain watchdog restarts a crashed process; that is enough right up until the crash is caused by something a restart cannot fix — a corrupted config, a missing key, a broken dependency. Then the restart becomes a crash loop and you get paged anyway. This system adds two things a plain watchdog does not have: validation before start (Level 0) and an AI diagnosis session (Level 3) that reads the actual logs and config before attempting a repair. If both fail, it escalates to a human with the log paths attached. It was built for OpenClaw Gateway and is tested against it. The architecture is not specific to OpenClaw — the scripts take the service command, port and paths from environment variables — but adapting it to another service currently means editing the scripts, not flipping a config switch. --- Demo Recovery ladder in action: KeepAlive → Watchdog → AI diagnosis → Alert --- How it works The five levels Level Component Triggered by What it does --- --- --- --- 0 gateway-preflight.sh Every cold start Validates the gateway binary, node , .env keys and JSON configs, backs up known-good configs, then exec s the gateway. On failure: opens an AI recovery session and backs off","default_branch":null,"files":null,"tree":[],"storefront":"/r/Ramsbaby","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Ramsbaby/openclaw-self-healing/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}