
OpenAI · OpenAI Codex: Coding Agent for Terminal, IDE, Cloud, and ChatGPT
Codex is OpenAI's coding agent that reads, edits, runs, and reviews code in your repository. It works through an open-source CLI, IDE extensions, cloud tasks that run in parallel, and the ChatGPT desktop and web apps, and is aimed at developers and teams already paying for ChatGPT or using the OpenAI API.
Best for
Developers and teams already paying for ChatGPT Plus, Pro, Business, or Enterprise who want one coding agent across the terminal, IDE, and parallel cloud tasks
Not ideal for
Teams that want a single agent billed across many model vendors, organizations that need a self-hosted cloud agent, or users who want cloud tasks without a paid ChatGPT plan
Who it's for
Software developers and engineering teams on ChatGPT plans or the OpenAI API who want local and cloud coding agents
Codex's strength is breadth. The same agent runs in a local terminal, inside the editor, in parallel cloud environments, and in the ChatGPT apps, and local work can be handed off to the cloud. The open-source CLI and the `codex exec`, GitHub Action, and SDK options make it scriptable. The tradeoffs are ecosystem and predictability: plan-based access favors teams already on ChatGPT, Free and Go are limited to the desktop app, API-key use drops the cloud features, and usage limits vary with model and task size. Teams standardized on another model vendor will find less reason to switch.
Who should use it
Developers and teams already on ChatGPT Plus, Pro, Business, or Enterprise; engineers who want to delegate parallel tasks to the cloud from GitHub, Linear, or Slack; and teams that want an open-source CLI they can script in CI.
Who should skip it
Teams that want to switch freely between model vendors under one bill, organizations that need a self-hosted cloud agent, and users who want the CLI or IDE extension without paying for Plus or API usage.
Free
$0
Billed monthly
Go
$8/month
Billed monthly
Plus
$20/month
Billed monthly
Pro
From $100/month
Billed monthly
Business
$20/user/month (annual) or $25/user/month (monthly)
Billed monthly
Enterprise & Edu
Contact sales
Note: Usage is estimated per five-hour window, weekly limits may also apply, and consumption depends on the model, the size and complexity of tasks, and whether they run locally or in the cloud. After reaching included limits, users can buy credits; credit prices and discounts depend on the plan or agreement. Using Codex with an OpenAI API key bills at standard API token rates instead and covers the CLI, SDK, and IDE extension, but not cloud features such as Codex cloud, GitHub code review, or Slack.
API pricing
With an OpenAI API key, Codex usage in the CLI, SDK, and IDE extension is billed at standard API token rates instead of plan limits; cloud features are not included
Available models
Clearing a backlog of small, well-scoped issues
Codex cloud gives each task its own isolated environment and can run several in parallel, returning a summary and diff for each so a developer can review and merge them one by one.
Pre-merge review of a feature branch
The code review command checks uncommitted changes, a commit, or a whole branch against its base and returns prioritized findings before a human reviewer looks at the pull request.
Automating repetitive fixes in CI
`codex exec` and the GitHub Action run Codex non-interactively inside pipelines, and the TypeScript and Python SDKs let teams build it into internal tools.
OpenAI Codex vs. Claude Code
Claude Code is Anthropic's coding agent for Claude models across the terminal, IDEs, desktop, and web. Codex is OpenAI's equivalent built around GPT-6 models, with an open-source CLI and cloud tasks that can be started from GitHub, Linear, or Slack. The choice usually follows which model family and subscription your team already uses.
OpenAI Codex vs. Cursor
Cursor is an AI code editor (a VS Code fork) with its own agent and cloud agents. Codex is an agent you add to your existing tools, including a Codex extension that runs inside Cursor.
OpenAI Codex vs. GitHub Copilot
GitHub Copilot combines inline autocomplete, IDE agent mode, and a cloud coding agent tied to GitHub, and lets you pick models from several vendors. Codex centers on OpenAI's models and spans the terminal, IDE, and ChatGPT apps, with GitLab (beta), Linear, and Slack as task entry points.
OpenAI Codex vs. OpenCode
OpenCode is an open-source coding agent designed to work with 75+ model providers. Codex's CLI is also open source and can point at other providers, but Codex cloud, the desktop app, and plan-based usage are tied to OpenAI.
What is OpenAI Codex?
Codex is OpenAI's coding agent. It reads and edits code, runs commands and tests, and reviews changes through the Codex CLI, an IDE extension, Codex cloud (isolated environments for parallel tasks), and the ChatGPT desktop and web apps.
How much does Codex cost?
Codex is included in ChatGPT plans: Free ($0) and Go ($8/month) get GPT-6 Luna in the desktop app (subject to rollout), Plus ($20/month) adds the web, CLI, IDE extension, iOS, and cloud integrations such as automatic code review and Slack, Pro starts at $100/month with 5x or 20x Plus usage, and Business is $20/user/month billed annually ($25 monthly, 2+ users). Enterprise and Edu are sales-led. With an OpenAI API key, usage in the CLI, SDK, and IDE extension is billed at standard API token rates, without cloud features.
Is Codex open source?
The Codex CLI is open source under the Apache-2.0 license on GitHub (openai/codex). Codex cloud and the ChatGPT apps are proprietary OpenAI services.
Which models does Codex use?
OpenAI recommends GPT-6 Astra for complex work, GPT-6 Sol for complex coding and agentic workflows, and GPT-6 Luna for efficient, high-volume tasks. GPT-5.5 retires from Codex on October 14, 2026. Codex can also point at any model provider that supports the Chat Completions or Responses APIs.
Which editors does Codex work with?
The Codex extension runs in VS Code and compatible editors such as Cursor and Windsurf. Xcode and JetBrains IDEs provide their own Codex integrations. From the IDE you can work locally or hand a longer task to Codex cloud.
How is Codex different from ChatGPT?
ChatGPT is OpenAI's general assistant. Codex is its coding agent, which works in your repository: it edits files, runs commands, reviews diffs, and runs cloud tasks against connected GitHub or GitLab repos. Codex is available inside ChatGPT's desktop and web apps and as a standalone CLI and IDE extension.
Anthropic
Developers and teams who want deep codebase reasoning, multi-file changes, and persistent project instructions in a terminal-friendly or IDE-native workflow
PaidAnysphere
VS Code developers who want multi-file AI editing, autonomous cloud agents, and model flexibility — not a plugin layered on top of an existing editor
Freemium
Amp
Developers and teams who want to run many background coding agents in parallel on remote machines or their own runners, and check on them from any device
FreemiumGitHub (Microsoft)
Developers on GitHub who want AI completion, chat, and agents embedded in their existing IDE and GitHub workflow
Freemium
Anomaly
Developers who want a terminal-based AI coding agent with no vendor lock-in, the ability to bring any LLM provider, and undo control over agent file changes
FreeCodex is the coding agent inside OpenAI's product line, separate from general ChatGPT chat. You can run it locally or delegate work to the cloud. Locally, the Codex CLI (Apache-2.0, on macOS, Linux, and Windows) and the IDE extension for VS Code, Cursor, and Windsurf edit files and run commands in your working tree. A /permissions setting controls when Codex may edit files or run commands without asking. Xcode and JetBrains IDEs have their own Codex integrations. In the cloud, each task gets its own isolated environment connected to GitHub or GitLab (GitLab is in beta). You can run several tasks in parallel, start them from the web, GitHub, GitLab, Linear, or Slack, and review a summary and diff before merging. The same agent also runs inside the ChatGPT desktop app on macOS, Windows, and Linux, which adds computer use (limited to some regions), a browser, and scheduled tasks. Codex supports AGENTS.md project instructions, subagents, MCP servers, skills and plugins, a dedicated code review command, non-interactive `codex exec` runs for CI, a GitHub Action, and a Codex SDK for TypeScript and Python. The recommended models are GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna, and Codex can also point at any provider that supports the Chat Completions or Responses APIs. Access comes through ChatGPT plans or an OpenAI API key. On a ChatGPT plan, Free and Go only get GPT-6 Luna in the desktop app, and the web, CLI, IDE extension, and cloud integrations start at Plus ($20/month). Plan usage is measured per five-hour window (weekly limits may also apply) and depends on the model, task size, and whether work runs locally or in the cloud. An API key covers the CLI, SDK, and IDE extension at API token rates but does not include cloud features such as Codex cloud, GitHub code review, or Slack. That makes Codex easiest to justify for people already on a ChatGPT plan. Teams that want one bill across model vendors may prefer a provider-neutral agent.
Codex CLI 0.157.0 made fullscreen transcripts the default, starts the background server automatically, added a shortcut to fork conversations, and made /import available in remote sessions. Version 0.157.1 followed on September 26.
OpenAI began rolling out GPT-6 Sol and GPT-6 Luna to Codex and ChatGPT Work at lower token prices than their GPT-5.6 predecessors. Codex CLI 0.156.0 shipped the same day with an optional fullscreen UI, voice conversations on by default, and a /usage dashboard.
Are you the founder? Claim this listing →