# Send OpenClaw Watch Dog to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-watchdog",
    "name": "OpenClaw Watch Dog",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/Abdullah4AI/openclaw-watchdog",
    "canonicalUrl": "https://clawhub.ai/Abdullah4AI/openclaw-watchdog",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openclaw-watchdog",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-watchdog",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "openclaw-watchdog/SKILL.md",
      "openclaw-watchdog/_meta.json",
      "openclaw-watchdog/references/troubleshooting.md",
      "openclaw-watchdog/scripts/setup.sh",
      "openclaw-watchdog/scripts/test-message.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openclaw-watchdog",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T22:11:01.679Z",
      "expiresAt": "2026-05-09T22:11:01.679Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-watchdog",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-watchdog",
        "contentDisposition": "attachment; filename=\"openclaw-watchdog-1.3.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openclaw-watchdog"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-watchdog"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-watchdog",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-watchdog",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-watchdog/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-watchdog/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-watchdog/agent.md"
  }
}
```
## Documentation

### 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 /start to your bot, then visit https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates to 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" \\
  --gateway-port "$GATEWAY_PORT"  # optional, auto-detected from openclaw.json

### 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 gateway health endpoint every 15 seconds (auto-detects port from config, or set via --gateway-port)
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
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Abdullah4AI
- Version: 1.3.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-02T22:11:01.679Z
- Expires at: 2026-05-09T22:11:01.679Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openclaw-watchdog)
- [Send to Agent page](https://openagent3.xyz/skills/openclaw-watchdog/agent)
- [JSON manifest](https://openagent3.xyz/skills/openclaw-watchdog/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openclaw-watchdog/agent.md)
- [Download page](https://openagent3.xyz/downloads/openclaw-watchdog)