← Package directory
Available on winget

Install Codex CLI

Codex CLI is an open‑source local coding agent that runs in your terminal, letting you write, edit, and understand code without leaving the command line.

Install with winget
winget install --id OpenAI.Codex
Upgrade
winget upgrade --id OpenAI.Codex
Uninstall
winget uninstall --id OpenAI.Codex

About Codex CLI

Codex CLI is an open‑source local coding agent that runs in your terminal, letting you write, edit, and understand code without leaving the command line.

What's new in 0.132.0

New Features - The Python SDK now supports first-class authentication, including API key login, ChatGPT browser and device-code flows, account inspection, and logout APIs. (#23093) - Python turn APIs are easier to use for text-only workflows: you can pass a plain string as input, and handle-based runs now return a richer TurnResult with collected items, timing, and usage data. (#23151, #23162) - codex exec resume now accepts --output-schema, so resumed automations can keep session context while still enforcing structured JSON output. (#23123) - TUI startup is faster because terminal capability probes are now batched instead of waiting on several serial checks before the first interactive frame. (#23175) - Remote executor registration can now use standard Codex auth instead of a separate registry credential flow. (#22769) - App-server turns can preserve requested image fidelity, including original-resolution local images, across user inputs and image-producing tools. (#20693) Bug Fixes - Goal continuations now stop when they hit usage limits or a repeated blocker instead of looping and burning more tokens, and completion responses phrase usage more naturally. (#23094, #22907) - The session picker is easier to trust: renamed threads now show name (thread-id) in resume hints, and pasted text works in the picker search box. (#23234, #23338) - Multi-session TUI flows are more reliable: in-progress MCP calls stay marked as active during replay, and elicitation replies are sent back to the thread that requested them. (#23236, #23241) - Remote sessions now keep websocket connection...

Read release notes

Version history

Version Updated Notes
0.132.0 New Features - The Python SDK now supports first-class authentication, including API key login, ChatGPT browser and device-code flows, account inspection, and logout APIs. (#23093) - Python turn APIs are easier to use fo...
0.131.0 Unknown New Features - The TUI now offers richer session controls and display: data-driven service-tier commands, blended token usage, permissions/approval mode, effective workspace roots, and responsive Markdown tables. (#21745...
0.130.0 Unknown New Features - Plugin details now show bundled hooks, and plugin sharing exposes link metadata plus discoverability controls. (#21447, #21495, #21637) - Added codex remote-control as a simpler entrypoint for starting a h...
0.129.0 Unknown New Features - The TUI now supports modal Vim editing in the composer, including /vim, default-mode config, and Vim-specific keymap contexts. (#18595) - TUI workflows are easier to resume and copy from with a redesigned...
0.128.0 Unknown New Features - Added persisted /goal workflows with app-server APIs, model tools, runtime continuation, and TUI controls for create, pause, resume, and clear. (#18073, #18074, #18075, #18076, #18077, #20082) - Added code...
0.125.0 Unknown New Features - App-server integrations now support Unix socket transport, pagination-friendly resume/fork, sticky environments, and remote thread config/store plumbing. (#18255, #18892, #18897, #18908, #19008, #19014) -...
0.124.0 Unknown New Features - The TUI now has quick reasoning controls: Alt+, lowers reasoning, Alt+. raises it, and accepted model upgrades now reset reasoning to the new model’s default instead of carrying over stale settings. (#1886...
0.123.0 Unknown New Features - Added a built-in amazon-bedrock model provider with configurable AWS profile support (#18744). - Added /mcp verbose for full MCP server diagnostics, resources, and resource templates while keeping plain /m...
0.122.0 Unknown New Features - Standalone installs are more self-contained, and codex app now opens or installs Desktop correctly on Windows and Intel Macs (#17022, #18500). - The TUI can open /side conversations for quick side question...
0.121.0 Unknown New Features - Added codex marketplace add and app-server support for installing plugin marketplaces from GitHub, git URLs, local directories, and direct marketplace.json URLs (#17087, #17717, #17756). - Added TUI prompt...
0.120.0 Unknown New Features - Realtime V2 can now stream background agent progress while work is still running and queue follow-up responses until the active response completes (#17264, #17306) - Hook activity in the TUI is easier to s...
0.119.0 Unknown New Features - Realtime voice sessions now default to the v2 WebRTC path, with configurable transport, voice selection, native TUI media support, and app-server coverage for the new flow (#16960, #17057, #17058, #17093,...
0.118.0 Unknown New Features - Windows sandbox runs can now enforce proxy-only networking with OS-level egress rules, instead of relying on environment variables alone. (#12220) - App-server clients can now start ChatGPT sign-in with a...
0.117.0 Unknown New Features - Plugins are now a first-class workflow: Codex can sync product-scoped plugins at startup, browse them in /plugins, and install or remove them with clearer auth/setup handling. (#15041, #15042, #15195, #152...
0.116.0 Unknown New Features - App-server TUI now supports device-code ChatGPT sign-in during onboarding and can refresh existing ChatGPT tokens. (#14952) - Plugin setup is smoother: Codex can prompt to install missing plugins or connec...
0.115.0 Unknown New Features - Supported models can now request full-resolution image inspection through both view_image and codex.emitImage(..., detail: "original"), which helps with precision visual tasks. (#14175) - js_repl now expos...
0.114.0 Unknown New Features - Added an experimental code mode for more isolated coding workflows. (#13418) - Added an experimental hooks engine with SessionStart and Stop hook events. (#13276) - WebSocket app-server deployments now exp...
0.113.0 Unknown New Features - Added a built-in request_permissions tool so running turns can request additional permissions at runtime, with new TUI rendering for those approval calls. (#13092, #14004) - Expanded plugin workflows with...
0.112.0 Unknown New Features - Added @plugin mentions so users can reference plugins directly in chat and auto-include their associated MCP/app/skill context. (#13510) - Added a new model-selection surface update so the latest model cat...
0.111.0 Unknown New Features - Fast mode is now enabled by default, and the TUI header shows whether the session is running in Fast or Standard mode. (#13450, #13446) - js_repl can now dynamically import local .js and .mjs files, making...