Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
openclaw approvalsManage exec approvals for the local host, gateway host, or a node host. By default, commands target the local approvals file on disk. Use
--gateway--nodeAlias:
openclaw exec-approvalsRelated:
openclaw exec-policyopenclaw exec-policytools.exec.*Use it when you want to:
tools.exec.*~/.openclaw/exec-approvals.jsonExamples:
bashopenclaw exec-policy show openclaw exec-policy show --json openclaw exec-policy preset yolo openclaw exec-policy preset cautious --json openclaw exec-policy set --host gateway --security full --ask off --ask-fallback full
Output modes:
--json--jsonCurrent scope:
exec-policy--host nodeopenclaw exec-policy showhost=nodeIf you need to edit remote host approvals directly, keep using
openclaw approvals set --gatewayopenclaw approvals set --node <id|name|ip>bashopenclaw approvals get openclaw approvals get --node <id|name|ip> openclaw approvals get --gateway
openclaw approvals gettools.execPrecedence is intentional:
tools.exec--nodetools.execbashopenclaw approvals set --file ./exec-approvals.json openclaw approvals set --stdin <<'EOF' { version: 1, defaults: { security: "full", ask: "off" } } EOF openclaw approvals set --node <id|name|ip> --file ./exec-approvals.json openclaw approvals set --gateway --file ./exec-approvals.json
set--file--stdinFor a host that should never stop on exec approvals, set the host approvals defaults to
fulloffbashopenclaw approvals set --stdin <<'EOF' { version: 1, defaults: { security: "full", ask: "off", askFallback: "full" } } EOF
Node variant:
bashopenclaw approvals set --node <id|name|ip> --stdin <<'EOF' { version: 1, defaults: { security: "full", ask: "off", askFallback: "full" } } EOF
This changes the host approvals file only. To keep the requested OpenClaw policy aligned, also set:
bashopenclaw config set tools.exec.host gateway openclaw config set tools.exec.security full openclaw config set tools.exec.ask off
Why
tools.exec.host=gatewayhost=autogateway/exec host=gatewayThis matches the current host-default YOLO behavior. Tighten it if you want approvals.
Local shortcut:
bashopenclaw exec-policy preset yolo
That local shortcut updates both the requested local
tools.exec.*bashopenclaw approvals allowlist add "~/Projects/**/bin/rg" openclaw approvals allowlist add --agent main --node <id|name|ip> "/usr/bin/uptime" openclaw approvals allowlist add --agent "*" "/usr/bin/uname" openclaw approvals allowlist remove "~/Projects/**/bin/rg"
getsetallowlist add|remove--node <id|name|ip>--gateway--url--token--timeout--jsonTargeting notes:
--gateway--nodeallowlist add|remove--agent <id>*--nodeopenclaw nodes--agent"*"system.execApprovals.get/set~/.openclaw/exec-approvals.json© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine