OpenAI Codex homepage

OpenAI Codex

by OpenAI

OpenAI's coding agent that writes, tests, and reviews code in the cloud, CLI, and IDE

Product with AI agentsSupervised

Last reviewed 2026-06-20

OpenAI Codex is OpenAI's software engineering agent, relaunched in May 2025 as a cloud-based agent that can work on many coding tasks in parallel rather than just suggesting completions. Given a repository, it writes features, fixes bugs, answers questions about a codebase, runs tests, and proposes changes (including GitHub pull requests) for developer review. It is available across several surfaces: Codex Web (at chatgpt.com/codex), the open-source Codex CLI in the terminal, IDE extensions for VS Code, JetBrains, and Xcode, a desktop app for Windows and macOS, plus GitHub, Slack, and Linear integrations. The original Codex Cloud preview ran on codex-1, described by OpenAI as a version of its o3 reasoning model optimized for software engineering, and the product has shipped through later Codex-tuned models. Tasks run inside isolated, sandboxed cloud environments preloaded with the user's code, where Codex reads files, edits code, and runs commands and tests, returning logs and diffs for inspection. It is included in paid ChatGPT plans (Plus, Pro, Business, Edu, Enterprise) and the CLI also works with an OpenAI API key. OpenAI reported Codex passed 2 million weekly active users by early 2026; treat such figures as vendor-reported.

What it can do

  • Run coding tasks in parallel in cloud sandboxes

    Supervised

    Works on many tasks at once inside isolated, sandboxed cloud environments preloaded with the user's repository, reading files, editing code, and running commands and tests.

    source
  • Write features and fix bugs

    Supervised

    Given a prompt and a codebase, generates new features and addresses bugs, then returns diffs and command/test logs for the developer to review.

    source
  • Propose GitHub pull requests

    Supervised

    Can open changes as GitHub pull requests for human review rather than merging autonomously, integrating with GitHub workflows.

    source
  • Answer questions about a codebase and review code

    Copilot

    Reads and explains complex or legacy code and analyzes changes to flag potential bugs, logic errors, and unhandled edge cases.

    source
  • Run in the terminal via the open-source CLI

    Supervised

    The Codex CLI runs locally in the terminal with configurable sandbox modes (read-only, workspace-write, full-access) and approval policies, and supports MCP for tool integration.

    source

Strengths

  • +One coding agent across cloud, terminal, IDE, and GitHub from a single account
  • +Cloud tasks run in parallel in isolated sandboxes and return reviewable diffs and test logs
  • +Open-source CLI with configurable sandbox and approval modes, plus MCP support
  • +Bundled into paid ChatGPT plans rather than a separate purchase

Limitations

  • Agentic tasks require human review and approval; not a hands-off autonomous engineer
  • Cloud usage is rate-limited per 5-hour window and scales with plan tier
  • Reliability and benchmark claims are vendor-reported

Overview

OpenAI Codex is OpenAI's software engineering agent, relaunched in May 2025 (research preview announced May 16, 2025) as a cloud-based agent that works on coding tasks in parallel rather than only completing code. It is distinct from the original 2021 Codex model: this Codex reads a repository, makes changes, runs tests, and proposes work for review. The original cloud preview ran on codex-1, described by OpenAI as a version of its o3 reasoning model optimized for software engineering, and the product has since shipped on later Codex-tuned models.

What it does

Given a prompt and a codebase, Codex writes features, fixes bugs, answers questions about the code, runs and iterates on tests, refactors, and handles migrations. Cloud tasks run inside isolated, sandboxed environments preloaded with the user's repo; Codex reads files, edits code, and runs commands, returning diffs and command/test logs for inspection. It can open changes as GitHub pull requests for human review. It also reviews code, flagging potential bugs, logic errors, and unhandled edge cases.

Autonomy note

Codex is a supervised agent. It performs multi-step work autonomously inside its sandbox but surfaces diffs, logs, and pull requests for a developer to approve before changes land. In the CLI, it runs under configurable sandbox modes (read-only, workspace-write, full-access) and approval policies, so the human controls how far it can act. Treat OpenAI's adoption and benchmark figures as vendor-reported.

Integrations & setup

Codex is available as Codex Web (chatgpt.com/codex), the open-source Codex CLI in the terminal, IDE extensions for VS Code, JetBrains, and Xcode, a desktop app for Windows and macOS, and integrations with GitHub, Slack, and Linear. The CLI supports MCP (Model Context Protocol) for tool integration and is configured via a local config file (sandbox mode, approval policy, and similar settings).

Pricing

Codex is included in paid ChatGPT plans rather than sold separately: Free ($0), Go ($8/mo), Plus ($20/mo), and Pro (from $100/mo, with 5x and 20x rate-limit tiers), plus Business, Edu, and Enterprise options. Cloud usage is metered per rolling 5-hour window and scales by plan. The CLI can alternatively run against an OpenAI API key billed at standard per-token API rates.

Best for / not for

Best for developers and teams who want one OpenAI coding agent across the terminal, IDE, cloud, and GitHub, especially for parallelizable tasks (bug fixes, refactors, test passes) reviewed via diffs and PRs. Less suited to fully unattended automation where no human reviews the agent's output, or to teams that prefer a model-agnostic tool (Codex is tied to OpenAI models).

Alternatives

Claude Code, Cursor, GitHub Copilot, Cognition's Devin, Amazon Q Developer, and Aider are the main competing coding agents and assistants. Codex differentiates on being OpenAI's first-party agent spanning cloud, CLI, IDE, and GitHub from a single ChatGPT account.

What people are saying

We aggregate real LinkedIn discussion into sentiment for the agents people search most. OpenAI Codex isn't tracked yet, want it added? Request tracking.

FAQ

Is OpenAI Codex the same as the 2021 Codex model?+

No. The original Codex (2021) was a code-completion model that powered early GitHub Copilot. The current Codex, relaunched in May 2025, is a software engineering agent that runs multi-step tasks in cloud sandboxes, the CLI, and IDEs, and proposes changes for review.

Is OpenAI Codex fully autonomous?+

No. It performs multi-step work (writing, editing, running tests) but returns diffs and logs for human review and, in the CLI, runs under configurable sandbox and approval policies. In practice it is a supervised agent rather than an end-to-end autonomous one.

How do you access OpenAI Codex?+

Via Codex Web at chatgpt.com/codex, the open-source Codex CLI, IDE extensions (VS Code, JetBrains, Xcode), a desktop app, and GitHub/Slack/Linear integrations. It is included in paid ChatGPT plans, and the CLI also works with an OpenAI API key.

Sources

Last reviewed 2026-06-20

Alternatives & related