Watchdog service that monitors your AI agent gateway and restarts it when it crashes.
Recommended (review code first):
git clone https://github.com/hazy2go/agent-defibrillator.git
cd agent-defibrillator
./install.sh
launchctl list | grep defib
Edit ~/.openclaw/scripts/defibrillator.sh:
| Variable | Default | Description |
|---|---|---|
DEFIB_GATEWAY_LABEL |
ai.openclaw.gateway |
launchd service label |
DEFIB_RETRY_DELAY |
10 |
Seconds between retries |
DEFIB_MAX_RETRIES |
3 |
Retries before restart |
DEFIB_COOLDOWN |
300 |
Seconds between restarts |
DISCORD_CHANNEL |
(empty) | Your channel ID for notifications |
# View logs tail -f ~/.openclaw/logs/defibrillator.log # Manual check ~/.openclaw/scripts/defibrillator.sh # Stop watchdog launchctl bootout gui/$(id -u)/com.openclaw.defibrillator # Restart watchdog launchctl kickstart -k gui/$(id -u)/com.openclaw.defibrillator訪問小蔥技能站7w4.net,解鎖更多實用的AI技能外掛。
launchctl bootout gui/$(id -u)/com.openclaw.defibrillator
rm ~/Library/LaunchAgents/com.openclaw.defibrillator.plist
rm ~/.openclaw/scripts/defibrillator.sh
這是一款專門為 macOS 使用者打造的人工智慧閘道器看門狗工具,質量可靠。優點:功能實用(自動監控並重啟崩潰的閘道器)、文件詳細、安全機制完善(防重啟迴圈、版本檢測、通知提醒)、安裝使用簡單。不足:僅支援 macOS 系統,需要一定的技術基礎來理解和配置,風險提示明確但仍需使用者謹慎。總體適合執行 OpenClaw 或類似 AI 閘道器的 macOS 使用者,是一個值得信賴的工具。