YOLO mode made host commands fast by skipping approval prompts. That is useful for trusted local automation and externally sandboxed runs, but it is too blunt as the only good answer for everyday use.
We are not changing the default today.
auto is an opt-in path we are testing in public. If it proves useful, we will consider making it the safer default for more users, but the principle stays the same: OpenClaw should protect people without taking away operator choice.
Auto is the mode that fits Enterprise environments best: policy runs first, low-risk misses can be reviewed by a model, and anything uncertain still routes to a human.
Safe, repeatable commands can run without nagging you. Commands that miss policy go to a reviewer first. If the reviewer is not confident, OpenClaw asks you.
OpenAI already ships this pattern as Guardian inside Codex. Through the Codex harness, OpenAI-backed OpenClaw sessions can use Codex-native reviewed approvals. Now we are bringing the same shape to OpenClaw host exec as an opt-in mode for everyone.
Why This Exists
Codex already made this shift in its own permission presets. Its Guardian-reviewed flow lets common workspace work proceed while still requiring review for escapes such as network access or writes outside the workspace.
OpenClaw is bringing the same shape to host exec. tools.exec.mode: "auto" keeps the agent moving without turning every command into a permanent yes.
Allowlist misses stop and wait for an operator. Good for strict setups, noisy for busy agents.
Deterministic matches run. Misses go through OpenClaw's native auto reviewer before a human fallback.
Host exec runs without approval prompts. Useful only when the surrounding environment is already trusted.
What Auto Does
Host exec starts with OpenClaw config: what the agent is allowed to ask for. Most users only need that setting. Hosts can still apply stricter local policy.
The reviewer model is separate from the main agent model. You can keep the agent on local models for normal work and point exec review at a frontier model such as openai/gpt-5.5 when you want stronger judgment on approval misses. That gives you the best of both worlds: local-first execution for ordinary turns, higher-confidence review only when host access needs a decision.
In auto mode, OpenClaw handles a host command like this:
- If the command matches the allowlist or a deterministic safe-bin rule, it runs.
- If the command misses policy, OpenClaw builds a bounded review packet: command, argv, cwd, env key names, host, and parser analysis.
- The auto reviewer can allow one low-risk execution only.
- Anything ambiguous, higher-risk, unparseable, timed out, model-unavailable, or reviewer-directed falls back to human approval.
- If no UI or configured approval client can answer, OpenClaw uses the host’s configured fallback.
auto does not override local safety settings. A host configured to always ask still asks. A host configured to deny still denies.
Enabling Auto
For a local gateway-host setup:
openclaw config set tools.exec.host gateway
openclaw config set tools.exec.mode auto
That host has now opted into auto for host exec.
If you want review to use a stronger model than the main agent, set the reviewer model separately:
openclaw config set tools.exec.reviewer.model openai/gpt-5.5
Leave it unset to reuse the current agent model.
If you use the Codex harness, this maps OpenAI-backed sessions onto Codex Guardian-reviewed approvals with workspace-write sandboxing when available.
What Gets Asked
Human approval is still the final authority when the reviewer cannot safely say yes.
An approval prompt can offer:
allow-once: run this exact request once.allow-always: persist a durable allowlist entry when the request supports it.deny: do not run it.
allow-once is intentionally narrow. For node-host runs, OpenClaw binds the approval to the canonical command plan, cwd, argv, and session context. If the caller changes the command after the approval request was created, the run is rejected instead of silently executing the changed request.
Approvals in Chat
Approvals are no longer trapped in a local terminal. OpenClaw can route approval prompts into the places operators already watch, including Slack, Telegram, and iMessage.
The detailed setup lives in Exec approvals - advanced.
Security Notes
auto reduces prompt noise. It still respects the host policy.
The reviewer may only allow one low-risk execution. It is prompted to treat the command text, argv, cwd, env keys, heredocs, strings, filenames, and metadata as untrusted data. If that untrusted data tries to instruct the reviewer or request a decision, OpenClaw defers to a human.
YOLO remains available for environments that are already externally sandboxed or deliberately trusted. For Enterprise environments, auto is the better fit: fewer prompts than strict ask mode, more review than full host access, and a human fallback when the reviewer cannot safely say yes. We are not forcing that switch yet.