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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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 validatenames the exact key and line); - degraded SecretRef owners — report the owner, never ids or values;
- expired or rejected channel authentication (
channels statusper 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
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
discrawl
394k让你的智能体搜索和总结本地保存的 Discord 消息档案,查看档案的新旧程度,并阅读私信。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。