Codex upgrade

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Codex CLI v0.20.0 is fully rewritten in Rust, copies/pastes normally in the Mac terminal, and defaults to GPT-5, so users should upgrade and drop the removed OPENAI_DEFAULT_MODEL variable.

Read this as

OpenAI's Codex CLI, a terminal program that can write and edit code for you, released version 0.20.0 last week. The update fixes a frustrating bug where Mac terminal users couldn't select text and copy it to the clipboard. It also replaces the old JavaScript codebase with Rust, so even installations via the npm package manager now run the Rust version. The update also made GPT-5 the default model.

OpenAI shipped Codex CLI 0.20.0, replacing the original TypeScript implementation with Rust, meaning every install channel, including npm, now delivers the Rust build. Homebrew users need 'brew upgrade codex' to get it. The release fixes clipboard copy/paste in the Mac terminal and silently makes GPT-5 the default model while removing the OPENAI_DEFAULT_MODEL environment variable that some users relied on.

Codex CLI rust-v0.20.0, released three days before the post, deletes the TypeScript codebase entirely; npm installs now ship the Rust binary. The clipboard-selection bug in the Mac terminal was fixed via issue 1247. GPT-5 is the default model in config.rs, and the OPENAI_DEFAULT_MODEL env var was removed in commit 107d2ce, use 'codex -m model_id' instead. Simon Willison's brew upgrade path and a 'codex-5' zsh script with --dangerously-bypass-approvals-and-sandbox are shown.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

OpenAI Codex CLI GPT-5 Rust Homebrew npm

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading