OpenAI Codex CLI 0.164.0 was published on October 23, 2026 at 04:48 UTC in the openai/codex releases. It adds a /presets menu with ten numbered slots for reusable prompts and slash commands, lets /model and /permissions take their settings inline, adds enterprise sign-in for MCP connections and fixes session resume after history compression. Everything below comes from the release notes and the pull requests they link.

Applies to: Codex CLI 0.164.0, release dated October 23, 2026. Last checked: October 25, 2026.

On this page

Reusable presets in ten slots

The headline feature is /presets. The release notes describe ten numbered slots for saving reusable prompts and slash commands, with a keyboard menu for quick access. The pull requests add the details:

  • Saving. A preset can be created from the text in the composer or from the current model, reasoning effort and speed settings, and presets are stored under tui.presets in the active user configuration (#54380). Current permission settings can also be saved as a preset (#54385).
  • Running. The menu opens above the composer. Pressing 0 to 9 runs a saved preset or creates one in an empty slot, and n, s, e and d create, start from current settings, edit and delete presets (#54381).
  • Shortcut. The menu gets a tui.keymap.chat.open_presets binding with an implicit leader p shortcut that yields to existing bindings, and the action appears in /keymap (#54381).

Replacing or deleting a preset asks for confirmation first, according to #54380. Terminal settings beyond presets are covered in the Codex CLI customization guide.

Inline /model and /permissions

/model now accepts the model, reasoning effort and speed as arguments, so they can be set without opening the picker. Pull request #54378 says these inline values update the current session without changing saved defaults, accept both space-separated and = flag values, apply to the current model when the model is omitted, and are validated before they take effect. Bare /model still opens the picker.

/permissions can select a built-in or custom permission profile directly. The example in #54383 is /permissions :read-only, and the aliases :ask-for-approval and :approve-for-me are supported. The same change keeps the full-access confirmation and holds queued input until the selection is confirmed. A related fix in the release notes makes queued prompts wait for pending permission selections to resolve before continuing.

MCP, credentials and Bedrock

Area What 0.164.0 changes
Enterprise MCP MCP connections can authenticate with eligible Codex account grants or a dedicated sign-in, including OAuth clients that require secrets (release notes, #55334)
Credential masking Credentials are masked during supported remote Bash commands and Zsh snapshot sessions, including credentials from custom providers (release notes)
Amazon Bedrock The Bedrock setup wizard is on by default; it can be turned off with features.bedrock_setup_wizard = false (#56033)
Image previews Viewed and generated images show in the fullscreen transcript on terminals that support Kitty or Sixel graphics (#54216)

For credential masking, #54309 says supported non-login Bash commands on Linux and macOS receive credential placeholders, with the real credentials injected by a proxy for matching destinations, and that Codex falls back to unmasked execution with a warning where masking is unavailable. How MCP servers are configured in Codex is covered in Codex MCP setup.

Fixes

From the release notes:

  • A failed compaction no longer leaves a partial summary in the conversation history, and background compaction failures fall back without panicking.
  • Resuming a session now finds compressed histories and restores saved thread settings instead of replacing them with global defaults. Scripted resumes are covered in the codex exec guide.
  • On Windows, HTTPS and WebSocket connections handle proxy authentication challenges with the signed-in user’s Negotiate or NTLM credentials.
  • CLI configuration overrides are kept when -c or --config appears at more than one subcommand level.
  • Sandbox checks are hardened for case-variant metadata paths on macOS and for replaceable symlinks used to locate executables.
  • Disk use is reduced by pruning unused installations, cleaning abandoned marketplace checkouts and bounding daemon logs.

Install or update

The Codex README gives these install commands. On macOS or Linux:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

On Windows:

powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

With npm or Homebrew:

npm install -g @openai/codex
brew install --cask codex

Release binaries for each platform are attached to the 0.164.0 release. For what Codex is and how its CLI, IDE extension and app differ, see What is Codex.