← 返回
未分类 中文

ClawDoctor

Self-healing doctor for OpenClaw. Monitors gateway, crons, sessions, auth, and costs. Sends Telegram alerts. Auto-restarts gateway when it goes down. Use whe...
OpenClaw自愈医生。监控网关、定时任务、会话、认证和费用。发送Telegram告警。网关宕机时自动重启。
relayplane relayplane 来源
未分类 clawhub v0.4.11 1 版本 100000 Key: 无需
★ 0
Stars
📥 603
下载
💾 0
安装
1
版本
#latest

概述

ClawDoctor - Self-Healing Doctor for OpenClaw

Monitors your OpenClaw setup and fixes problems before you notice them.

Built for people running OpenClaw in production who got tired of checking if things were still alive.

npm: clawdoctor | Version: 0.2.0 | License: MIT

What It Monitors

MonitorWhat It WatchesInterval
------------------------------------
GatewayWatcheropenclaw process running30s
CronWatcher~/.openclaw/state/cron-*.json for missed/failed crons60s
SessionWatcher~/.openclaw/agents//sessions/.jsonl for errors, aborts, stuck sessions60s
AuthWatcherGateway logs for 401/403/token expired patterns60s
CostWatcherSession token costs - flags if >3x rolling average5m

What It Fixes

HealerAction
----------------
ProcessHealerRestarts gateway via openclaw gateway restart, then verifies recovery
CronHealerLogs the failure and includes the manual rerun command in the alert

Install

npm install -g clawdoctor
clawdoctor init
clawdoctor start

When to Use

  • You run OpenClaw in production
  • You have cron jobs that sometimes fail silently
  • You want Telegram alerts when something breaks
  • You want the gateway to auto-restart if it goes down

Commands

clawdoctor init              # Interactive setup (detects OpenClaw, configures Telegram)
clawdoctor start             # Start monitoring daemon
clawdoctor start --dry-run   # Run without taking healing actions
clawdoctor stop              # Stop daemon
clawdoctor status            # Show current health of all monitors
clawdoctor log               # Show recent events
clawdoctor log -n 100        # Show 100 events
clawdoctor log -w GatewayWatcher -s critical  # Filter by watcher/severity
clawdoctor install-service   # Install as systemd user service

Non-Interactive Setup (for agents)

clawdoctor init \
  --openclaw-path ~/.openclaw \
  --telegram-token TOKEN \
  --telegram-chat CHATID \
  --auto-fix \
  --no-prompt

Sample Alert

Alert: GatewayWatcher
Event: Gateway process not found
Action: openclaw gateway restart
Status: Back online
Time: 2026-03-15 03:14 UTC
Host: devbox

Alerts are rate-limited to max 1 per monitor per 5 minutes to avoid spam.

Configuration

Config lives at ~/.clawdoctor/config.json. Events stored in ~/.clawdoctor/events.db (SQLite, 7-day retention).

Pricing

  • Diagnose ($9/mo): Monitoring + Telegram alerts

https://buy.stripe.com/7sY14g2fsex33F08U51ck01

  • Heal ($19/mo): Everything in Diagnose + auto-healing actions

https://buy.stripe.com/eVq28k2fsdsZ7Vg6LX1ck02

Security

  • Reads OpenClaw log/state files (read-only)
  • Only action taken: openclaw gateway restart when gateway is down
  • Sends alerts via Telegram Bot API (outbound HTTPS only)
  • No data sent to external servers in free tier
  • No API keys or conversation content leaves the machine

More Info

https://clawdoctor.dev

版本历史

共 1 个版本

  • v0.4.11 当前
    2026-05-02 03:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,637
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,948
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,913