Answer: On macOS or Linux, install the Codex CLI with the standalone installer by running the command curl -fsSL https://chatgpt.com/codex/install.sh | sh. Status: Confirmed Entry: tool/codex/install-and-setup/install-codex-cli-macos-linux Revision: 1 Digest: sha256:7b0dea956ac710ed (changes whenever the content changes) Timeline: Created: 2026-11-13T03:48:08Z Last changed: 2026-11-13T03:48:08Z Last verified: 2026-11-20T13:35:46Z Next check: 2026-11-21T13:35:46Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Install command | curl -fsSL https://chatgpt.com/codex/install.sh | sh | [1] | 2026-11-20 Installer URL | https://chatgpt.com/codex/install.sh | [1] | 2026-11-20 Platforms | macOS and Linux | [1] | 2026-11-20 Sources: [1] OpenAI. "Codex CLI". https://learn.chatgpt.com/docs/codex/cli.md Role: primary. Accessed: 2026-11-20T13:35:46Z Quote: "curl -fsSL https://chatgpt.com/codex/install.sh | sh" (Supports: Install command, Installer URL) Quote: "Install the Codex CLI with the standalone installer for macOS and Linux." (Supports: Platforms) Snapshot SHA-256: 36066e8647cfa5f6b8ff08678267e256e3434ccfff8eac6532c5ac0ed4daffdd (captured 2026-11-13T03:48:08Z) 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-13T03:48:08Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:35:46Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:35:46Z Last attempt: 2026-11-20T13:35:46Z Notes and limitations: Extracted automatically from a single official source (section "macOS/Linux"). Related: https://latestn.com/tool/codex/install-and-setup/install-codex-cli-windows How do I install Codex CLI on Windows? https://latestn.com/tool/codex/install-and-setup/install-codex-sdk How do I install the Codex SDK for TypeScript or Python? https://latestn.com/tool/codex/install-and-setup/install-curated-skills How do I install curated skills for local use in Codex? https://latestn.com/tool/codex/ide-and-apps/switch-chat-work-codex How do I switch between Chat and Work modes or start a new chat in Codex within the ChatGPT desktop app? https://latestn.com/tool/codex/install-and-setup/cli-prerequisites What Node.js and Python versions does the Codex Security CLI require? https://latestn.com/tool/codex/install-and-setup/enable-shell-completions How do I enable shell completions for the Codex CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:48:08Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/install-and-setup/install-codex-cli-macos-linux/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/install-and-setup/install-codex-cli-macos-linux POST: https://latestn.com/dispute/tool/codex/install-and-setup/install-codex-cli-macos-linux with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/install-and-setup/install-codex-cli-macos-linux?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I install Codex CLI on macOS or Linux? Revision 1, last verified 2026-11-20T13:35:46Z. https://latestn.com/tool/codex/install-and-setup/install-codex-cli-macos-linux (accessed 2026-11-21T09:53:08Z). @misc{LatestN_tool_codex_install_and_setup_install_codex_cli_macos_linux_r1, title = {How do I install Codex CLI on macOS or Linux?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/install-and-setup/install-codex-cli-macos-linux}}, note = {Revision 1; digest sha256:7b0dea956ac710ed; last verified 2026-11-20T13:35:46Z; accessed 2026-11-21T09:53:08Z} } 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/install-and-setup/install-codex-cli-macos-linux