openclaw-watchdog▌
abdullah4ai/openclaw-watchdog · updated Apr 8, 2026
Description: Self-healing monitoring system for OpenClaw gateway. Monitors health, auto-restarts on failure, and sends Telegram alerts. Diagnostics and log analysis run locally on-device. Alert notifications are sent to the user's Telegram bot. Use when user wants to set up gateway monitoring, watchdog, or auto-recovery.
openclaw-watchdog
Description: Self-healing monitoring system for OpenClaw gateway. Monitors health, auto-restarts on failure, and sends Telegram alerts. Diagnostics and log analysis run locally on-device. Alert notifications are sent to the user's Telegram bot. Use when user wants to set up gateway monitoring, watchdog, or auto-recovery.
Prerequisites
- Telegram Bot Token — Create via @BotFather
- Telegram Chat ID — Your personal chat ID for receiving alerts
- Python 3 — Required for the watchdog service
- OpenClaw — Installed and running
Trigger Keywords
- watchdog, monitoring, auto-fix, gateway health, self-healing, auto-recovery, watch dog
Setup
Send the user ONE message with everything they need:
🐕 Watch Dog — Self-Healing Gateway Monitor
Watch Dog is a background service that pings your OpenClaw gateway every 15 seconds. If the gateway goes down, it automatically attempts to restart it and sends you Telegram alerts so you're always in the loop. All diagnostics run locally on your device.
To set it up, I need:
-
Telegram Bot Token — Create a bot via @BotFather on Telegram, then send me the token (looks like
123456:ABC-DEF...) -
Your Telegram Chat ID — Send
/startto your bot, then visithttps://api.telegram.org/bot<YOUR_TOKEN>/getUpdatesto find your chat ID
Send me the token and chat ID and I'll handle the rest (including a test run to make sure everything works)!
After Receiving Credentials
Run these steps in order:
1. Validate credentials
python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/validate.py "$TELEGRAM_TOKEN"
2. Run setup script
chmod +x ~/.openclaw/workspace/openclaw-watchdog/scripts/setup.sh
~/.openclaw/workspace/openclaw-watchdog/scripts/setup.sh \
--telegram-token "$TELEGRAM_TOKEN" \
--telegram-chat-id "$TELEGRAM_CHAT_ID"
3. Connect via Telegram (Pairing)
python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/test-message.py "$TELEGRAM_TOKEN" "$TELEGRAM_CHAT_ID"
Wait for user to confirm they received the Telegram message before proceeding.
4. Verify it's running
# Check service status
if [[ "$(uname)" == "Darwin" ]]; then
launchctl list | grep openclaw.watchdog
else
systemctl --user status openclaw-watchdog
fi
# Check logs
tail -20 ~/.openclaw/watchdog/watchdog.log
5. Confirm to user
Tell them Watch Dog is active, what it monitors, and that they'll get Telegram alerts if anything goes wrong.
How It Works
- Pings
localhost:3117/healthevery 15 seconds - After 3 consecutive failures, attempts
openclaw gateway restart - Up to 2 restart attempts, then asks user for reinstall permission via Telegram
- User approves by running:
touch ~/.openclaw/watchdog/approve-reinstall - Without approval, only sends notifications — no destructive actions
- Local pattern-matching diagnostics (no logs sent externally)
- Runs as macOS LaunchAgent or Linux systemd user service
- Credentials encrypted with AES-256 using machine-specific key
Uninstall
if [[ "$(uname)" == "Darwin" ]]; then
launchctl unload ~/Library/LaunchAgents/com.openclaw.watchdog.plist 2>/dev/null
rm -f ~/Library/LaunchAgents/com.openclaw.watchdog.plist
else
systemctl --user stop openclaw-watchdog 2>/dev/null
systemctl --user disable openclaw-watchdog 2>/dev/null
rm -f ~/.config/systemd/user/openclaw-watchdog.service
fi
rm -rf ~/.openclaw/watchdog
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
openclaw-watchdog is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Piyush G· Sep 9, 2024
Keeps context tight: openclaw-watchdog is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Registry listing for openclaw-watchdog matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Sakshi Patil· Jul 7, 2024
openclaw-watchdog reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend openclaw-watchdog for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Oshnikdeep· May 5, 2024
Useful defaults in openclaw-watchdog — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Dhruvi Jain· Apr 4, 2024
openclaw-watchdog has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Rahul Santra· Mar 3, 2024
Solid pick for teams standardizing on skills: openclaw-watchdog is focused, and the summary matches what you get after install.
- ★★★★★Pratham Ware· Feb 2, 2024
We added openclaw-watchdog from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Yash Thakker· Jan 1, 2024
openclaw-watchdog fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.