OpenAI Codex CLI

OpenAI Codex CLI— Review, Pricing, Alternatives

Inspect, edit, and run code from your terminal.

OpenAI Codex CLI in brief

What is it?
OpenAI Codex CLI is an AI tool in the Software Development category: Inspect, edit, and run code from your terminal.
Who is it for?
Developers and engineering teams working in the terminal against a local repository, from prototyping to code review and CI automation.
Price
Paid, from $20 USD/month.
Best alternative
Warp

Overview

Description

OpenAI Codex CLI is a command-line coding agent that runs in the terminal, close to the local repository. It inspects files, plans and applies edits, runs the development tools already installed on the machine, and lets you steer each turn while watching commands and diffs appear. The CLI covers the full loop: exploring unfamiliar code, planning a change, editing, running, then a dedicated review against uncommitted changes, a commit, or a base branch that reports prioritized findings without modifying the working tree. The `codex exec` mode chains the same operations inside scripts and CI pipelines. You stay in control: model choice, reasoning effort, permissions and allowed commands, with the active sandbox and writable roots inspectable through `/permissions`. It also ships `codex resume` to reopen a recent chat, `codex --image` to attach screenshots or design references, delegation to specialized agents, live web search, `codex cloud` to submit work to a configured environment, and `codex mcp` to connect MCP servers. Codex is included in ChatGPT Plus, Pro and Business plans. The April 2026 update extends the agent beyond the terminal: a desktop app that can operate your computer's applications (macOS first), a built-in browser, image generation, memory and automations — features rolling out progressively.

Strengths
  • Works directly against the local repository: reads and edits files and runs tools already installed on the machine
  • `codex exec` mode for scripts and CI, plus a dedicated review that leaves the working tree untouched
  • Fine-grained control per run: model, reasoning effort, permissions and sandbox inspectable via `/permissions`
Weaknesses
  • No free tier listed: access requires a paid ChatGPT plan (Plus, Pro or Business)
  • Computer use by the agent is initially macOS-only, with EU and UK rollout later
  • Memory and context-aware suggestions are still rolling out and not yet available for Enterprise, Edu, EU or UK users

Use cases

Backend developer taking over an undocumented legacy repository

Backend or full-stack developer in a product team, 3 to 8 years of experience

They inherit a service of tens of thousands of lines with no up-to-date documentation and must ship a fix within days. They start `codex` at the repository root, ask for a map of the modules involved in the bug, let the agent read files and run the existing tests, then validate each proposed diff before committing. They follow up with a dedicated review against their uncommitted changes to catch regressions before opening the pull request. The Plus plan at $20 USD/month covers this kind of targeted session; moving to Pro at $100 USD/month makes sense once sessions run all day across several repositories. Keep in mind: the agent runs real commands on the machine, so check writable roots via `/permissions` and work on a dedicated branch with frequent commits so you can roll back.

Platform engineer wiring code review into CI

Platform engineer, DevOps or SRE

Their team opens about twenty pull requests a week and human review has become a bottleneck. They add `codex exec` to the pipeline to run a non-interactive review against the base branch, collect the prioritized findings and post them as a PR comment. Locally, they use the same command to check a commit before pushing. The Business plan at $20 USD per user per month (annual billing from 2 seats) provides the shared workspace and admin controls needed to roll this out to the team. Real limitations: `codex exec` is still a command-line invocation and no public HTTP API is documented for Codex — integration goes through the runner's shell, with CI secrets and network access to be isolated. Also note that review findings are suggestions: the merge decision stays human.

Tech lead delegating an investigation to multiple agents

Tech lead or software architect

They need to assess the feasibility of a database migration across a monorepo and have no time to explore everything alone. In a Codex session, they ask the agent to delegate focused work to specialized agents — schema inventory, usage in application code, batch job dependencies — then bring the findings back into the main session for a decision. They attach a screenshot of the architecture diagram with `codex --image` and switch on live web search to check a library version's compatibility. The Pro plan at $100 USD/month is justified here by the higher usage limits that multi-agent work requires. Important: delegation multiplies calls and consumption, and aggregated conclusions must be cross-checked against the actual code — the agent can be wrong about a rarely exercised execution path.

Frontend developer iterating on a mockup in the built-in browser

Frontend developer or UI integrator

They need to reproduce a mockup in a React application and fix layout gaps flagged during review. They open the Codex desktop app, load the mockup as visual context, let the agent edit components and then check the rendering in the built-in browser, where they annotate the areas to fix directly on the page. They can also ask for a reference visual generated with gpt-image-1.5 for an empty state or an illustration. The Plus plan at $20 USD/month is enough for this daily iteration pace; Pro becomes useful when several projects run in parallel. Worth noting: computer use and the built-in browser are initially rolled out on macOS, and memory and context-aware suggestions are not yet available for Enterprise, Edu, EU or UK accounts.

