#Custom webchat client getting missing scope: operator.read and operator.write

1 messages · Page 1 of 1 (latest)

weary otter
#

Hi, I'm building a custom browser-based chat interface for OpenClaw. My webchat client connects successfully to the gateway but gets these errors on every request:

  • chat.history fails: missing scope: operator.read
  • chat.send fails: missing scope: operator.write

My connect params:

  • client.id: "gateway-client"
  • client.mode: "backend"
  • role: "operator"
  • scopes: ["operator.read", "operator.write"]
  • auth.token: [shared gateway token - redacted]

Gateway version: 2026.5.3-1
Running on loopback (127.0.0.1)

What am I missing to get operator scopes granted to a browser webchat client?

clear belfryBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution