From 587dd6ae6467eae3e0afc5a27be1e466eb5a6639 Mon Sep 17 00:00:00 2001 From: Mark Rachapoom Date: Fri, 20 Mar 2026 16:26:25 -0700 Subject: [PATCH] feat: make gateway client ID configurable via OPENCLAW_GATEWAY_CLIENT_ID The desktop app runs in daemonless mode without device identity files. The gateway clears operator scopes for "gateway-client" connections that lack device identity. Allow the client ID to be overridden via env var so the desktop can identify as "openclaw-control-ui" and receive operator scopes with dangerouslyDisableDeviceAuth enabled. Fallback to "gateway-client" preserves existing behavior for CLI and web users. Bump to v2.3.19. Made-with: Cursor --- apps/web/lib/agent-runner.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/lib/agent-runner.ts b/apps/web/lib/agent-runner.ts index b8dbd769824..7a2a0ffec97 100644 --- a/apps/web/lib/agent-runner.ts +++ b/apps/web/lib/agent-runner.ts @@ -386,7 +386,7 @@ export function buildConnectParams( ) : DEFAULT_GATEWAY_CLIENT_CAPS; const clientMode = options?.clientMode ?? "backend"; - const clientId = "gateway-client"; + const clientId = process.env.OPENCLAW_GATEWAY_CLIENT_ID || "gateway-client"; const role = "operator"; const scopes = ["operator.read", "operator.write", "operator.admin"]; diff --git a/package.json b/package.json index 46468e532b4..50898f82e65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "denchclaw", - "version": "2.3.18", + "version": "2.3.19", "description": "Fully Managed OpenClaw Framework for managing your CRM, Sales Automation and Outreach agents. The only local productivity tool you need.", "keywords": [], "homepage": "https://github.com/DenchHQ/DenchClaw#readme",