by OpenAI

OpenAI Codex review, pricing and verdict

Clones your repo, writes the code, opens the pull request. No keyboard required.

  • coding
checked

Codex suits developers who want a multi-file change delegated end to end rather than typed line by line, replacing the job of reviewing AI-suggested diffs with reviewing finished pull requests. OpenAI's own materials put its failure rate on complex tasks at roughly 30%, so treat its output as a draft from a fast junior engineer, not a merge-ready patch.

OpenAI Codex is an autonomous coding agent that turns a plain-English task into a finished pull request: it works inside its own sandbox, edits files, runs the project's test suite, and iterates on failures. Since September 22, 2026 it has run on OpenAI's GPT-6 Sol and Luna models behind a sandbox-and-approval safety layer, rather than unrestricted machine access.

Maker: OpenAI · Autonomy: semi autonomous · Maturity: ENTERPRISE

Underlying models: GPT-6 Sol, GPT-6 Luna

About OpenAI Codex

OpenAI relaunched Codex in April 2025 as an agentic coding system, retiring the branding from its 2021 code-completion API. Built by OpenAI, it takes a plain-English task, clones the target GitHub repository into an isolated sandbox, and works through the change itself instead of only suggesting code for a human to accept line by line. Adoption scaled fast enough afterward that OpenAI now treats Codex as a flagship agent product rather than a research preview.

Codex currently runs on GPT-6 Sol for complex, multi-step engineering work and GPT-6 Luna for smaller, high-volume edits, both members of the GPT-6 family OpenAI shipped on September 22, 2026 to replace the GPT-5.6 generation, sitting one tier below the flagship GPT-6 Astra; anyone weighing GPT-6 against rival model families can compare the options in Which LLM Should You Use in 2026. A sandbox layer enforces what files the agent can touch and which commands it can run at the operating system level, while a separate approval policy decides when it must pause for a human; an Auto-review mode introduced in 2026 lets a second reviewer agent clear most of those pauses automatically, which OpenAI says now accounts for the majority of Codex Desktop usage inside the company itself. Planning a multi-file change, running the test suite, iterating on failures, and opening the pull request without a person retyping each step is what separates Codex from an autocomplete-style coding assistant.

It fits software teams that want a change delegated rather than drafted: point Codex at a task and it will scaffold a new API or landing page, refactor a legacy module, generate unit tests, or diagnose a performance regression while a developer works on something else. That is a different shape of help than Cursor, an AI-native editor built for staying hands-on in the IDE rather than handing a task off. Support for Slack and a public-preview slot inside GitHub's Agent HQ let a non-coding teammate tag @Codex in a channel to ask a question or request a small fix, echoing what OpenAI's own ChatGPT Work targets for the same knowledge-worker audience, now roughly a fifth of Codex's user base. HokAI tracks it inside the coding-agent section of the directory alongside the picks in Best AI Coding Assistants in 2026.

There is no separate Codex subscription: it rides on the ChatGPT plan a person already has, from a $0 Free tier up through custom Enterprise pricing. Access comes through the ChatGPT desktop and web apps, a Visual Studio Code extension with roughly 9.8 million installs, an iOS app, and the open-source Codex CLI, which is Apache-2.0 licensed on GitHub.

Codex ships changes to its CLI multiple times a week: version 0.157.0 on September 25, 2026 added GPT-6 Sol and Luna to the model picker along with Amazon Bedrock support, days after 0.156.0 shipped a full-screen terminal UI and an always-on voice mode. That pace has a downside: in July 2026, users running Codex in full-access mode with sandbox protections turned off hit a bug where the agent's attempt to override its $HOME variable to build a temp directory instead deleted real files in their home folder, a defect several developers reported publicly before OpenAI shipped a fix on August 19, 2026 that verifies delete targets before running them. OpenAI has also pushed Codex beyond pure coding: a March 2026 plugin system and a dedicated Codex Security agent for finding and proposing fixes to vulnerabilities point toward the company's stated goal of making it useful well beyond developers. Rivals move just as fast: in late July 2026, Windsurf was folded into Cognition and rebranded Devin Desktop, a reminder that the coding-agent field Codex competes in keeps consolidating.

Pricing

Codex has no subscription of its own: it uses whichever ChatGPT plan a person already pays for, from the Free tier up to custom Enterprise pricing (see the cost FAQ for the exact tiers). Usage beyond a plan's included quota draws down credits billed per token, and those credits cost far more for GPT-6 Sol than for GPT-6 Luna, so routing routine edits to Luna is the cheapest way to stretch a plan's included allowance. A separate OpenAI API key bills per token at standard API rates instead of through ChatGPT credits.

