跳到正文
Skillpedia
部署与云(DevOps)394k · #12

diagnose-gateway

它能做什么

它指导 AI 智能体对 OpenClaw Gateway 进行只读健康检查,涵盖配置、密钥、频道和端口。它适合遇到报错或 Gateway 无法启动的人。

适用场景

  • ✓OpenClaw Gateway 无法启动或不断崩溃的时候。
  • ✓聊天频道停止工作,想找出原因的时候。
  • ✓在 OpenClaw 中看到端口冲突或配置错误的时候。

技能链接

https://github.com/openclaw/openclaw/blob/main/custodian-skills/diagnose-gateway/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/custodian-skills/diagnose-gateway/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的 OpenClaw Gateway 无法启动。你能在不改动设置的情况下,检查一下问题出在哪里吗?”

每周 5 个新技能,1 分钟读完。

工作原理

技能运行一组只读检查,并读取最近的日志。然后报告可能的原因,例如配置错误、登录已过期或端口已被占用,且不做任何更改。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Diagnose the Gateway

This playbook is read-only: no config writes, no service restarts, no doctor --fix, no killing listeners. Never print secret values; report only redacted SecretRef owner state. Every run ends with the observable Prove result or an exact explanation of why it could not be proven.

Gather

openclaw doctor --lint
openclaw gateway status --deep
openclaw config validate
openclaw channels status
openclaw models status
openclaw channels logs --channel <id>

doctor --lint is read-only and can exit 1 for findings: read the report and continue the remaining checks. Do not substitute ordinary doctor or doctor --non-interactive; they can copy legacy config and migrate state without --fix.

On managed installs, bounded recent logs: ./scripts/clawlog.sh (repo checkout) or the log path printed at gateway startup (/tmp/openclaw/openclaw-<date>.log by default).

Check these signatures without guessing:

  • invalid config or schema errors (config validate names the exact key and line);
  • degraded SecretRef owners — report the owner, never ids or values;
  • expired or rejected channel authentication (channels status per account);
  • EADDRINUSE, a second gateway listener, or service/config port mismatch (lsof -nP -iTCP:<port> -sTCP:LISTEN);
  • gateway crash loops: read the last startup stack in the gateway log; a schema-valid config that still crashes startup is a bug — capture the stack and report it.

Correlate timestamps and identify the first owner-boundary failure.

Mutate

Nothing. Do not change config, migrate state, or alter services. Diagnostic commands may still produce incidental logs or cache bookkeeping.

Repair

Translate each finding into the next action, naming the responsible skill when one exists: configure-channel, add-model-provider, or cloud-image-bake. Recommend openclaw doctor --fix --non-interactive only as a separately approved step.

Prove

Repeat the smallest read-only check that exposes the condition and record its output, for example:

openclaw gateway status --deep
openclaw channels status --probe

If access, logs, or the gateway are unavailable, report that exact blocker rather than declaring a cause.

Report

Findings in causal order with evidence for each; current gateway/config/SecretRef/channel/port state; one recommended next skill or operator action. State explicitly that no config/service repairs or state migrations were performed.

Further reference: https://docs.openclaw.ai/gateway/troubleshooting

常见问题

检查时它会更改我的设置吗?

不会。这套操作手册是只读的,不会写入配置、重启服务或停止正在运行的程序。

它会显示我的密码或令牌吗?

不会。它从不打印密钥的值,只报告密钥来源的脱敏信息。

它能发现哪些问题?

它会检查无效配置、已过期的频道登录、已被占用的端口,以及陷入崩溃循环的 Gateway。

详情

作者的原始描述

Diagnose Gateway, config, secrets, channels, and port failures with read-only one-liners.

repo: openclaw/openclaw

热度

GitHub 星标
394k
排名
#12
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能