vercel-labs/gateway-proxy-debug
Gateway and proxy debugging for vercel-openclaw: /gateway routing, HTML injection, WebSocket rewrite, gateway-token handoff, waiting page, status heartbeat, sandbox port URL cache, and proxy auth. Use when the OpenClaw UI, WebSockets, gateway proxying, or waiting-page flow breaks.
npx skills add https://github.com/vercel-labs/vercel-openclaw --skill gateway-proxy-debug
Use this skill when the wrapper can reach a sandbox but /gateway, HTML injection, WebSockets, or token handoff is broken.
Collect:
GET /api/status.GET /api/admin/sandbox-diag.GET /api/admin/logs filtered for proxy., gateway., sandbox.port_, token../gateway/*, WebSocket upgrade, and POST /api/status heartbeat.Keep app auth, deployment protection bypass, gateway token, and AI Gateway auth separate. Do not paste gateway tokens in artifacts.
browser -> wrapper auth -> /gateway route -> ensure sandbox running
-> fresh gateway token -> sandbox port URL -> OpenClaw gateway
-> HTML injection -> WebSocket rewrite -> heartbeat POST /api/status
Mark each edge unknown, verified-good, or verified-bad.
src/app/gateway/[[...path]]/route.ts.src/server/proxy/{proxy-route-utils,htmlInjection,waitingPage}.ts.src/server/sandbox/lifecycle.ts, src/server/public-url.ts.lat.md/sandbox-lifecycle.md, docs/architecture.md, docs/deployment-protection.md.Run focused tests when available, then:
node scripts/verify.mjs --steps=test,typecheck
lat check
For UI/WebSocket fixes, verify in a browser or with a smoke check that HTML contains the injected script and WebSocket traffic reaches the sandbox.
Take vercel-labs/gateway-proxy-debug from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.