Coding and CLI agents · ranked 03
Codex CLI
Also known as OpenAI Codex CLI
OpenAI's open-source terminal agent for editing a repo.
Last reviewed
Last updated
Codex CLI is #3 of 8 in Coding and CLI agents. Editorial score 7.5: Ease 7, Power 8, Price 6, Vibe-coder fit 8. Initial editorial estimate. Not a measured benchmark.
Who it is for A terminal agent on OpenAI models.Coding and CLI agents: An agent that edits the repo.
Codex CLI is OpenAI's coding agent for the terminal. It edits a local repository, runs commands, and can use OpenAI models. The CLI is open source. Model access follows your OpenAI or ChatGPT plan — check site.
Best use cases
- Local repo edits from the shell
- Teams already on ChatGPT or the OpenAI API
- Scripting an agent you can read, because the CLI is open source
Pros
- + The CLI is open source
- + Fits a terminal workflow next to git
- + Uses OpenAI's models, which many builders already have a key for
Who should skip it
Skip Codex CLI when one of these listed limits is the constraint.
- − Model access and plan limits are separate from the CLI itself
- − Current plan packaging: check site
All comparisonsAll best-of lists
Pricing
Codex CLI is listed as Check site. The CLI is open source. Model access depends on OpenAI or ChatGPT plans. Current prices: check site.
Alternatives to Codex CLI
All alternatives to Codex CLIListed alternatives: Claude Code, Aider, GitHub Copilot. Claude Code is listed for “Repo-sized edits from the terminal”. Aider is listed for “Git-native pair programming from the terminal”. GitHub Copilot is listed for “Adding an agent without leaving the editor you have”.
Also in Coding and CLI agents: Cline, OpenCode, Gemini CLI, Devin, Orkas.
Coding and CLI agents
8.3
Claude Code
Anthropic's coding agent for the terminal and supported editors.
Best for Repo-sized edits from the terminal
Coding and CLI agents
7.4
Aider
Open-source pair programming in the terminal. Git commits included.
Best for Git-native pair programming from the terminal
AI code editors
7.8
GitHub Copilot
GitHub's AI pair programmer across VS Code, JetBrains, and its own app.
Best for Adding an agent without leaving the editor you have
Release notes
Release historyCodex CLI 0.172.0
Released November 23, 2026. Thread links in search results and transcripts open saved conversations and nested agents in the terminal. Tab completes arguments for supported slash commands. Shift+Up and Shift+Down move between task groups in the agent command center. Optional stdio MCP servers with a cached tool list start on their first tool call. An approval reviewer can be set for individual connected app tools in config.toml. App-server clients can select Amazon Bedrock Runtime during setup or sign-in. codex exec resume restores saved sandbox permissions, the working directory, and workspace roots unless they are overridden. Remote sessions keep working directories, workspace roots, and writable paths when the client and server run on different operating systems. Provider errors are reported as soon as they arrive in a response stream, and the message names which API spend limit was reached. Interrupting a parent turn keeps queued replies from child agents for the next turn. PageUp and PageDown read and submit answer choices that are taller than the answer area. Cloud replies that finish after history loads update in place. Code Mode uses gRPC for every host connection, and code_mode_host_grpc is deprecated. The bundled openai-docs skill covers migration to GPT-6.2 Astra and Sol.
Source for Codex CLI 0.172.0 (opens in a new tab)Codex CLI 0.171.0
Released November 20, 2026. GPT-6.2 Sol and Astra are in the model catalogs, and Sol is the default catalog selection. The terminal workspace is on by default, with searchable document previews, image previews, and subagent transcripts beside the main conversation. The non-Vim prompt composer has configurable undo and redo shortcuts, and they restore attachments and large pastes. codex exec --remote <ADDR> starts or resumes a noninteractive session on an existing app server. /rc and /remote manage local remote control and show device pairing codes. When tui_extensions_statusline is enabled, /statusline selects and authors a custom MCP status line. Drafts, queued follow-ups, and interrupted input stay with their original threads when a session is switched or resumed. Permission profiles stay intact when the working directory changes. A late completion event no longer cancels approval for a newer turn. Steering an active turn keeps earlier edits in the aggregate diff. Scrolling no longer inserts stray characters, the composer caret no longer jumps, and redraws use the current terminal size. Enterprise MCP sign-in works for identity providers that issue ID tokens without refresh tokens.
Source for Codex CLI 0.171.0 (opens in a new tab)Codex CLI 0.170.0
Released November 18, 2026. The terminal can negotiate WebRTC for realtime voice calls. OpenTelemetry HTTP exporters can refresh authentication headers automatically. Experimental support keeps identically named MCP servers separate across environments. Oversized WebSocket requests fall back to HTTP without extra retries. MCP OAuth credential writes are protected from races during cancellation, login, and logout. Idle Cloud conversations reconnect after a transient stream loss, and an active recovery turn is kept when a client reconnects. Windows file replacement, sandbox permission preservation, and runtime registration recovery are fixed. Permission updates and child threads keep existing sandbox restrictions. Duplicate file search results from overlapping roots are removed, and thread search snippets work for queries that contain whitespace. The sandbox documentation explains permission profiles and filesystem rules.
Source for Codex CLI 0.170.0 (opens in a new tab)
Newsletter
Get the weekly AI tool shortlist
One email when rankings change or a tool ships something that matters. No spam, unsubscribe anytime.