← 返回
未分类 中文

OpenClaw Doctor

Comprehensive OpenClaw health diagnostics and auto-repair. Checks gateway, services, memory, cron, channels, disk, logs, and security. Auto-fixes common issu...
全面的 OpenClaw 健康诊断与自动修复。检查网关、服务、内存、定时任务、频道、磁盘、日志和安全。自动修复常见问题。
dagangtj dagangtj 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 168
下载
💾 5
安装
1
版本
#latest

概述

OpenClaw Doctor

A comprehensive health diagnostic and auto-repair skill for OpenClaw installations. Goes far beyond openclaw doctor with deep checks and automatic fixes.

When to Use

  • System feels slow or unresponsive
  • Cron jobs failing or not running
  • Gateway won't start or keeps crashing
  • Channels (Telegram/WhatsApp) disconnected
  • Routine health checks (add to heartbeat)
  • After system restart or power outage
  • Before and after upgrades

Quick Start

Ask your agent: "Run a full health check" or "Diagnose my OpenClaw setup"

The agent will execute scripts/diagnose.sh and interpret results.

What It Checks

1. Gateway Health

  • Process running and responsive
  • Port reachable and latency
  • LaunchAgent/systemd service status
  • KeepAlive and auto-restart configured
  • Auth token strength

2. System Resources

  • CPU load vs core count
  • Memory usage and swap pressure
  • Disk space (warn at 80%, critical at 90%)
  • Log file sizes (detect bloat)

3. Service Resilience

  • Auto-boot on power restore (macOS)
  • Auto-restart after crash
  • Sleep settings (servers should never sleep)
  • Node.js path validity (survives upgrades?)

4. Cron & Automation

  • All cron jobs status
  • Failed job detection
  • Stale jobs (not run in 2x their interval)
  • Session count and context usage

5. Channel Health

  • Each channel connectivity
  • Last message timestamps
  • Auth token validity

6. Security

  • Config file permissions (should be 600)
  • Gateway token strength
  • Exposed ports check
  • Workspace file permissions

7. Memory & Storage

  • Memory file count and total size
  • Stale daily logs (>30 days)
  • Backup status and recency
  • Vector index health

Auto-Fix Capabilities

The script can automatically fix:

  • Restart crashed gateway
  • Fix file permissions
  • Rotate oversized logs
  • Clear stale session data
  • Restart disconnected channels

Usage

# Full diagnostic (read-only)
bash scripts/diagnose.sh

# Diagnostic with auto-fix
bash scripts/diagnose.sh --fix

# Quick check (essential items only)
bash scripts/diagnose.sh --quick

Integration with Heartbeat

Add to your HEARTBEAT.md for periodic checks:

## System Health (every heartbeat)
Run: bash scripts/diagnose.sh --quick
Alert if any FAIL items found

Platform Support

  • macOS (primary, fully tested)
  • Linux (systemd-based, tested)
  • Windows WSL (basic support)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 06:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 471 📥 78,398
data-analysis

Crypto Funding Alert

dagangtj
{"answer":"实时资金费率扫描器,智能提醒寻找负费率做多机会。支持币安合约,无需API密钥..."}
★ 3 📥 4,384
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 31,004