跳到正文

更新日志

Codex CLI 更新日志(中文)

Codex CLI 的每个稳定版本:发布时间(北京时间)、官方说明中各类改动的数量和要点。要点保留英文原文,每个版本都链接到 GitHub 上的完整官方说明。

快速回答:Codex CLI 最新稳定版是 0.163.0,于北京时间 2026年10月16日 05:30 发布。截至最新版本的近 30 天内共发布 17 个稳定版,中位间隔 1.1 天。

如何安装和更新 Codex CLI、查看版本

安装(macOS、Linux)

OpenAI 的官方安装脚本,默认安装到 ~/.local/bin:

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

安装(Windows)

在新的 PowerShell 窗口中运行。官方推荐 Windows 11;较新且已完整更新的 Windows 10(1809 或更高版本)尽量支持:

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

用 npm 安装(任何系统)

npm install -g @openai/codex

用 Homebrew 安装

brew install --cask codex

在 WSL2 中安装

在 WSL 终端中运行 Linux 安装脚本。Codex 0.115 起不再支持 WSL1:

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

登录

运行 codex 并选择 Sign in with ChatGPT,或运行 codex login 在浏览器中完成登录,用量计入你的 ChatGPT 套餐。也可以用 API 密钥按量计费(部分云端功能不可用):

printenv OPENAI_API_KEY | codex login --with-api-key

查看已安装的版本

codex --version

更新

Codex 启动时会检查新版本并提示更新。也可以手动更新:

codex update

按安装方式更新

官方安装脚本和 npm 重新运行安装命令即可;Homebrew 用:

brew upgrade --cask codex

用 npm 安装指定版本

例如安装 0.163.0:

npm install -g @openai/codex@0.163.0

遇到问题

先运行内置诊断:

codex doctor

命令来自官方文档:Codex CLI(OpenAI)、Codex 登录(OpenAI)、openai/codex README(2026 年 10 月核对)。

最近 20 个版本

Codex CLI 0.163.0

共 16 项改动:1 项安全,15 项其他。

  • 安全 The network proxy now checks permission before a DNS lookup, rejects duplicate Host headers, and prevents credential aliases from bypassing…
  • 其他 Open /config to search preferences across categories, change supported settings immediately, and see which changes require a restart.
  • 其他 Send a follow-up while Codex is responding to steer it immediately. Interrupting a turn also stops active Code Mode cells…

GitHub 官方说明 · 英文摘要

Codex CLI 0.162.1

共 2 项改动:2 项修复。

  • 修复 Fixed a TUI crash when asynchronous questions contain multiple lines, preserving line breaks and complete hyperlink destinations.
  • 修复 Fixed startup failures caused by differences between a running background server's feature settings and CLI defaults. Compatibility checks now apply…

GitHub 官方说明 · 英文摘要

Codex CLI 0.162.0

共 14 项改动:2 项新功能,3 项修复,9 项其他。

  • 新功能 Add tools for creating and listing managed Git worktrees from trusted local projects when the worktrees feature is enabled.
  • 新功能 Add JavaScript helpers for streaming promise results as they settle, plus opt-in ranked tool search in Code Mode.
  • 修复 Fix Linux sandbox startup with multiple denied files, reject writable sandbox-construction executables, and keep ripgrep configuration from weakening deny-glob masks.

GitHub 官方说明 · 英文摘要

Codex CLI 0.161.0

共 14 项改动:1 项安全,13 项其他。

  • 安全 Authentication guidance now accounts for keyring storage instead of implying credentials always reside in auth.json.
  • 其他 GPT-6.1 Sol is now the default model in the bundled and Amazon Bedrock catalogs.
  • 其他 Amazon Bedrock supports multi-agent V2 and Ultra reasoning on compatible models; Bedrock Mantle also accepts AWS GovCloud regions.

GitHub 官方说明 · 英文摘要

Codex CLI 0.160.1

共 1 项改动:1 项其他。

  • 其他 Preserve SYSTEMROOT, TEMP, and TMP when launching remote stdio MCP servers with explicitly configured remote environment variables, allowing Unix hosts…

GitHub 官方说明 · 英文摘要

Codex CLI 0.160.0

共 13 项改动:2 项新功能,2 项修复,1 项安全,8 项其他。

  • 安全 Clarified how provider credentials use the configured storage backend and how env_key identifies the API-key environment variable.
  • 新功能 Added opt-in Guardian review capabilities to retrieve earlier user instructions and include context from agent handoffs.
  • 新功能 Added background reclamation of unused log database space to reduce disk usage.

GitHub 官方说明 · 英文摘要

Codex CLI 0.159.3

共 1 项改动:1 项安全。

  • 安全 Eligible local sessions signed in with ChatGPT can now show optional reminders to complete account security setup.

GitHub 官方说明 · 英文摘要

Codex CLI 0.159.2

共 1 项改动:1 项其他。

  • 其他 Suppressed console windows flashing on Windows when Codex launches background processes and sandboxed commands.

GitHub 官方说明 · 英文摘要

Codex CLI 0.159.1

共 1 项改动:1 项新功能。

  • 新功能 Added GPT-6.1 Sol as the default model in the bundled catalog and Amazon Bedrock Mantle and Runtime catalogs.

GitHub 官方说明 · 英文摘要

Codex CLI 0.159.0

