From 6303b6df073683a986da900a22b52c76ee31fe74 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Fri, 3 Apr 2026 15:48:07 +0000 Subject: [PATCH] fix openclaw config --- config/openclaw/openclaw.json | 78 ++++++++++++++++------------------- 1 file changed, 36 insertions(+), 42 deletions(-) diff --git a/config/openclaw/openclaw.json b/config/openclaw/openclaw.json index 0a664b0..5f736b1 100644 --- a/config/openclaw/openclaw.json +++ b/config/openclaw/openclaw.json @@ -1,49 +1,43 @@ { - gateway: { - mode: "local", - bind: "loopback", - port: 2470, - trustedProxies: ["127.0.0.1", "::1"], - controlUi: { - enabled: true, - allowedOrigins: ["https://netty.harivan.sh"], - }, - auth: { - mode: "token", - token: "${OPENCLAW_GATEWAY_TOKEN}", + "gateway": { + "mode": "local", + "bind": "loopback", + "port": 2470, + "trustedProxies": ["127.0.0.1", "::1"], + "controlUi": { + "allowedOrigins": ["https://netty.harivan.sh"] }, + "auth": { + "mode": "token", + "token": "${OPENCLAW_GATEWAY_TOKEN}" + } }, - - channels: { - telegram: { - enabled: true, - botToken: "${TELEGRAM_BOT_TOKEN}", - dmPolicy: "pairing", - }, + "channels": { + "telegram": { + "botToken": "${TELEGRAM_BOT_TOKEN}", + "dmPolicy": "pairing" + } }, - - agents: { - defaults: { - workspace: "~/.openclaw/workspace", - model: { - primary: "anthropic/claude-sonnet-4-6", - }, - sandbox: { - mode: "non-main", + "agents": { + "defaults": { + "workspace": "~/.openclaw/workspace", + "skipBootstrap": true, + "model": { + "primary": "anthropic/claude-sonnet-4-6" }, + "sandbox": { + "mode": "non-main" + } + } + }, + "tools": { + "profile": "coding", + "fs": { + "workspaceOnly": true }, - }, - - tools: { - profile: "coding", - deny: [ - "browser", - "canvas", - "cron", - "gateway", - "nodes", - "sessions_send", - "sessions_spawn", - ], - }, + "loopDetection": { + "enabled": true + }, + "deny": ["sessions_send", "sessions_spawn"] + } }