I have openclaw running in a docker container on my VPS. I've tried editing the docker-compose.yaml for the container to run as root, I've tried editing openclaw.json to include elevated privileges, I have tried /elevate full in the chat in the webui... I have changed the syntax in a myriad of different ways but I cannot seem to give elevated privileges to my clawdbot. Any idea?
root@THE-BRAIN:~/openclaw# cat docker-compose.yml
services:
openclaw-gateway:
build: .
image: ${OPENCLAW_IMAGE:-openclaw:local}
privileged: true
user: "0:0"
environment:
HOME: /root
TERM: xterm-256color
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
OPENCLAW_TOOLS_ELEVATED_ENABLED: true
OPENCLAW_TOOLS_ELEVATED_ALLOW_FROM: true
OPENCLAW_TOOLS_EXEC_ENABLED: true
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY}
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE}
volumes:
- ${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw
- ${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace
ports:
- "127.0.0.1:${OPENCLAW_GATEWAY_PORT:-18789}:18789"
- "127.0.0.1:${OPENCLAW_BRIDGE_PORT:-18790}:18790"
init: true
restart: unless-stopped
command:
[
"node",
"dist/index.js",
"gateway",
"--bind",
"lan",
"--port",
"18789",
"--allow-unconfigured",
]
root@THE-BRAIN:~/openclaw# cat /root/.openclaw/openclaw.json
.....
},
"tools": {
"elevated": {
"enabled": true,
"allowFrom": {
"webchat": ["*"]
}
}
}
}