--dangerously-bypass-approvals-and-sandbox
The flag that skips all confirmations and runs commands without sandboxing (hidden alias: --yolo) — self-described as EXTREMELY DANGEROUS.
Specs
Verified:
- Kind
- Launch flag
- Syntax
- --dangerously-bypass-approvals-and-sandbox
- First seen
- —unverified
- Hidden alias
- --yolo (accepted in 0.171.0, absent from --help)
Official help verbatim: "Skip all confirmation prompts and execute commands without sandboxing. EXTREMELY DANGEROUS. Intended solely for running in environments that are externally sandboxed." A hidden alias `--yolo` exists — absent from --help but accepted by clap in 0.171.0 (binary strings place it adjacent to this flag). First-seen version is unverified.
Key features
- No confirmations, no sandbox — maximum-permission tier
- Officially intended only for externally sandboxed environments
- Hidden alias --yolo (the "yolo mode" people pass around is this)
Use cases
Only for automation inside an already-walled container or VM — not for your daily terminal.
Install
`codex exec --dangerously-bypass-approvals-and-sandbox "..."` (equivalently `--yolo`).
Caveats
No approvals, no sandbox — whatever the model generates executes directly; all deletion/exfiltration risk is on you.
Added
Updated
Verified