fix openclaw config

This commit is contained in:
Harivansh Rathi 2026-04-03 15:48:07 +00:00
parent 630ec774ce
commit 6303b6df07

View file

@ -1,49 +1,43 @@
{ {
gateway: { "gateway": {
mode: "local", "mode": "local",
bind: "loopback", "bind": "loopback",
port: 2470, "port": 2470,
trustedProxies: ["127.0.0.1", "::1"], "trustedProxies": ["127.0.0.1", "::1"],
controlUi: { "controlUi": {
enabled: true, "allowedOrigins": ["https://netty.harivan.sh"]
allowedOrigins: ["https://netty.harivan.sh"],
},
auth: {
mode: "token",
token: "${OPENCLAW_GATEWAY_TOKEN}",
},
},
channels: {
telegram: {
enabled: true,
botToken: "${TELEGRAM_BOT_TOKEN}",
dmPolicy: "pairing",
},
},
agents: {
defaults: {
workspace: "~/.openclaw/workspace",
model: {
primary: "anthropic/claude-sonnet-4-6",
},
sandbox: {
mode: "non-main",
},
},
},
tools: {
profile: "coding",
deny: [
"browser",
"canvas",
"cron",
"gateway",
"nodes",
"sessions_send",
"sessions_spawn",
],
}, },
"auth": {
"mode": "token",
"token": "${OPENCLAW_GATEWAY_TOKEN}"
}
},
"channels": {
"telegram": {
"botToken": "${TELEGRAM_BOT_TOKEN}",
"dmPolicy": "pairing"
}
},
"agents": {
"defaults": {
"workspace": "~/.openclaw/workspace",
"skipBootstrap": true,
"model": {
"primary": "anthropic/claude-sonnet-4-6"
},
"sandbox": {
"mode": "non-main"
}
}
},
"tools": {
"profile": "coding",
"fs": {
"workspaceOnly": true
},
"loopDetection": {
"enabled": true
},
"deny": ["sessions_send", "sessions_spawn"]
}
} }