Command reference Β· Codex CLI
/permissions
Controls which actions Codex may perform without asking (approval mode).
/permissions is the successor to /approvals and controls the approval mode of the running session. It sets how much Codex may do on its own before asking for confirmation β comparable to the startup flags --ask-for-approval/--approval-mode and --sandbox (e.g. workspace-write or danger-full-access).
π THE SAME TASK (βAUTONOMY MODE / RUN WITHOUT CONFIRMATIONβ) ON OTHER PLATFORMS
- Claude Code: /permissions
- Cursor CLI: /run-everything
- Antigravity CLI: agy --dangerously-skip-permissions
β WHEN TO USE IT?
Temporarily grant more freedom for riskier steps
/permissions β loosen the sandbox/approval mode before Codex needs to install dependencies or run migrations
Restrict again after a sensitive action
/permissions β switch back to a stricter mode after Codex has had filesystem access
β WHEN NOT TO?
Approvals should be fixed for the whole session from the start
Manually switching mid-session is unnecessary if the desired mode is already clear before starting.
Better: Set the mode directly at startup, e.g. with --full-auto or --sandbox workspace-write
SOURCES
- Codex CLI docs: Slash Commands β learn.chatgpt.com
MORE COMMANDS Β· Codex CLI