Submit a toolSubmit

Codex won’t start: remove the retired untrusted approval_policy

If Codex or ChatGPT Work fails to start, replace retired `approval_policy = "untrusted"` with `on-request`. That value is retired and can block the client. Also set a sandbox mode you intend, or drop the explicit policy and use project `trust_level = "untrusted"` when you still want stricter command approvals. Short answer: 5 steps. 1) Confirm the client is dying on the retired policy; 2) Find every copy of the old setting; 3) Switch to a supported interactive pair; 4) Keep stricter approvals without the retired policy name; 5) Relaunch and verify with a known-good flag pair.

Last updated: · This page is the decision checklist; the tools list for “Fix Codex blocked by retired untrusted approval_policy” is a separate URL.

The problem: If Codex or ChatGPT Work fails to start, replace retired `approval_policy = "untrusted"` with `on-request`. That value is retired and can block the client. Also set a sandbox mode you intend, or drop the explicit policy and use project `trust_level = "untrusted"` when you still want stricter command approvals.

How do I fix this: Codex won’t start: remove the retired untrusted approval_policy?

  1. Confirm the client is dying on the retired policy

    OpenAI’s Agent approvals & security docs state Codex and ChatGPT Work no longer support `approval_policy = "untrusted"`, and that the retired setting can prevent either client from starting. If launch fails right after a config edit or MDM push, treat a leftover `untrusted` approval policy as the first suspect. Docs: https://learn.chatgpt.com/docs/agent-approvals-security

  2. Find every copy of the old setting

    Search user and project Codex config, profiles, startup scripts, and managed defaults for `approval_policy` set to `untrusted` (TOML like `approval_policy = "untrusted"` or CLI/config overrides that still pass that value). Remove or replace each hit—leaving one profile file with the old value is enough to break start.

  3. Switch to a supported interactive pair

    For interactive, read-only use, OpenAI documents: set `sandbox_mode = "read-only"` and `approval_policy = "on-request"`, or run `codex --sandbox read-only --ask-for-approval on-request`. With `on-request`, commands allowed by the sandbox can run without approval, read accessible files, and use network access if you enable it.

  4. Keep stricter approvals without the retired policy name

    To preserve a stricter command-approval rule, omit an explicit `approval_policy` and add a project entry under user-level `~/.codex/config.toml`: `[projects."/path/to/project"]` with `trust_level = "untrusted"`. Commands then require approval unless an execution-policy rule allows them; this also disables project-local configuration. Explicitly setting `on-request` overrides the project-derived policy.

  5. Relaunch and verify with a known-good flag pair

    Start Codex again. For everyday local work, OpenAI’s CLI reference recommends low-friction defaults such as `--sandbox workspace-write --ask-for-approval on-request`. Avoid `--dangerously-bypass-approvals-and-sandbox` / `--yolo` unless you are inside an externally hardened environment. CLI reference: https://developers.openai.com/codex/cli/reference

Which tools are best to fix Codex blocked by retired untrusted approval_policy?

Agent approvals & security

Official note that untrusted approval_policy is retired, migration examples, and on-request / trust_level guidance.

Codex CLI reference

Supported --sandbox and --ask-for-approval flags to relaunch after you fix config.

Codex

Product entry for Codex CLI / IDE after the config change.

OpenAI developer docs

Codex developer hub for config and security pages linked from the fix.

All tools for “Fix Codex blocked by retired untrusted approval_policy” →

Related fixes

See also AI tools launched today on the daily board.