openclaw-watchdogSelf-healing monitoring system for OpenClaw gateway. Auto-detects failures, fixes crashes, and sends Telegram alerts.
Install via ClawdBot CLI:
clawdbot install Abdullah4AI/openclaw-watchdogDescription: 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.
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:
123456:ABC-DEF...)/start to your bot, then visit https://api.telegram.org/bot/getUpdates to find your chat IDSend me the token and chat ID and I'll handle the rest (including a test run to make sure everything works)!
Run these steps in order:
python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/validate.py "$TELEGRAM_TOKEN"
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" \
--gateway-port "$GATEWAY_PORT" # optional, auto-detected from openclaw.json
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.
# 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
Tell them Watch Dog is active, what it monitors, and that they'll get Telegram alerts if anything goes wrong.
--gateway-port)openclaw gateway restarttouch ~/.openclaw/watchdog/approve-reinstallif [[ "$(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
Generated Mar 1, 2026
A small business uses OpenClaw gateway for internal services and deploys the watchdog to ensure uptime. It automatically restarts the gateway after crashes, minimizing downtime without IT staff intervention, and sends Telegram alerts to the manager for oversight.
A tech enthusiast runs OpenClaw in a home lab for personal projects and uses the watchdog to monitor gateway health. It provides self-healing capabilities to auto-restart on failures, ensuring continuous operation for home automation or media servers, with alerts sent to their phone.
An agricultural operation uses OpenClaw gateway to manage IoT sensors in remote fields. The watchdog monitors the gateway, auto-fixes crashes to maintain data flow, and sends Telegram alerts to farm operators, reducing manual checks and preventing data loss.
A school or university deploys OpenClaw for campus network services and uses the watchdog for automated monitoring. It detects and resolves gateway issues quickly, minimizing disruption to online learning platforms, with alerts sent to IT staff for proactive management.
A startup relies on OpenClaw gateway for its SaaS product backend. The watchdog ensures high availability by auto-restarting the gateway after failures, reducing manual DevOps overhead, and sends alerts to the engineering team for rapid response.
Offer the watchdog as a free open-source tool with basic features. Generate revenue by providing premium support packages, including custom configurations, priority alerts, and extended diagnostics for enterprise clients.
Bundle the watchdog with OpenClaw gateway installations as a value-added service. Charge a one-time setup fee or annual license for seamless integration, including automated deployment and ongoing maintenance updates.
License the watchdog technology to other companies for rebranding as part of their own monitoring products. Provide customization options and technical support, targeting MSPs or hardware manufacturers.
š¬ Integration Tip
Ensure Telegram bot credentials are securely stored and test the setup script in a sandbox environment before deployment to avoid service interruptions.
Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns. Part of the Hal Stack š¦
Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.
Clawdbot documentation expert with decision tree navigation, search scripts, doc fetching, version tracking, and config snippets for all Clawdbot features
Interact with Moltbook social network for AI agents. Post, reply, browse, and analyze engagement. Use when the user wants to engage with Moltbook, check their feed, reply to posts, or track their activity on the agent social network.
OpenClaw CLI wrapper ā gateway, channels, models, agents, nodes, browser, memory, security, automation.
MoltGuard ā runtime security plugin for OpenClaw agents by OpenGuardrails. Helps users install, register, activate, and check the status of MoltGuard. Use wh...