From 631a874c7528b21d993d92daa2732dbbf6ba2fae Mon Sep 17 00:00:00 2001 From: ashisgreat22 Date: Fri, 20 Mar 2026 22:35:27 +0100 Subject: [PATCH] fix(openclaw): add token binding to gateway auth config Subagents require the gateway token to be explicitly defined in the config to inherit it correctly. Interpolate the OPENCLAW_GATEWAY_TOKEN env variable in the auth config. --- modules/openclaw-config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/openclaw-config.json b/modules/openclaw-config.json index 59901ac..5b44538 100644 --- a/modules/openclaw-config.json +++ b/modules/openclaw-config.json @@ -4,7 +4,8 @@ "bind": "loopback", "trustedProxies": ["::1", "127.0.0.1", "10.88.0.0/16", "10.89.0.0/16"], "auth": { - "mode": "token" + "mode": "token", + "token": "${OPENCLAW_GATEWAY_TOKEN}" }, "controlUi": { "dangerouslyAllowHostHeaderOriginFallback": true,