AI Explorer Editorial Review

Our take, no fluff

4.4/ 5
Editorial score

AI Explorer review of OpenAI Codex CLI

OpenAI Codex CLI is OpenAI's terminal coding agent, distributed under the Apache-2.0 license and run locally, as close as possible to the repository. Its identity comes down to one idea: cover the entire work loop — exploring unfamiliar code, planning, editing, running already-installed tools, then reviewing changes — without ever leaving the shell, and letting the human arbitrate each turn.

What sets it apart is the density of commands grafted around the interactive core. codex exec replays the same operations in scripts and CI pipelines, while the dedicated review examines uncommitted changes, a commit, or a base branch and returns prioritized findings without touching the working tree. Add to that delegation to specialized sub-agents, codex mcp to connect local or remote MCP servers, codex cloud to submit work to a remote environment, codex --image to attach a mockup, codex --search for live web search, and codex resume to reopen a session.

Control through execution is the other argument. The read-only, workspace-write, and danger-full-access sandboxes are chosen at launch, complemented by approval strategies and by /permissions, which displays the active sandbox and writable roots. You can impose a model, start in a managed Git worktree, widen access with --add-dir, or switch to a local provider via --oss with LM Studio or Ollama. Since version 0.165.0, reasoning effort can be changed mid-conversation, and memories are enabled with codex features enable memories. The default model is GPT-6.1 Sol.

On the pricing side, the grid as of November 2026 has become more accessible than announced: Codex is included in ChatGPT Free ($0), Go ($8, or $7.25 depending on the pricing page), Plus ($20), Pro ($100, $200, or $500), and Business ($20 per user per month, annual billing starting at two seats). The API key remains a second path, billed per token, without cloud features such as GitHub or Slack review — a coherent choice for CI. Beyond quotas, Plus and Pro buy credits: 50 input and 250 output per million tokens for GPT-6.1 Sol. Note that GPT-5.5 is no longer accessible to sessions connected to a ChatGPT account as of October 14, 2026.

The real limitations: no documented public HTTP API is confirmed, so CI integration goes through the runner's shell, with secrets and network access to be locked down. Computer use and the built-in browser are first deployed on macOS, with the EU and UK waiting their turn, and memory and contextual suggestions remain unavailable for Enterprise, Edu, the EU, and the UK. Above all, the agent executes real commands: multi-agent delegation multiplies calls and consumption, and review findings remain suggestions to be cross-checked against the actual code.

Who is it for? Backend and full-stack developers taking over a legacy repository, platform engineers who want non-interactive review in CI, and tech leads delegating investigations to multiple agents will find a serious tool, legible in its permissions and honest in its diffs. It is less suited to those looking for a turnkey graphical interface, an HTTP API to orchestrate from a service, or immediate use on Linux and Windows for desktop features. A notch below the absolute reference because of these blind spots, but a terminal that keeps its promises.

— AI Explorer

By Nicolas, software developerOur methodology

Frequently asked questions

Is Codex CLI included in my ChatGPT subscription?

Yes. Codex is included in ChatGPT Plus ($20 USD/month), Pro ($100 USD/month) and Business ($20 USD per user per month, annual billing for 2 or more seats). Usage limits vary by plan.

Can Codex CLI be used non-interactively in a pipeline?

Yes, through `codex exec`, which the documentation presents as the way to call Codex from repeatable workflows and CI pipelines.

How do I return to a previous conversation?

The `codex resume` command reopens a recent chat from the current repository, or lets you search across local chats to find older work.

How do I stop Codex from editing files or running commands without asking?

The `/permissions` command lets you choose when Codex can edit files or run commands without asking, and inspect the active sandbox and writable roots before continuing.

Can I attach an image or screenshot to the prompt?

Yes: `codex --image` passes an error screenshot, architecture diagram or design reference with the first prompt, and an image can also be pasted into the interactive composer.

Can Codex connect to external tools?

Yes, `codex mcp` lets you add local or remote MCP servers, authenticate when needed, and inspect the tools available to the current session before Codex uses them.

Pricing (prices are indicative and may change regularly — check the official price on the publisher's website)

Plus
$20 USDmonth
  • Codex usage in targeted coding sessions each week
  • Included in the ChatGPT Plus subscription
Popular
Pro
$100 USDmonth
  • Higher usage limits
  • For all-day use across multiple projects
Business
$20 USDmonth

$20 USD

user

  • Shared, secure workspace
  • Admin controls
  • Flexible pricing for teams using Codex across multiple repositories
  • Annual billing for 2 or more seats

Comparisons

User reviews

Be the first to leave a review (no signup required)

No reviews yet.

Be the first to share your opinion!

Discussions

Chat about OpenAI Codex CLI

This space lets you connect with other users of the tool: ask questions, share tips and your experience to move forward together.

  • Discuss the tool and its features
  • Ask the community for help or advice
  • Share your experience and use cases