openclaw-bootstrap-debug
$
npx mdskill add vercel-labs/vercel-openclaw/openclaw-bootstrap-debugDiagnose OpenClaw bootstrap failures using sandbox probes and logs.
- Resolve setup, gateway boot, and plugin loading issues.
- Integrates with admin APIs, sandbox processes, and config files.
- Analyzes error patterns to recommend specific fix boundaries.
- Outputs actionable steps for config or asset restoration.
SKILL.md
.github/skills/openclaw-bootstrap-debugView on GitHub ↗
---
name: openclaw-bootstrap-debug
description: "OpenClaw bootstrap, bundle, config, and restore-asset debugging for vercel-openclaw: openclaw.bundle sidecars, plugin discovery, channel catalog, restart scripts, config hashes, dynamic resume files, and fast restore. Use when setup, gateway boot, plugin loading, or bundle-sidecar compatibility fails."
---
# OpenClaw Bootstrap Debug
Use this skill when the sandbox exists but OpenClaw setup, bundle loading, gateway restart, plugin discovery, or config restoration is broken.
## Evidence First
Collect:
- `GET /api/admin/sandbox-diag` port probes.
- `GET /api/admin/logs` filtered for `gateway.`, `sandbox.`, `bootstrap.`, `restore.`.
- Sanitized `/home/vercel-sandbox/.openclaw/openclaw.json` shape.
- Process list and ports inside sandbox.
- Tail of `/tmp/openclaw/openclaw-*.log` with secrets redacted.
- Bundle URL and sidecar presence from wrapper logs/config, not by guessing.
## Common Failure Splits
- Bootstrap never completed vs fast restore failed.
- Bundle missing sidecar asset vs plugin discovery path wrong.
- Gateway process stale/defunct vs new process failed to bind port 3000.
- Config hash changed but dynamic resume files did not include the same fields.
- Channel catalog missing vs channel config invalid.
- Telegram `webhookSecret` missing from one config/hash/restore path.
## Fix Boundaries
- Config/restart: `src/server/openclaw/config.ts`.
- Bootstrap/assets: `src/server/openclaw/{bootstrap,restore-assets}.ts`.
- Lifecycle caller: `src/server/sandbox/lifecycle.ts`.
- Channel config sync: `src/server/channels/admin/apply-channel-config-change.ts`.
- Tests: bootstrap/config/restore tests plus affected channel readiness tests.
## Verification
```bash
node scripts/verify.mjs --steps=test,typecheck
lat check
```
For live fixes, include before/after gateway boot evidence: process list, port 3000 probe, plugin count or route registration, and relevant `gateway.restart_*` events.
More from vercel-labs/vercel-openclaw
- admin-ui-debugAdmin UI and operator surface debugging for vercel-openclaw: command shell design, admin actions, request core, status panels, launch verification UI, channel readiness UI, and local read-only production-data workflows. Use when the root admin UI, controls, visual state, or operator copy is wrong.
- auth-store-debugAuth and store debugging for vercel-openclaw: admin-secret mode, Sign in with Vercel, session cookies, CSRF, LOCAL_READ_ONLY, Redis vs memory store, keyspace namespacing, and metadata shape migrations. Use when login, route authorization, Redis persistence, or metadata state is suspect.
- channel-debug-coreChannel webhook triage for vercel-openclaw Slack/Telegram/Discord/WhatsApp issues: prove deployment state, collect admin readiness endpoints, build evidence-first handoff before fixes.
- channel-forward-parityWebhook route parity audit for channel delivery changes: ensure terminal paths log, record lastForward, classify failures, and refresh stale sandbox port URLs.
- cron-watchdog-debugCron and watchdog debugging for vercel-openclaw: Vercel Cron auth, persisted OpenClaw jobs, cron wake keys, token refresh, restore oracle, hot spare, and watchdog reports. Use when scheduled OpenClaw jobs fail to wake or run, watchdog status is wrong, cron persistence is suspect, or /api/cron/watchdog behavior changes.
- discord-deliveryDiscord channel specialist workflow: debug interaction webhooks, Ed25519 signatures, deferred replies, workflow forwarding to /discord-webhook, integration reconcile, and token expiry.
- firewall-ai-gateway-debugFirewall and Vercel AI Gateway debugging for vercel-openclaw: network policy allowlists, OIDC token refresh, AI Gateway transform rules, firewall learning/enforcement, and sandbox.update networkPolicy calls. Use when model calls, egress, token refresh, or firewall policy application fails.
- gateway-proxy-debugGateway 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.
- lat-md>-
- launch-verify-debugLaunch verification and remote smoke debugging for vercel-openclaw: preflight, queue ping, ensureRunning, chatCompletions, wakeFromSleep, restorePrepared, channelReadiness, NDJSON progress, and vclaw create readiness. Use when launch verification, vclaw create validation, or remote smoke checks fail.