ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

openclaw-troubleshooter

OpenClaw 故障诊断与一键修复工具。自动检测 Gateway 状态、配置错误、端口冲突、危险技能代码,并提供修复方案。基于真实故障经验提取。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/345968504/openclaw-troubleshooter
Or

🔧 OpenClaw Troubleshooter

一键诊断 + 修复 OpenClaw 常见问题

基于真实故障经验提取(2026-03-14 Gateway 断开 + Control UI origin 验证失败事件)


🚀 快速使用

完整诊断(推荐)

openclaw troubleshoot

仅诊断不修复

openclaw troubleshoot --check-only

修复特定问题

openclaw troubleshoot --fix gateway      # 修复 Gateway
openclaw troubleshoot --fix config       # 修复配置
openclaw troubleshoot --fix security     # 修复安全问题
openclaw troubleshoot --fix all          # 修复所有

🔍 诊断范围

检查项检测内容修复方式
Gateway 状态进程是否运行、端口是否监听、WebSocket 是否就绪重启 Gateway
端口冲突18789 是否被占用终止占用进程或换端口
Control UIorigin 验证配置、trustedProxies自动添加 allowedOrigins
配置语法openclaw.json 是否合法修复 JSON 格式
危险技能扫描 skills/ 中的危险代码卸载或标记
模型配置模型是否可用、API key 是否有效提示用户更新
日志错误读取 gateway.log 最后 50 行标出 ERROR/WARN

📋 诊断流程

阶段 1:Gateway 健康检查

# 1. 检查进程
tasklist | findstr "openclaw"

# 2. 检查端口
netstat -ano | findstr :18789

# 3. 检查 WebSocket
curl -ws "ws://127.0.0.1:18789"

# 4. 检查 HTTP 健康接口
curl -s http://127.0.0.1:18789/health

阶段 2:配置检查

# 读取 openclaw.json
# 检查 gateway.controlUi.allowedOrigins
# 检查 gateway.trustedProxies
# 检查 gateway.nodes.denyCommands

阶段 3:安全检查

# 扫描 skills/ 目录
# 检测 dangerous-exec 模式
# 检测 env-harvesting 模式

阶段 4:日志分析

# 读取 C:\Users\34596\.openclaw\logs\gateway.log
# 提取 ERROR/WARN 行
# 分析卡点原因

🛠️ 修复方案

Gateway 问题

症状:

  • openclaw status 超时
  • openclaw logs 报错 "Gateway not reachable"
  • Control UI 显示连接中

修复:

# 1. 终止旧进程
taskkill /F /IM "node.exe" /FI "WINDOWTITLE eq *openclaw*"

# 2. 清理端口
netstat -ano | findstr :18789
# 如果有 PID,执行 taskkill /F /PID <PID>

# 3. 重启 Gateway
openclaw gateway --port 18789 --no-browser

# 4. 等待 15 秒后验证
openclaw status

Control UI Origin 验证失败

症状:

origin not allowed (open the Control UI from the gateway host or 
allow it in gateway.controlUi.allowedOrigins)

修复: 编辑 openclaw.json,在 gateway 部分添加:

{
  "gateway": {
    "controlUi": {
      "allowedOrigins": [
        "http://127.0.0.1:18789",
        "http://localhost:18789"
      ]
    }
  }
}

然后重启网关:

openclaw gateway restart

危险技能代码

症状:

  • capability-evolver:27+ 处危险代码(shell 执行、环境变量窃取)
  • feishu-doc:环境变量 + 网络发送

修复:

# 直接卸载
clawhub uninstall capability-evolver --yes
clawhub uninstall feishu-doc --yes

# 或深度审查
clawhub inspect <skill-name> --file <file-path>

配置警告

trustedProxies 未配置:

{
  "gateway": {
    "trustedProxies": ["127.0.0.1"]
  }
}

Metadata

Author@345968504
Stars4473
Views7
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-345968504-openclaw-troubleshooter": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#openclaw#troubleshooting#debug#repair#health
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

MacPowerTools

Safe local Mac optimization toolkit for OpenClaw agents on Apple Silicon. 1-trillion agent swarm simulation, local CoreML resource forecasting, safe cleanup & backups. 100% user-level, no internet, no persistence. Discoverable via ClawHub search.

aadipapp 4473

undertow

Skill discovery engine for AI coding agents. Recommends and installs the right skill when you need it — code review, test generation, debugging, commit messages, PR preparation, security scanning, dependency audits, Docker setup, CI/CD pipelines, API documentation, refactoring, performance optimization, bundle analysis, git recovery, README generation, license compliance, migration guides, dead code removal, and secret detection. One install gives your agent access to a curated library of 20+ developer workflow skills. Use when the user asks for help with any development workflow, code quality, DevOps, security, testing, documentation, or project setup task.

8co 4473

securityvitals

Security vitals checker for OpenClaw. Scans your installation, scores your setup, and shows you exactly what to fix. First scan in seconds.

bk-cm 4473

healthy-meal-reminder

健康饮食提醒技能。每日三餐+下午茶定时提醒,每次3个方案ABC供选择,饭后30分钟自动跟进记录饮食+计算热量。按季节推荐应季低卡食谱,支持减肥/维持/增肌三模式,含运动搭配、周末放纵餐、互动问答和周报打卡。当用户提到饮食提醒、三餐提醒、吃什么、减肥食谱、健康饮食、meal reminder、吃了什么、体重打卡时激活。

azerwang 4473

soul-weaver

AI Soul Weaver - 12 Curated Celebrity Templates + Custom Generation. Generate OpenClaw agent configurations through dialog or select from 12 world-famous tech & business leaders.

addogiavara-tech 4473