Install
openclaw plugins install @jordan-thirkle/openclaw-winhealthOpenClaw Cross-Platform Health Monitor — diagnose and fix gateway issues. Background health polling, multi-channel alerts (WhatsApp/Telegram), event loop monitoring, and automated diagnostics. Works on Windows, Linux, and macOS.
openclaw plugins install @jordan-thirkle/openclaw-winhealthDiagnose and fix OpenClaw gateway issues. Background health polling, multi-channel alerts, event loop monitoring, and automated diagnostics. Works on Windows, Linux, and macOS.
This plugin monitors your gateway's operational health. By default in v1.4.0, no data leaves your machine.
http://127.0.0.1:18789 without modifying gateway statewinhealth_diagnostics or openclaw gateway diagnostics export. These may contain system metadata — review before sharingwinhealth_diagnostics --include_logs true) reads recent gateway log messages. Logs may contain file paths, identifiers, or operational metadata — use with cautionalertChannel: "none"). You must explicitly opt in and understand what alert payloads containRead the full disclosure: SECURITY.md | SkillSpector Audit
OpenClaw gateways can experience performance regressions across all platforms. After extensive debugging of the 2026.5.22 performance regression (event loop blocking, CLI tool slowness, prewarm bottlenecks), I built this to automatically detect and diagnose these issues across Windows, Linux, and macOS.
First system health monitoring tool on ClawHub. 27 automated tests with CI/CD pipeline.
openclaw gateway diagnostics export) — review output before sharinginclude_logs: true)gateway_start lifecycle hookopenclaw plugins install clawhub:@jordan-thirkle/openclaw-winhealth
openclaw skills install windows-health-monitor
Restart the gateway to load the plugin:
openclaw gateway restart
After installation and restart, confirm the plugin is active:
# 1. Verify the plugin is registered
openclaw plugins inspect winhealth --runtime --json
# 2. Check the gateway log for startup
openclaw gateway logs --tail 20 | grep "winhealth"
# Expected output: "winhealth: started, polling every 5m"
# Expected output: "winhealth: health check passed" (after ~60s initial delay)
# 3. Run a manual health check
openclaw run winhealth_check --json
# Expected output: JSON with eventLoop, channels, agents, etc.
# Remove the plugin
openclaw plugins remove winhealth
# Remove the skill
openclaw skills remove windows-health-monitor
# Restart the gateway
openclaw gateway restart
Add to your openclaw.json:
// Minimal config — local monitoring only, no external transmission:
{
"plugins": {
"allow": ["winhealth"],
"entries": {
"winhealth": {
"enabled": true,
"config": {
"pollIntervalMinutes": 5,
"eventLoopThresholdMs": 5000,
"alertChannel": "none",
"alertTarget": "+15555550123",
"checkPrewarm": true,
"checkWindowsTask": true,
"checkBackgroundSubagents": true
}
}
}
}
}
See SECURITY.md before enabling external alert channels.
| Field | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Enable/disable background monitoring |
pollIntervalMinutes | integer | 5 | Minutes between health checks (1-60) |
eventLoopThresholdMs | integer | 5000 | Event loop p99 threshold for alert (500-30000) |
alertChannel | string | "none" | Alert channel: "whatsapp", "telegram", or "none" (off by default — see SECURITY.md) |
alertTarget | string | "" | Target for alerts (phone number or user ID). Only used when alertChannel is not "none" |
checkPrewarm | boolean | true | Check for provider auth prewarm blocking |
checkWindowsTask | boolean | true | Check Windows Scheduled Task health |
checkBackgroundSubagents | boolean | true | Check for stuck background subagents |
Once the plugin is loaded, agents can use three tools:
| Tool | Purpose |
|---|---|
winhealth_check | Quick health snapshot — event loop, channels, Windows task, prewarm, alerts |
winhealth_diagnostics | Full diagnostic bundle — export, logs, status, channels |
winhealth_alerts | Manage alerts — list, dismiss, clear |
Ask your agent:
"Run a winhealth_check and tell me if anything is wrong."
"Run winhealth_diagnostics and summarize the findings."
"Show me active winhealth alerts."
The skill also provides manual diagnostic commands:
# Quick health snapshot
openclaw health --verbose --json
# Channel status
openclaw channels status --probe
# Windows task
Get-ScheduledTask -TaskName "OpenClaw Gateway"
# Full diagnostic export
openclaw gateway diagnostics export
The plugin includes a live health dashboard with radial gauges, metrics cards, and alert history.
Prerequisites:
"host": { "root": "~/.openclaw/workspace/canvas" })Setup:
# Clone the repo to get the dashboard files
git clone https://github.com/jordan-thirkle/openclaw-winhealth.git
# Copy the WinHealth dashboard to your canvas host root
cp openclaw-winhealth/dashboard/index.html ~/.openclaw/workspace/canvas/winhealth/index.html
# Copy the Command Center dashboard (optional)
cp openclaw-winhealth/dashboard/command.html ~/.openclaw/workspace/canvas/command/index.html
Access:
http://127.0.0.1:18789/__openclaw__/canvas/winhealth/http://127.0.0.1:18789/__openclaw__/canvas/command/The dashboard uses sessionStorage by default — your gateway token is cleared when you close the tab. Enable "Remember token" to persist it across sessions. See SECURITY.md for dashboard security details.
⚠️ OpenClaw Health Alert
[CRITICAL] Event loop degraded: p99=8500ms (threshold 5000ms)
Consider: OPENCLAW_SKIP_PROVIDER_AUTH_PREWARM=1
⚠️ OpenClaw Health Alert
[CRITICAL] 4 background subagent(s) blocking gateway restart
⚠️ OpenClaw Health Alert
[WARNING] Provider auth prewarm slow: 68000ms. Consider OPENCLAW_SKIP_PROVIDER_AUTH_PREWARM=1
| Issue | Detection |
|---|---|
| 2026.5.22 prewarm blocking | Log check for provider auth state pre-warmed in Xms eventLoopMax=Yms |
| CLI tool slowness | Health via HTTP vs CLI response time delta |
| Stuck background subagents | Log check for restart.*deferred.*background task.*active |
| WhatsApp reconnection storm | Channel health probe + connection age |
| Scheduled Task stall | Get-ScheduledTask state check |
| Memory pressure | RSS threshold monitoring |
| Event loop saturation | p99 delay + utilization monitoring |
Gateway Startup
│
└─ gateway_start hook
│
├─ Initial health check (60s grace)
└─ setInterval (configurable, default 5m)
│
├─ HTTP health probe (127.0.0.1:18789/health)
├─ Windows task check (Get-ScheduledTask)
├─ Prewarm detection (log grep)
├─ Stuck subagent detection (log grep)
│
├─ Threshold evaluation
└─ Alert routing (WhatsApp / Telegram)
git clone https://github.com/jordan-thirkle/openclaw-winhealth.git
cd openclaw-winhealth
npm install
# Test locally
openclaw plugins install .
openclaw plugins inspect winhealth --runtime --json
# Dry run
npm run publish:clawhub:dry
# Publish
npm run publish:clawhub
Issues and PRs welcome. Before submitting:
openclaw plugins inspect winhealth --runtime --jsonMIT © Jordan Thirkle