共 14 项改动:1 项新功能,1 项修复,12 项其他。

  • 新功能 New sessions get a compact welcome screen and consistent headers, with occasional tips during and after turns.
  • 修复 Fixed macOS TLS access in network-enabled sandboxes and remote environments that require proxy access.
  • 其他 Opt-in instant_interrupt lets new input steer Codex during model responses or long-running code-mode calls.

GitHub 官方说明 · 英文摘要

Codex CLI 0.158.0

共 11 项改动:1 项修复,1 项安全,9 项其他。

  • 安全 Fixed Windows sandbox failures involving ordinary Windows 10 paths, rejected stored credentials, and large permission policies.
  • 修复 Fixed Linux sandbox startup with nested writable roots and preserved Git metadata protections across writable roots on Linux and macOS.
  • 其他 Configure copy-on-select and right-click paste in the fullscreen TUI. Copied transcript selections now preserve Markdown formatting.

GitHub 官方说明 · 英文摘要

Codex CLI 0.157.1

共 1 项改动:1 项其他。

  • 其他 Release highlights could not be determined: the supplied PR index is empty, and the GitHub tag comparison returned 404.

GitHub 官方说明 · 英文摘要

Codex CLI 0.157.0

共 12 项改动:5 项新功能,1 项修复,6 项其他。

  • 新功能 Added GPT-6 Sol and Luna, including Amazon Bedrock support and migration prompts for older models.
  • 新功能 Enabled fullscreen transcripts by default and added Shift-click to extend text selections.
  • 新功能 Enabled automatic background-server startup for eligible interactive sessions, with recovery choices when server settings are incompatible.

GitHub 官方说明 · 英文摘要

Codex CLI 0.156.1

共 1 项改动:1 项其他。

  • 其他 Choose GPT-6 Sol or GPT-6 Luna from the model picker. The rate-limit switch prompt now recommends GPT-6 Luna.

GitHub 官方说明 · 英文摘要

Codex CLI 0.156.0

共 15 项改动:3 项修复,1 项安全,11 项其他。

  • 安全 Recover login through system proxies and refresh MCP credentials when OAuth discovery returns a 503 error.
  • 修复 Fix clipboard forwarding in tmux and SSH sessions and preserve tab indentation when terminals send pasted text as individual keystrokes.
  • 修复 Restore Plan mode when resuming sessions and preserve thread identity and settings when editing earlier prompts.

GitHub 官方说明 · 英文摘要

Codex CLI 0.155.1

共 1 项改动:1 项新功能。

  • 新功能 New local TUI sessions now leave reasoning summaries disabled by default, fixing request rejection by providers that do not support…

GitHub 官方说明 · 英文摘要

Codex CLI 0.155.0

共 13 项改动:4 项新功能,1 项修复,3 项安全,5 项其他。

  • 安全 Amazon Bedrock can now obtain AWS credentials from configured commands, with caching, expiration-based refresh, and authentication recovery.
  • 安全 MCP servers now report expired OAuth credentials accurately and provide reconnect guidance when token refresh fails.
  • 安全 Blocked Windows-process escapes from restricted WSL sandboxes and hardened brokered shell snapshots against credential exposure.

GitHub 官方说明 · 英文摘要

Codex CLI 0.154.0

共 14 项改动:1 项新功能,13 项其他。

  • 新功能 GPT-6-Astra is now available in the model picker and Amazon Bedrock catalogs.
  • 其他 Experimental worktree support lets you create isolated checkouts for new or forked sessions using --worktree or /worktree, then browse and…
  • 其他 Answer questions inline while Codex continues working, using suggested choices or custom text without losing your main draft.

GitHub 官方说明 · 英文摘要

Codex CLI 0.153.4

共 2 项改动:1 项修复,1 项其他。

  • 修复 Fixed Astra’s visibility in the bundled model picker and made it the bundled default when no model is explicitly configured.
  • 其他 Updated Astra’s guidance to use asynchronous questions only when the tool is available in the session.

GitHub 官方说明 · 英文摘要

Codex CLI 0.153.3

共 2 项改动:1 项新功能,1 项修复。

  • 新功能 Added GPT-6-Astra to the Amazon Bedrock model picker for Mantle and Runtime global/US routes.
  • 修复 Corrected GPT-6-Astra’s guidance for asynchronous clarification questions to use the supported tool and recognize that it accepts text only.

GitHub 官方说明 · 英文摘要

要点保留英文原文,按官方说明缩写,优先列出安全和新功能。

常见问题

Codex CLI 最新版本是多少?
Codex CLI 最新稳定版是 0.163.0,于北京时间 2026年10月16日 05:30 在 GitHub(openai/codex)发布。 来源:GitHub · openai/codex。
如何安装 Codex CLI?
macOS 和 Linux 运行 curl -fsSL https://chatgpt.com/codex/install.sh | sh;Windows 在 PowerShell 中运行 powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex";任何系统都可以用 npm install -g @openai/codex。安装后运行 codex 并登录。 来源:Codex CLI(OpenAI)。
如何更新 Codex CLI?
运行 codex update,或按你的安装方式重新安装:官方安装脚本、npm install -g @openai/codex,Homebrew 则运行 brew upgrade --cask codex。 来源:Codex CLI(OpenAI)。
如何查看 Codex CLI 版本?
在终端运行 codex --version,会显示当前安装的版本号。 来源:Codex CLI(OpenAI)。