Skip to content
Skillpedia
Deploy & cloud (DevOps)394k · #12

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.md

Copy 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

Use this skill to help me: https://github.com/openclaw/openclaw/blob/main/custodian-skills/diagnose-gateway/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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 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

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills