vibe·code24/7
← all news
·4 minopenaicodexreleasesclimcpbedrock

codex cli 0.164.0: ten /presets slots, inline /model and /permissions arguments, off-by-default credential masking

OpenAI's Codex CLI 0.164.0 (October 23, 2026) adds ten numbered /presets slots for reusable prompts and slash commands, lets you set model, reasoning effort, speed and permission profile inline from /model and /permissions, and enables the Amazon Bedrock setup wizard by default. It extends the off-by-default features.credential_masking flag, which also needs the network proxy enabled, to supported remote Bash commands and Zsh snapshot sessions. It adds eligible Codex account grants or a dedicated sign-in for enterprise MCP connections, which need enterprise-managed auth configured and the off-by-default use_xaa feature. It also fixes failed compaction and session resume. As of November 6, 2026, npm's latest tag for the package is 0.167.0, and at that version both flags are still under development and off by default.

OpenAI published Codex CLI 0.164.0 on GitHub on October 23, 2026 (UTC), following 0.163.0 on October 15. The release adds a slot system for reusable prompts and inline /model and /permissions arguments, and it extends an off-by-default credential masking flag to remote commands. Later releases followed, and the last section gives their numbers and dates.

ten slots for the prompts you keep retyping

The release note puts it plainly: save reusable prompts and slash commands in ten numbered /presetsslots, with a keyboard menu for quick access. The pull request behind the menu says it opens above the composer, and that pressing a digit from 0 to 9 runs a saved preset or creates one in an empty slot. A preset's input is a prompt or a slash command.

set the model and the permissions inline

In 0.163.0, neither /model nor /permissions was on the list of slash commands that take inline arguments. 0.164.0 lets you set model, reasoning effort, speed and permission profiles directly with inline arguments. The release note bullet gives no syntax, but its linked pull requests do: /model [model] --reasoning <level> --speed <tier> and /permissions <profile-id>, for example /permissions :read-only. Leave out the model and the settings apply to the current model. The /model form updates the current session without changing saved defaults, and bare /model still opens the picker.

The two commands are separate, and presets work with both. When you create a preset from current settings, the menu offers "Current model" and "Current permissions" as separate options. The permissions option keeps the profile, approval policy and reviewer. Full-access switches keep a confirmation step.

credentials, enterprise MCP, and Bedrock

Three more changes, two of them behind feature flags that are off by default. The release note says Codex masks credentials during supported remote Bash commands and Zsh snapshot sessions, including credentials from custom providers. That holds only with features.credential_masking turned on. In the source at tag rust-v0.164.0 the flag is under development and off by default, and without it the remote exec path leaves masking disabled. The pull request that added the flag keeps it inactive when the network proxy is disabled. With the flag on, Codex warns and runs the command with unmasked credentials when masking is unavailable, for example on an unsupported shell. At tag rust-v0.167.0 the flag is still under development and off by default.

Three pull requests cover the supported cases. Per 54309, supported non-login Bash commands on Linux and macOS receive credential placeholders, with real credentials injected by the proxy for matching destinations. Per 54432, masking extends to Zsh login commands using shell snapshots on Linux and macOS. Per 56049, it extends to configured credential providers, and executors that support only built-in providers keep the warning and the unmasked fallback.

Enterprise MCP connections can authenticate using eligible Codex account grants or a dedicated sign-in, including OAuth clients that require secrets. In the source at tag rust-v0.164.0 this requires mcp_enterprise_managed_auth to be configured and the use_xaa feature to be on. That feature is under development and off by default, at tag rust-v0.164.0 and still at tag rust-v0.167.0.

The Amazon Bedrock setup wizard is enabled by default, with API key entry grouped alongside the other AWS sign-in methods when credentials are detected. Its pull request promotes the wizard's feature flag to stable, enables it for eligible onboarding, and leaves an opt-out: features.bedrock_setup_wizard = false.

One more for the terminal: local viewed images and generated images preview in the fullscreen transcript on terminals that support Kitty or Sixel graphics. Viewed images appear when their activity is expanded or the detailed presentation is active. Remote workspaces, missing files and oversized images stay text-only.

the fixes

  • Compaction — a failed compaction no longer leaves partial summaries in conversation history, and background compaction failures fall back without panicking. The pull request says compaction could record partial output before the response completed.
  • Resume — resuming a session finds compressed histories and restores saved thread settings instead of replacing them with global defaults.
  • Config overrides — -c and --config are preserved when they appear at multiple subcommand levels.
  • Windows proxies— HTTPS and WebSocket connections handle proxy authentication challenges using the signed-in user's Negotiate or NTLM credentials.
  • Sandbox — hardened checks for case-variant metadata paths on macOS and replaceable symlinks used to locate executables.

On the housekeeping side, the release prunes unused installations, cleans abandoned marketplace checkouts and bounds daemon logs to cut disk usage, and updates the embedded JavaScript runtime with safety checks for optimized Array.sort.

if you skipped 0.163.0

The October 15 release notes list a searchable /config that shows which changes need a restart, immediate steering when you send a follow-up mid-response, a configurable leader key in /keymap (default Ctrl+X), a /daemon command to restart the managed background server, and parallel execution of independent read-only tools.

the count, and the releases after it

The 0.164.0 release lists 329 pull requests under its Changelog heading, and the summary bullets above that list cite 29 of them.

As of November 6, 2026, the npm registry's latest tag for @openai/codex is 0.167.0, three stable releases after 0.164.0. The registry dates them 0.165.0 on October 27, 0.166.0 on October 29 and 0.167.0 on November 6, all UTC. On that date, npm install -g @openai/codex@latest installs 0.167.0, and /presets is in the slash command list at tag rust-v0.167.0. Installing it does not turn on credential_masking or use_xaa, which stay off by default at that tag. The registry also lists 0.164.0 itself, so npm install -g @openai/codex@0.164.0 pins this release.

// sources