Answer: Generate a completion script for your shell with `codex completion zsh` (or bash, fish, or PowerShell), then load it from your shell configuration, for example by adding `eval "$(codex completion zsh)"` for the Z shell. Restart the shell, type `codex`, and press Tab to verify completion. Status: Confirmed Entry: tool/codex/install-and-setup/enable-shell-completions Revision: 1 Digest: sha256:eee50e51c1af7d13 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:47:55Z Last changed: 2026-11-13T03:47:55Z Last verified: 2026-11-20T13:35:31Z Next check: 2026-11-21T13:35:31Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command | codex completion zsh | [1] | 2026-11-20 zsh load line | eval "$(codex completion zsh)" | [1] | 2026-11-20 compdef fix | autoload -Uz compinit && compinit | [1] | 2026-11-20 supported shells | Bash, the Z shell, Fish, or PowerShell | [1] | 2026-11-20 Sources: [1] OpenAI. "CLI customization". https://learn.chatgpt.com/docs/cli-customization.md Role: primary. Accessed: 2026-11-20T13:35:31Z Quote: "codex completion zsh" (Supports: command) Quote: "eval "$(codex completion zsh)"" (Supports: zsh load line) Quote: "autoload -Uz compinit && compinit" (Supports: compdef fix) Quote: "Generate a completion script for Bash, the Z shell, Fish, or PowerShell:" (Supports: supported shells) Snapshot SHA-256: 7f59bf08264c63061b59a6a0050376c4633d22c9e96915ec1d565e85a032b382 (captured 2026-11-13T03:47:55Z) 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:47:55Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:35:31Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:35:31Z Last attempt: 2026-11-20T13:35:31Z Notes and limitations: Extracted automatically from a single official source (section "Shell completions"). Related: https://latestn.com/tool/codex/install-and-setup/install-codex-cli-macos-linux How do I install Codex CLI on macOS or Linux? 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/ide-and-apps/set-up-mobile-access How do I set up mobile access to Codex on my phone from a connected computer? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:47:55Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/install-and-setup/enable-shell-completions/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/enable-shell-completions POST: https://latestn.com/dispute/tool/codex/install-and-setup/enable-shell-completions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/install-and-setup/enable-shell-completions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable shell completions for the Codex CLI? Revision 1, last verified 2026-11-20T13:35:31Z. https://latestn.com/tool/codex/install-and-setup/enable-shell-completions (accessed 2026-11-21T09:56:43Z). @misc{LatestN_tool_codex_install_and_setup_enable_shell_completions_r1, title = {How do I enable shell completions for the Codex CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/install-and-setup/enable-shell-completions}}, note = {Revision 1; digest sha256:eee50e51c1af7d13; last verified 2026-11-20T13:35:31Z; accessed 2026-11-21T09:56:43Z} } 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/enable-shell-completions