Gateway Fix Kit for OpenClaw
A diagnostic skill, redacting findings summarizer, safe JSON5 config patches, and workspace runbook for OpenClaw 2026.11.10. It runs read-only OpenClaw checks in order, maps error signatures to the smallest safe repair, and keeps secrets out of reports and chat.
One pack: pay once on Stripe, no account needed. All packs: a subscription you can cancel any time. Refund Policy.
What you get
- gateway-doctor SKILL.md with a read-only diagnostic ladder and five symptom repair playbooks
- Python 3 stdlib summarize_diagnostics.py script that collects or parses doctor, status, gateway status, and config-validate output with secret redaction
- config/gateway-safe-local.json5 patch to restore local loopback mode and hybrid reload without touching existing auth tokens
- config/diagnostics-verbose.json5 and config/diagnostics-default.json5 patches to toggle debug file logging cleanly
- workspace/GATEWAY_RUNBOOK.md quick-reference card for operator terminals and agent workspaces
- Install, verification, and rollback instructions in README.md
Test results
Run on 2026-11-26 with OpenClaw 2026.11.10 (6ea542f). macOS 15.7.4 (Apple M3 Max), Node v24.22.3, a fresh OpenClaw profile, local Ollama model gemma4:31b. Commands ran in a sandbox without system service control. Paths are shortened and long output is cut. The output below is what those runs printed, shortened.
Check that the diagnostics script runs and shows its options
$ python3 ./packs/gateway-doctor/skills/gateway-doctor/scripts/summarize_diagnostics.py --help && echo HELP_OKusage: summarize_diagnostics.py [-h] [--collect] [--include-channels] [--include-update] [--all-checks] [--profile PROFILE] [--timeout TIMEOUT] [--config-validate PATH] [--doctor PATH] [--gateway-status PATH] [--status PATH] … --collect Run official read-only OpenClaw diagnostic commands … --config-validate PATH … --gateway-status PATH … Output format (default: markdown). --output PATH Write the redacted report to PATH instead of stdout. --fail-on-error Exit with status 1 if any error-severity finding is present. HELP_OKInstall the gateway-doctor skill into the local workspace and inspect metadata
$ openclaw skills install ./packs/gateway-doctor/skills/gateway-doctor --force && openclaw skills info gateway-doctor --json | python3 -c 'import json,sys; raw=sys.stdin.read(); d=json.loads(raw[raw.find("{"):raw.rfind("}")+1]); assert d.get("name")=="gateway-doctor" and d.get("eligible") is True, d; print("INFO_OK:", d["name"], "eligible=", d["eligible"])'Installing to ~/.openclaw/workspace/skills/gateway-doctor… Skill files changed, but local Gateway refresh failed: Gateway not reachable at ws://127.0.0.1:19790 (ECONNREFUSED). Start it with `openclaw gateway run` or check `openclaw gateway status`. Gateway target: ws://127.0.0.1:19790 Source: local loopback Config: ~/.openclaw/openclaw.json Bind: loopback. Restart the Gateway to refresh skills. Installed gateway-doctor from path -> ~/.openclaw/workspace/skills/gateway-doctor INFO_OK: gateway-doctor eligible= TrueConfirm skill readiness and binary prerequisites
$ openclaw skills check --json | python3 -c 'import json,sys; raw=sys.stdin.read(); d=json.loads(raw[raw.find("{"):raw.rfind("}")+1]); assert "gateway-doctor" in d.get("eligible", []), d; assert all(x.get("name")!="gateway-doctor" for x in d.get("missingRequirements", [])), d; print("SKILLS_CHECK_OK: gateway-doctor eligible")'SKILLS_CHECK_OK: gateway-doctor eligibleDry-run all three JSON5 config patches against the local schema
$ for p in gateway-safe-local.json5 diagnostics-verbose.json5 diagnostics-default.json5; do openclaw config patch --file "./packs/gateway-doctor/config/$p" --dry-run --json | python3 -c 'import json,sys; raw=sys.stdin.read(); d=json.loads(raw[raw.find("{"):raw.rfind("}")+1]); assert d.get("ok") is True, d; print("PATCH_OK:", sys.argv[1])' "$p" || exit 1; done && echo ALL_PATCHES_OKPATCH_OK: gateway-safe-local.json5 PATCH_OK: diagnostics-verbose.json5 PATCH_OK: diagnostics-default.json5 ALL_PATCHES_OKVerify secret redaction and findings parsing on synthetic config-validate input
$ OUT=$(printf '%s\n' '{"valid":false,"issues":[{"path":"gateway.mode","message":"missing gateway.mode with token sk-fake-demo-123456"}]}' | python3 ./packs/gateway-doctor/skills/gateway-doctor/scripts/summarize_diagnostics.py --config-validate -) && printf '%s\n' "$OUT" && ! printf '%s\n' "$OUT" | grep -qF 'sk-fake-demo-123456' && echo REDACTION_OK# OpenClaw Gateway Findings Report - **Generated (UTC):** 2026-11-26T13:28:13Z - **Overall Status:** BROKEN - **Findings:** 1 error(s), 0 warning(s), 0 info - **Secrets Redacted:** 1 … 1. **[Config Validation]** (`config.validate | gateway.mode`) — missing gateway.mode with token [REDACTED] … - Smallest next step: Run `openclaw config set gateway.mode '"local"' --strict-json --dry-run` then without `--dry-run` (or patch `gateway-safe-local.json5`). … openclaw config validate openclaw doctor --lint openclaw gateway status --deep --require-rpc ``` REDACTION_OKCollect live diagnostics with no Gateway running: the report flags it as unreachable
$ python3 ./packs/gateway-doctor/skills/gateway-doctor/scripts/summarize_diagnostics.py --collect# OpenClaw Gateway Findings Report - **Generated (UTC):** 2026-11-26T13:28:30Z - **OpenClaw Version:** OpenClaw 2026.11.10 (6ea542f) - **Overall Status:** BROKEN - **Findings:** 2 error(s), 2 warning(s), 0 info - **Secrets Redacted:** 0 … - `config-validate`: ok (exit 0) - `doctor`: warning (exit 1) - `gateway-status`: error (exit 0) - `status`: error (exit 0) … 2. **[General]** (`gateway.unreachable`) — connect ECONNREFUSED 127.0.0.1:19790 … ```bash openclaw config validate openclaw doctor --lint openclaw gateway status --deep --require-rpc ```Run a one-shot agent turn that uses the skill on a local Ollama model (Gateway stopped)
$ openclaw agent exec 'Use $gateway-doctor to run python3 skills/gateway-doctor/scripts/summarize_diagnostics.py --collect --output reports/gateway-findings.md and present the 4-part diagnosis without modifying openclaw.json.' --cwd "$HOME/.openclaw/workspace" --state-dir "$HOME/.openclaw" --timeout 1400 --model "$OLLAMA_MODEL" && F="$HOME/.openclaw/workspace/reports/gateway-findings.md" && test -s "$F" && grep -qF '# OpenClaw Gateway Findings Report' "$F" && grep -qF '`config-validate`:' "$F" && grep -qF '`doctor`:' "$F" && grep -qF '127.0.0.1:19790' "$F" && ! grep -qF 'collect.temporary-state' "$F" && echo AGENT_OK[agent/embedded] [context-pressure-diagnostic] admitted provider attempt for ollama/gemma4:31b route=compact_only estimatedPromptTokens=28674 promptBudgetBeforeReserve=24576 [memory] memory_index_chunks_vec not updated — semantic vector embeddings unavailable — no vector dimensions resolved. Vector recall degraded. Further duplicate warnings suppressed. [agents/agent-command] [agent] run a9cd0500-2e96-4e79-ab99-fb7ffd7d6134 ended with stopReason=stop Based on the diagnostic report generated by the `gateway-doctor` collector, here is the 4-part diagnosis: ### 1. Diagnosis … openclaw doctor --lint openclaw gateway status --deep --require-rpc ``` [state/agent-db] agent database clean-close receipt: written; agent=main AGENT_OK
Requirements
- OpenClaw 2026.11.10 with the openclaw CLI on PATH
- Python 3.9 or newer (standard library only, no third-party packages)
- A configured local Ollama model (or another configured OpenClaw model) for agent-driven diagnosis
Not included
- Cloud LLM API keys or hosted provider accounts
- Chat channel accounts, bot tokens, or webhook infrastructure
- Destructive reset scripts, credential-dumping helpers, or security-bypass config flags
Files in the zip
packs/gateway-doctor/LICENSE.txt
packs/gateway-doctor/README.md
packs/gateway-doctor/TESTED.md
packs/gateway-doctor/config/diagnostics-default.json5
packs/gateway-doctor/config/diagnostics-verbose.json5
packs/gateway-doctor/config/gateway-safe-local.json5
packs/gateway-doctor/skills/gateway-doctor/SKILL.md
packs/gateway-doctor/skills/gateway-doctor/scripts/summarize_diagnostics.py
packs/gateway-doctor/workspace/GATEWAY_RUNBOOK.md28 KB · SHA-256 881cff96fad24e09ee36c01c4d6a91bd4f2e6edd6953ca7b19e04fcc6e3aa25a
Licence: for your own use and your own team. No resale or republishing. Not an official OpenClaw product.
Other packs
- Secure Setup Pack: Hardened config patches, audit checklist, and approval-gated security triage skill.
- Token Saver Pack: Cost-control configs, cheaper fallback routing, and local usage reports for OpenClaw.
- Soul and Memory Pack: Workspace templates, memory settings and scripts to check why an agent forgot.
- Heartbeat and Cron Pack: A checklist monitor plus morning, evening, and weekly review jobs for OpenClaw.
- Skill Safety Checker: Scan third-party OpenClaw skills for red flags before they get installed.
- Spreadsheet Analyst Skill: Profile CSV/TSV files, group metrics, and write Markdown reports from computed numbers.