Fix Codex errors

Find your problem by the symptom or the exact error text below. Each fix says which Codex surface and OS it applies to, and links to OpenAI's own documentation. If nothing matches, run codex --version, note your OS, and search the openai/codex GitHub issues before opening a new one.

Before you dig in

  1. Update first. Many problems are fixed in newer releases. See update Codex.
  2. Turn on a log for the CLI: codex -c log_dir=./.codex-log, then read ./.codex-log/codex-tui.log.
  3. Know where logs live. Session transcripts are in ~/.codex/sessions. macOS desktop app logs are in ~/Library/Logs/com.openai.codex/. Review logs for secrets before sharing them.
  4. Send feedback from Codex. Type / in the composer and choose feedback to get a session ID you can share with OpenAI.

In this section

Sources

We link to the official source for every instruction on this page. If anything here disagrees with them, trust the official source and tell us.