feat: upgrade from [email protected] to [email protected]#83
feat: upgrade from [email protected] to [email protected]#83mgpai22 wants to merge 1 commit intocloudflare:mainfrom
Conversation
BREAKING CHANGE: Container env vars renamed from CLAWDBOT_* to OPENCLAW_* and CLAWDBOT_BIND_MODE worker env var renamed to OPENCLAW_BIND_MODE. - Rename npm package from clawdbot to openclaw in Dockerfile - Update all config paths from .clawdbot to .openclaw - Rename container env vars (CLAWDBOT_GATEWAY_TOKEN -> OPENCLAW_GATEWAY_TOKEN, CLAWDBOT_DEV_MODE -> OPENCLAW_DEV_MODE, CLAWDBOT_BIND_MODE -> OPENCLAW_BIND_MODE) - Update CLI references from clawdbot to openclaw in process detection - Update R2 sync/restore paths from clawdbot/ to openclaw/ - Add backward-compatible R2 restore from legacy clawdbot/ backup dirs with automatic config file rename (clawdbot.json -> openclaw.json) - Generate random gateway token when none provided, since openclaw v2026.1.29 requires auth for non-loopback binds (--bind lan)
|
Deployment Notes - Additional Changes Needed Successfully deployed this PR but encountered two issues that needed fixes:
The openclaw Control UI client doesn't automatically pass the ?token= parameter from the page URL to the WebSocket connection. This causes authentication failures even when users provide the correct token. Fix: Modified the worker to automatically inject the token into WebSocket connections (see src/index.ts): // Inject gateway token into WebSocket URL if (tokenToUse) {
The admin API routes in src/routes/api.ts were not updated and still reference clawdbot devices instead of openclaw devices. This Fix: Updated all CLI commands from clawdbot devices to openclaw devices in src/routes/api.ts (lines 36, 88, 120, 147). Suggested PR Updates:
|
|
Can someone please share an estimate on this? This is a breaking change and I want to use Cloudflare Sandbox to install Moltworker but waiting for this name change and repo change release to happen. Also why 29? Why not directly move to 30? |
BREAKING: clawdbot is dead, long live openclaw - Dockerfile: npm install -g [email protected] (the prophecy fulfilled) - Env vars: CLAWDBOT_* → OPENCLAW_* (identity crisis resolved) - Config paths: .clawdbot → .openclaw (new home who dis) - R2 paths: clawdbot/ → openclaw/ with legacy migration (backward compat for the old heads) - Auto-generate gateway token when none provided (security by default, chaos by choice) The snake has shed its skin. The claw remains sharp. Co-authored-by: mgpai22 (cloudflare#83) Dedicated to everyone who submitted a bug report against the wrong package name 🙏
|
Anyone have a good fork for this? |
BREAKING CHANGE: Container env vars renamed from CLAWDBOT_* to OPENCLAW_* and CLAWDBOT_BIND_MODE worker env var renamed to OPENCLAW_BIND_MODE.