What is the purpose of the "Approval presets" section?

Resolved 💬 2 comments Opened Sep 8, 2025 by DanKaplanSES Closed Sep 8, 2025
💡 Likely answer: A maintainer (aibrahim-oai, contributor) responded on this thread — see the highlighted reply below.

What is the type of issue?

Documentation is confusing

What is the issue?

The Approval Presets page says:

Codex provides three main Approval Presets: - Read Only: Codex can read files and answer questions; edits, running commands, and network access require approval. - Auto: Codex can read files, make edits, and run commands in the workspace without approval; asks for approval outside the workspace or for network access. - Full Access: Full disk and network access without prompts; extremely risky. You can further customize how Codex runs at the command line using the --ask-for-approval and --sandbox options.
  1. This information seems redundant to me, but I probably don't understand: --ask-for-approval and --sandbox are fully documented earlier.
  2. I don't understand how to set/use these presets, which one is default, or how they differ from the flags mentioned in the last sentence.
  3. The page doesn't use the word "preset" anywhere else.
  4. npx --yes @openai/codex@latest help | grep -i 'preset' doesn't find anything.

Should this section be removed?

Where did you find it?

https://github.com/openai/codex/blob/main/docs/config.md#approval-presets

View original on GitHub ↗

2 Comments

aibrahim-oai contributor · 11 months ago

Those are the presets that shows on /approvals in the tui.

DanKaplanSES · 11 months ago

@aibrahim-oai If possible, I'd like to request reopening this:

  1. The documentation doesn't say this relates to /approvals
  2. This section is in the config.md documentation file, and as far as I can tell, this isn't a config.toml setting.
  3. I don't know exactly how this relates to --ask-for-approval and --sandbox. Is each preset synonymous to a combination of those flags? I'm inferring otherwise, because the last sentence says (emphasis mine), "You can further customize how Codex runs [by using the flags]". It may help to document that.
  4. If the presets and flags conflict (given point 3, I'm not sure if that's possible), which takes precedence?