Key Features

  • Autonomous PR delegation: Clones a GitHub repo into an isolated sandbox, writes the change across files, runs the project's own test suite, and opens a pull request without further input.
  • Two execution surfaces: Runs locally through the open-source Codex CLI or in a cloud sandbox that works on tasks in the background while a developer does something else.
  • OS-level sandbox with approval policies: A sandbox restricts what files and commands the agent can touch at the operating-system level, and a separate approval policy pauses it before anything outside that boundary.
  • Auto-review mode: A reviewer agent clears most out-of-sandbox approval pauses automatically; OpenAI says this now accounts for the majority of internal Codex Desktop token usage.
  • Codex Security: A dedicated app-security agent, added in March 2026, that scans code for vulnerabilities and proposes fixes rather than only writing new features.
  • Slack and GitHub Agent HQ access: Teammates can tag @Codex in a Slack channel or thread, and GitHub added Codex to its Agent HQ system in public preview so it can pick up tasks inside GitHub itself.
  • Codex SDK: A TypeScript SDK lets a team embed the same agent in its own tools with structured output parsing and session resumption, with more languages planned.

Strengths

  • No separate subscription: Codex rides on the ChatGPT plan a person may already pay for, instead of billing on top of an existing AI subscription (see the cost FAQ for exact tiers).
  • The Codex CLI's source is public on github.com/openai/codex, letting a team audit or fork the client instead of trusting a closed binary.
  • The cloud sandbox runs multiple tasks in parallel in the background, so a developer can queue several changes and review pull requests as they land instead of babysitting one session at a time.
  • The Visual Studio Code extension has roughly 9.8 million installs, giving Codex a distribution channel most standalone coding agents lack.

Weaknesses

  • OpenAI's own materials acknowledge that roughly 30% of complex tasks still fail outright, so a developer still has to review, not just merge, what Codex produces.
  • The feature that lets Codex operate a desktop computer directly works on macOS only, leaving Windows and Linux users without that specific capability.
  • In July 2026, a bug let Codex delete real files in a user's home directory when running in full-access mode with the sandbox turned off; the fix took OpenAI about six weeks to land.
  • There is no self-hosting option: every mode, CLI included, depends on OpenAI's cloud models, so a team cannot run Codex fully air-gapped.

Frequently Asked Questions

How much does OpenAI Codex cost in 2026?

Codex rides on a ChatGPT plan rather than billing separately: Free is $0 a month, Go is $8, Plus is $20, and Pro starts at $100 for 5x the standard rate limits or more for the 20x tier OpenAI introduced on April 9, 2026. Business costs $20 per seat a month billed annually, and Enterprise and Education pricing is negotiated directly. Usage past a plan's included quota is billed separately in credits.

Does OpenAI Codex have a free plan?

Yes: the Free ChatGPT tier includes limited Codex access at no cost, and stepping up to Go raises those limits slightly for people who want more headroom without committing to Plus. Both tiers cap usage well below Plus, so anyone doing more than occasional small tasks will hit the wall and either wait for a reset or upgrade.

What are OpenAI Codex's closest competitors?

The closest competitors are Claude Code from Anthropic, Jules from Google, Muse Code from Meta, and Cosine, a smaller independent vendor. Anthropic's agent is generally reported as more conservative on large multi-file refactors, Jules and Muse Code fit teams standardized on Google's or Meta's own stack, and Cosine suits a buyer who wants a focused coding vendor with no broader chat platform attached. Cursor is a different shape of product, an AI-native editor rather than a delegate-and-review agent, for teams that want to stay hands-on in the IDE.

Is OpenAI Codex better than Claude Code?

Neither wins outright: Codex has the distribution edge, riding on a ChatGPT plan tens of millions of people already pay for, while Claude Code needs its own Anthropic subscription. Reviewers tend to find Codex quicker for greenfield work such as scaffolding a new API from nothing, while Claude Code earns praise for making fewer speculative edits on large, tangled refactors. Both ship as a terminal-first CLI with a cloud option, so the pick usually comes down to which model family a team trusts more.

What does it take to start using OpenAI Codex?

Sign in with an existing ChatGPT account, since Codex uses that subscription rather than a separate signup. From there, install the Codex CLI from GitHub or add the Codex extension in VS Code, point it at a repository, and describe the task in plain English; a first run typically finishes inside the sandbox within a few minutes, after which you review the diff or pull request it opens.

Top Alternatives

  • Claude Code: Pick Codex for fast greenfield scaffolding delegated end to end; pick Claude Code if your team is Anthropic-committed and wants an agent reviewers say plans large multi-file refactors more conservatively.
  • Jules: Pick Codex if you're already inside the ChatGPT ecosystem and want Slack and GitHub Agent HQ access; pick Jules if your stack is Google's and you want a coding agent from that same vendor.
  • Cosine: Pick Codex for breadth of surfaces (CLI, cloud, Slack, mobile, VS Code); pick Cosine for a smaller, coding-only vendor without a broader consumer chat platform attached.
  • Muse Code: Pick Codex if you want a coding agent bundled into a ChatGPT plan; pick Muse Code if your organization already standardizes on Meta's model family.

More AI Agents on HokAI

Visit OpenAI Codex Official Site