Answer: The Codex Security CLI returns exit codes 0, 1, 2, 130, and 143. Exit 0 indicates success, 1 indicates a severity threshold met or unfixed finding, 2 indicates a failure, 130 indicates Ctrl-C interruption, and 143 indicates SIGTERM termination. Status: Confirmed Entry: tool/codex/troubleshooting/exit-codes Revision: 1 Digest: sha256:b7a887a7d6cfb5b8 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:53:11Z Last changed: 2026-11-13T03:53:11Z Last verified: 2026-11-20T13:41:44Z Next check: 2026-11-21T13:41:44Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of exit code 0 | 0 | [1] | 2026-11-20 exit code 1 | 1 | [1] | 2026-11-20 exit code 2 | 2 | [1] | 2026-11-20 exit code 130 | 130 | [1] | 2026-11-20 exit code 143 | 143 | [1] | 2026-11-20 Sources: [1] OpenAI. "Codex Security CLI reference". https://learn.chatgpt.com/docs/security/cli/reference.md Role: primary. Accessed: 2026-11-20T13:41:44Z Quote: "`0` | A scan or bulk campaign completed and passed its severity policy" (Supports: exit code 0) Quote: "`1` | A scan or bulk campaign meets its severity threshold" (Supports: exit code 1) Quote: "`2` | An input, execution, result-integrity, required-output, or export failure occurred" (Supports: exit code 2) Quote: "`130` | Ctrl-C interrupted a scan or publication." (Supports: exit code 130) Quote: "`143` | SIGTERM terminated a scan or publication." (Supports: exit code 143) Snapshot SHA-256: 7918173e808c58c5324c5881fc074e87b7b9ec1476aa9f129f0bb5d32b9c5a2b (captured 2026-11-19T13:32:01Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-19T13:32:01Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:41:44Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:41:44Z Last attempt: 2026-11-20T13:41:44Z Notes and limitations: Extracted automatically from a single official source (section "Exit codes and signals"). Related: https://latestn.com/tool/codex/troubleshooting/fix-input-monitoring-macos How do I fix Input Monitoring permission issues for Codex Micro on macOS? https://latestn.com/tool/codex/troubleshooting/fix-windows-error-1385 How do I fix Windows error 1385 when using the Codex sandbox? https://latestn.com/tool/codex/troubleshooting/headless-login How do I sign in to Codex on a headless device? https://latestn.com/tool/codex/troubleshooting/codex-diagnostics-env-vars What environment variables can I use to diagnose Codex issues? https://latestn.com/tool/codex/troubleshooting/deep-scan-interruption-failure What should I do if a Codex deep scan is interrupted or fails? https://latestn.com/tool/codex/troubleshooting/desktop-app-config-server-signin What are the limitations of the Codex desktop app when using a configuration server that requires sign-in? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:53:11Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/troubleshooting/exit-codes/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/troubleshooting/exit-codes POST: https://latestn.com/dispute/tool/codex/troubleshooting/exit-codes with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/troubleshooting/exit-codes?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What exit codes does the Codex Security CLI return? Revision 1, last verified 2026-11-20T13:41:44Z. https://latestn.com/tool/codex/troubleshooting/exit-codes (accessed 2026-11-21T09:53:03Z). @misc{LatestN_tool_codex_troubleshooting_exit_codes_r1, title = {What exit codes does the Codex Security CLI return?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/troubleshooting/exit-codes}}, note = {Revision 1; digest sha256:b7a887a7d6cfb5b8; last verified 2026-11-20T13:41:44Z; accessed 2026-11-21T09:53:03Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/troubleshooting/exit-codes