Skip to content

[Bug]: openclaw devices list --> Error,[openclaw] Failed to start CLI: Error: gateway closed (1000 normal closure): no close reason #47103

@laogiant

Description

@laogiant

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

  1. Run [openclaw devices list]

  2. Show [ 🦞 OpenClaw 2026.3.13 (61d171a) — Your config is valid, your assumptions are not.]

  3. 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)

  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions