diagnose-gateway
What it does
It guides an AI agent through a read-only health check of an OpenClaw Gateway, covering config, secrets, channels, and ports. It is for people who see errors or a Gateway that will not start.
When to use it
- ✓When your OpenClaw Gateway fails to start or keeps crashing.
- ✓When a chat channel stops working and you want to find out why.
- ✓When you see a port conflict or a config error in OpenClaw.
Skill link
https://github.com/openclaw/openclaw/blob/main/custodian-skills/diagnose-gateway/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My OpenClaw Gateway will not start. Can you check what is wrong without changing my settings?”
5 new skills a week. 1 minute to read.
How it works
The skill runs a set of read-only checks and reads the recent logs. It then reports the likely cause, such as a config error, an expired login, or a port already in use, without making changes.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Will it change my settings while it checks?
No. The playbook is read-only, so it does not write config, restart services, or stop running programs.
Will it show my passwords or tokens?
No. It never prints secret values and reports only redacted information about where secrets come from.
What problems can it find?
It looks for invalid config, expired channel logins, a port already in use, and gateways stuck in a crash loop.
Details
Original description by the author
Diagnose Gateway, config, secrets, channels, and port failures with read-only one-liners.
repo: openclaw/openclaw
Popularity
- GitHub stars
- 394k
- Ranking position
- #12
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
discrawl
394kLets your agent search and summarize a saved local archive of Discord messages, check how fresh it is, and read direct messages.
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
Similar skills
wizard
310kWalks you through setup steps only you can do, such as adding credentials or changing dashboard settings, with a guided script.
git-guardrails-claude-code
310kSets up a safety hook that blocks risky git commands, such as push, hard reset, and forced branch deletion, before they can run.
setup-pre-commit
310kSets up automatic checks that format, type-check, and test your code each time you make a git commit.