返回顶部
w

watchclaw

Auto-recovery watchdog for OpenClaw gateway. Monitors health, detects bad config changes, and recovers via git stash/revert. Supports native and Docker restart modes with pluggable alerts.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
378
下载量
0
收藏
概述
安装方式
版本历史

watchclaw

# watchclaw OpenClaw gateway watchdog — auto-recovery from bad config changes. ## What It Does watchclaw monitors your OpenClaw gateway and automatically recovers from bad configurations: - **Health polling** — checks gateway HTTP endpoint every N seconds - **Config change detection** — detects uncommitted or new commits in your config repo - **Auto-recovery** — stashes uncommitted changes (U1) or reverts bad commits (U2) via git - **Probation** — validates stability after config changes before promoting to known-good - **Pluggable alerts** — iMessage, webhook, or custom command on failure/recovery ## Usage ```bash # Start watching (background daemon) watchclaw --config /path/to/watchclaw.conf start # Start in foreground (for debugging) watchclaw --config /path/to/watchclaw.conf start --foreground # Check status watchclaw --config /path/to/watchclaw.conf status # Follow logs watchclaw --config /path/to/watchclaw.conf logs -f # Stop watchclaw --config /path/to/watchclaw.conf stop ``` ## Config Create a `.conf` file (see `watchclaw.conf.example`): ```bash GATEWAY_PORT=18790 GATEWAY_CONFIG_DIR="$HOME/.openclaw" POLL_INTERVAL_SEC=10 HEALTH_TIMEOUT_SEC=5 GATEWAY_TLS=0 # Use https for health check MAX_RETRIES=3 ALERT_HOOK="imsg" # imsg | webhook | command | none ALERT_IMSG_TO="user@me.com" RESTART_MODE="native" # native | docker ``` ## Recovery Modes | Scenario | Detection | Recovery | |----------|-----------|----------| | Uncommitted config change breaks gateway | Health check fails + dirty openclaw.json | `git stash` → restart | | Bad commit breaks gateway | Health check fails + new commit | `git revert` → restart | | Config change during healthy operation | HEAD ≠ known-good in HEALTHY state | Enter probation, monitor | ## Docker Mode For containerized OpenClaw (e.g., 飞书/Feishu bot): ```bash RESTART_MODE="docker" DOCKER_CONTAINER="openclaw-feishu" ``` ## Requirements - `bash` 4+, `git`, `curl` - OpenClaw gateway config must be in a git repo - `python3` or `node` for JSON validation

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 watchclaw-1776291552 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 watchclaw-1776291552 技能

通过命令行安装

skillhub install watchclaw-1776291552

下载 Zip 包

⬇ 下载 watchclaw v1.0.0

文件大小: 8.03 KB | 发布时间: 2026-4-16 18:40

v1.0.0 最新 2026-4-16 18:40
Initial release of watchclaw — an auto-recovery watchdog for OpenClaw gateways.

- Monitors OpenClaw gateway health and configuration status.
- Automatically recovers from bad config changes via git stash or revert.
- Supports both native and Docker-based restart modes.
- Provides pluggable alert options: iMessage, webhook, or custom command.
- Implements probation to ensure stability after new config changes.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部