promptgarten 🌱

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

Compare all 28 tasks β†’

βœ… 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

MORE COMMANDS Β· Codex CLI

/status/plan/review/diff/resume/new/fork/mcp/skills/goalcodex execcodex review

All commands Β· Codex CLI β†’

Share:𝕏inπŸ’¬