Bug type
Regression (worked before, now fails)
Summary
Can't run command openclaw devices list/approve, show error as below.
[openclaw] Failed to start CLI: Error: gateway closed (1000 normal closure): no close reason
Steps to reproduce
-
Run [openclaw devices list]
-
Show [ 🦞 OpenClaw 2026.3.13 (61d171a) — Your config is valid, your assumptions are not.]
-
Then show error:
[openclaw] Failed to start CLI: Error: gateway closed (1000 normal closure): no close reason
Gateway target: ws://127.0.0.1:18789
Source: local loopback
Config: /home/ubuntu/.openclaw/openclaw.json
Bind: loopback
at Object.onClose (file:///home/ubuntu/.npm-global/lib/node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js:60780:10)
at WebSocket. (file:///home/ubuntu/.npm-global/lib/node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js:59871:23)
at WebSocket.emit (node:events:519:28)
at WebSocket.emitClose (/home/ubuntu/.npm-global/lib/node_modules/openclaw/node_modules/ws/lib/websocket.js:273:10)
at Socket.socketOnClose (/home/ubuntu/.npm-global/lib/node_modules/openclaw/node_modules/ws/lib/websocket.js:1346:15)
at Socket.emit (node:events:519:28)
at TCP. (node:net:346:12)
-
npm uninstall openclaw then install again. The error still exist.
Expected behavior
Expect run command with no error, and show devices list.
Actual behavior
Show error as below:
[openclaw] Failed to start CLI: Error: gateway closed (1000 normal closure): no close reason
Gateway target: ws://127.0.0.1:18789
Source: local loopback
Config: /home/ubuntu/.openclaw/openclaw.json
Bind: loopback
at Object.onClose (file:///home/ubuntu/.npm-global/lib/node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js:60780:10)
at WebSocket. (file:///home/ubuntu/.npm-global/lib/node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js:59871:23)
at WebSocket.emit (node:events:519:28)
at WebSocket.emitClose (/home/ubuntu/.npm-global/lib/node_modules/openclaw/node_modules/ws/lib/websocket.js:273:10)
at Socket.socketOnClose (/home/ubuntu/.npm-global/lib/node_modules/openclaw/node_modules/ws/lib/websocket.js:1346:15)
at Socket.emit (node:events:519:28)
at TCP. (node:net:346:12)
OpenClaw version
2026.3.13
Operating system
ubuntu 24.04
Install method
npm
Model
codex 5.3
Provider / routing chain
CLI in ubuntu.
Config file / key location
No response
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Bug type
Regression (worked before, now fails)
Summary
Can't run command openclaw devices list/approve, show error as below.
[openclaw] Failed to start CLI: Error: gateway closed (1000 normal closure): no close reason
Steps to reproduce
Run [openclaw devices list]
Show [ 🦞 OpenClaw 2026.3.13 (61d171a) — Your config is valid, your assumptions are not.]
Then show error:
[openclaw] Failed to start CLI: Error: gateway closed (1000 normal closure): no close reason
Gateway target: ws://127.0.0.1:18789
Source: local loopback
Config: /home/ubuntu/.openclaw/openclaw.json
Bind: loopback
at Object.onClose (file:///home/ubuntu/.npm-global/lib/node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js:60780:10)
at WebSocket. (file:///home/ubuntu/.npm-global/lib/node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js:59871:23)
at WebSocket.emit (node:events:519:28)
at WebSocket.emitClose (/home/ubuntu/.npm-global/lib/node_modules/openclaw/node_modules/ws/lib/websocket.js:273:10)
at Socket.socketOnClose (/home/ubuntu/.npm-global/lib/node_modules/openclaw/node_modules/ws/lib/websocket.js:1346:15)
at Socket.emit (node:events:519:28)
at TCP. (node:net:346:12)
npm uninstall openclaw then install again. The error still exist.
Expected behavior
Expect run command with no error, and show devices list.
Actual behavior
Show error as below:
[openclaw] Failed to start CLI: Error: gateway closed (1000 normal closure): no close reason
Gateway target: ws://127.0.0.1:18789
Source: local loopback
Config: /home/ubuntu/.openclaw/openclaw.json
Bind: loopback
at Object.onClose (file:///home/ubuntu/.npm-global/lib/node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js:60780:10)
at WebSocket. (file:///home/ubuntu/.npm-global/lib/node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js:59871:23)
at WebSocket.emit (node:events:519:28)
at WebSocket.emitClose (/home/ubuntu/.npm-global/lib/node_modules/openclaw/node_modules/ws/lib/websocket.js:273:10)
at Socket.socketOnClose (/home/ubuntu/.npm-global/lib/node_modules/openclaw/node_modules/ws/lib/websocket.js:1346:15)
at Socket.emit (node:events:519:28)
at TCP. (node:net:346:12)
OpenClaw version
2026.3.13
Operating system
ubuntu 24.04
Install method
npm
Model
codex 5.3
Provider / routing chain
CLI in ubuntu.
Config file / key location
No response
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response