Codex
OpenAI AI agent: takes tasks in batches and handles them in parallel.
Sign in $0
Included in ChatGPT plans
GPT models
OpenAI models only
Code partly open
CLI is open, models are not
Take it to hand off a lot of tasks at once - you get in with a regular ChatGPT account, even a free one. Don't take it for in-editor suggestions and polished screens: those are the genres of Copilot and Claude Code.
Codex is not a chat about code, but an autonomous executor. You describe the task in words, then the agent works on its own: finds the right place in the project, makes changes, checks its work, and brings you a finished result for review. Its main advantage is that you can launch several tasks at once. Each works in its own copy of the project and does not interfere with the others. It was born in the terminal, and since July has lived right in the ChatGPT app, alongside regular chat.
Where Codex sits on the big AI map
Nearby: Claude Code·Cursor·GitHub Copilot·Lovable·Replit·+ another 594
1. Should you get it
The choice comes down to two profiles: see which one is yours.
Who it is for. Codex is built for a flow of work: many tasks launched at once and almost for free. Hand it a dozen small fixes in the morning, clear out stale changes, review someone else's work — the agent handles several tasks at once, each in its own copy of the project. Sign in with a regular ChatGPT account, even a free one. You can assign tasks from the app, browser, and phone.
Don't write code? A terminal is not required: assign a task in the ChatGPT app or browser, just like in chat. At OpenAI, they themselves call the agent a superpower for people without development experience
Who it is not for. There are no suggestions as you type here - for that, go to Copilot. OpenAI models only, you cannot plug in your own local ones. Design and good-looking screens are taken to Claude Code: AI's weakness in design even the head of Codex admits it.
Just getting started? Haven't written code or built projects yet - start with the page“What is vibecoding”, then come back here for a tool.
If it suits you, install it using section 3. If you're choosing between it and Claude Code, see the decision tree in 7.
Codex News
- Cult.fit employees build their own software: over 20 internal apps with CodexNovember 5
- ChatGPT and Codex to share a usage limit: starting in December, the agent will draw from the subscription’s shared allowanceNovember 5
2. What it does
The easiest way to show it is in practice: in our project, Codex is the night shift. Below are six real tasks it completed here over the last month.
Watches the sources. Several times a day, the agent rereads 15–33 pages where AI news emerges and compares them with yesterday's. On August 17, it went through 15 sources and picked nothing — it was all noise. This refusal is work too: junk does not make it into the feed.
Writes entire news stories. The agent put together a story about Lovable starting to deliver apps in ChatGPT itself: a verdict, what changed for the reader, and sources.
Judges every story. A judge stands before the writer, and that is Codex too: it scores every story, separates urgent from ordinary, and decides what is not worthy of the feed.
Draws covers at night. The agent generated four clay-style course covers overnight, all four in a consistent style on the first try. The pipeline orders news covers from it on its own, without a person.
Clicks through panels like a person. When the site's hosting needed a different plan, the agent opened a browser, entered the control panel, and switched settings with buttons. It checked afterward: the configuration was applied.
Fixes and checks code. Dependency updates for security, fixing a broken chart on the ratings page, a new screen in the internal dashboard — the agent handles routine engineering work on its own.
What it looks like. The cycle is simple: you assign a task in words from the ChatGPT app, terminal, or phone — the agent edits files in a sandbox with networking disabled, shows every change line by line, and takes it to a finished pull request. Several such tasks can run at once: in the cloud, the agent makes parallel attempts and shows the best one.
How much freedom to give it. By default, the agent asks for confirmation on risky steps; you choose the boundaries from there — up to a complete “do not ask.” The agent knows the line too: in a case shown by Greg Brockman, Codex assembled and launched an ad campaign, but stopped at the payment button and asked for permission.
Then on its own. Higher up the axis is goal mode: put a goal in front of the agent, not a list of steps. Plus computer use: Codex clicks through your apps on Mac and Windows — writes throwaway scripts instead of live clicks, which is faster. Using this setup, GPT-5.6 Sol in Codex in five hours completed the daily challenge itself in Slay the Spire 2. The top level is the cloud: the pipeline works while your laptop is closed, and you can manage it from your phone. How to hand work back to the agent for another pass — loops.
Dots, the persistent assistant. Since Sep 29, 2026, you can assign a dot, an assistant running on GPT-6 Astra inside ChatGPT, to specific tasks. It works across conversations, keeps context, and can create Work and Codex tasks, continue existing local Codex tasks and check the results of what it delegated. You set the responsibility, for example triaging new bug reports and preparing fixes for review; the assistant coordinates the work.
A dot has its own cloud computer, so cloud work doesn't need your laptop to be on. For code in a specific repository, first create a Codex cloud environment with that repository and its setup. To work with local files, connect your computer separately in the dot's profile: under Computers, find Your computer and click Allow access. Keep the computer online with the ChatGPT app open. Connecting to Codex or Work Sync doesn't grant this access by itself.
Where a dot runs Codex work
Create an assistant in Dots in ChatGPT from a computer. Access is rolling out gradually: Pro $100, $200 and $500 for users over 18 outside the EEA, the UK and Switzerland; Business Premium and Enterprise worldwide, where in Enterprise an admin turns it on. The first dot is included in Pro and Business Premium at no extra cost, but deep work has a quota. Chatting with it doesn't use your ChatGPT limit; Codex and Work tasks use their usual limits. Free access to Codex doesn't mean access to Dots.
Review child tasks in the dot profile's Activity and accept code based on the diff and tests. Pause stops only the assistant's current main task: stop child tasks separately in Activity, and cancel schedules in Scheduled. A finished run doesn't by itself prove you got the result you needed.
Dots: announced Sep 29, 2026, checked Sep 30, 2026 against the task guide, access terms and stopping work. We haven't tested Dots features in this snapshot ourselves.
3. Where it works and how to install
One ChatGPT account opens 7+ surfaces: app, terminal, IDE, cloud, GitHub, phone, SDK. Start with the app — since July, Codex has lived right inside ChatGPT on macOS and Windows, and since August 11 on Linux too. The terminal is for people who live in the CLI: it has open source and full control.
Before you start. You need a ChatGPT account or an OpenAI API key. On the free plan OpenAI gives you Codex in the desktop app; the terminal and the editor are listed in the plans starting with Plus. Documentation for all surfaces is on official Codex page.
In the ChatGPT app+
There is no separate Codex app anymore: since July, the agent has lived as a tab in the ChatGPT app — agent view with parallel tasks, schedules, and computer use. macOS and Windows; Linux — preview since August 11.
Download the ChatGPT app at openai.com — the Codex tab is inside; Linux is installed using .deb and .rpm packages from the OpenAI repository.
In the terminal+
An open-source terminal agent: Apache-2.0, Rust, about 126,000 stars. Named sessions, portable plugins, the latest MCP protocol; sign in with a ChatGPT account or an API key.
npm install -g @openai/codexStep 1. Install the package with the command above — or via Homebrew: brew install --cask codex.
Step 2. Run the codex command and sign in with your ChatGPT account.
In the editor+
A VS Code extension — also works in Cursor and Windsurf — plus JetBrains and native support in Xcode. Since July, JetBrains AI has called Codex its recommended default agent.
code --install-extension openai.codexIn JetBrains — enable Codex in the JetBrains AI settings.
In the cloud+
Background tasks on chatgpt.com/codex: nothing to install, code runs in a cloud environment, and the result is a ready pull request. It can make several attempts in parallel and run scheduled tasks.
Open chatgpt.com/codex and connect a repository from GitHub.
On GitHub+
Auto-review of new pull requests, @codex review, and fixes via @codex fix; since late July — diff reviews across multiple repositories at once. codex-action runs the agent in CI.
Enable Codex for a repository at chatgpt.com/codex — then call @codex directly in pull requests.
From your phone+
The Codex tab in ChatGPT on iOS and Android: start tasks, approve changes, and view diffs from your phone — even control your Mac with its screen off.
Install ChatGPT from the App Store or Google Play — the Codex tab is inside.
For your own agents+
TypeScript and Python SDKs plus an app server over JSON-RPC — embed Codex into your products: the VS Code extension runs on this same layer.
SDK and app server documentation — learn.chatgpt.com/docs/codex-sdk.
4. What the tests show
An agent's score is always a pair of "agent + model": Codex is measured with GPT-6 Astra and Sol, Claude Code with Opus and Fable. Compare pairs, not brands.
The best Codex pair is with GPT-6 Astra. In the Nov 8, 2026 measurement, it scored 54.7 aa index - rank #8 out of 24 pairs in the table. The current leader is Claude Code with Claude Opus 5.5 max (with fallback): 61.7.
agent table: weight - editorial · AA score - best pair · AA Coding Agent Index Nov 8, 2026 · Terminal-Bench 4.0 Nov 8, 2026 · DeepSWE v1.1 Sep 22, 2026 · “—” - pair not measured
Codex wins on price and speed. In the Artificial Analysis snapshot of Sep 25, the best Codex pair solves the task in 29 minutes and $7.47 at API prices. The leader, Claude Code with Opus 5.5, needs more than an hour and $13.04. That works out twice as fast and almost twice as cheap.
Scale is growing fast. On August 13, OpenAI marked the milestone 15 million users Codex — and reset limits for everyone at once to celebrate.
Choosing between it and Claude Code — the showdown in section 7.
5. What it costs
Entry is free. Codex is included in every ChatGPT plan, even Free. On Free and Go the agent runs in the ChatGPT desktop app on the lightweight GPT-6 Luna model. There is no separate "Codex" subscription: you pay for the whole ChatGPT plan, and the same plan opens up the chat.
Plans and what they include
| Plan | Monthly price | What it gives you |
|---|---|---|
| Free | $0 | The desktop app and GPT-6 Luna, for short tasks |
| Go | $8 | The cheapest paid plan, the same GPT-6 Luna in the app |
| Plus | $20 | Terminal, editor and GPT-6 Sol: 15-150 messages per 5 hours, enough for a solo dev |
| Pro | $100 and $200 | 5 or 20 times the Plus limits. New $200 subscriptions have been paused since Sep 10 |
| API | By tokens | GPT-6 Sol - $2/$10 per million input/output tokens, GPT-6 Luna - $0.10/$0.50 |
Prices verified Sep 26, 2026 against OpenAI's official pricing pages
The limit is shared. The app, the terminal and the cloud spend one pool per 5-hour window, and a weekly cap may apply on top. On Plus the 5-hour window was brought back on Aug 25 after the summer break.
Above the cap you buy extra credits. Their rate matches API prices. For scale: a big prototype build by Simon Willison burned through $23 in tokens at API prices - but it ran inside a regular monthly subscription.
Prices are going down. On Sep 22 Codex got GPT-6 Sol and Luna: over the API they are twice as cheap as the previous generation. Sol costs $2/$10 per million tokens against $4/$20 for GPT-5.6 Sol. On Plus the new Sol gives one and a half times more messages than the previous one.
As long as the Free plan is enough, you don't need to pay at all. .
What we checked and how
| Fact | What we know | Verified |
|---|---|---|
| Plans | Codex is included in all ChatGPT plans, there is no separate subscription. Free and Go: GPT-6 Luna in the ChatGPT desktop app, as the rollout progresses. Plus: web, CLI, IDE, iOS, GPT-6 Sol and Luna, with GPT-6 Astra inside the limits too. Pro comes in two tiers: 5x for $100/mo and 20x for $200/mo; new subscriptions and upgrades to Pro $200 have been paused since Sep 10, 2026, while Pro $100 is open. Business - $25 per seat monthly or $20 with annual billing (from 2 seats); Enterprise/Edu via sales. | 2026-09-26 |
| Free access | There is one, but it is narrow: on Free ($0) the pricing page names Codex in the ChatGPT desktop app on GPT-6 Luna, as the rollout progresses. The terminal, IDE and GPT-6 Sol are listed in the plans starting from Plus. The key difference from Claude Code, which has no free entry at all. | 2026-09-26 |
| Limits | An estimate of local messages per 5-hour window; cloud tasks run on GPT-5.6 Sol and eat the limit faster. Local messages and cloud tasks share a single limit, common with Work mode in ChatGPT; weekly limits apply on top of that. Pro gives ×5 (the $100 tier) and ×20 ($200) over Plus. On Jul 12 OpenAI temporarily removed the 5-hour window and brought it back on Plus on Aug 25; on Pro, according to Codex lead Thibault Sottiaux, the window is not being turned on yet. Above the cap - credits: their rate mirrors API prices (GPT-6 Sol - 50 credits per 1M input and 250 per 1M output at $2/$10 in the API, which works out to about $0.04 per credit). Granted limit resets are valid for 30 days. | 2026-09-26 |
| API price | Input/output per 1M tokens; cached input is 10 times cheaper than regular. GPT-6 Sol and Luna have been half the price of their predecessors since Sep 22: GPT-5.6 Sol at a promo price of $4/$20 (at least until Nov 21, 2026), GPT-5.6 Luna $0.20/$1.20, Terra $2/$12. With an API key Codex works in the CLI, the SDK and an IDE without the cloud features. | 2026-09-26 |
| Availability | 2026-09-26 |
All vendors rebuilt billing around token credits in 2026; figures change every few weeks. Each line above has a verification date: do not trust figures without a date, including ours - and check them against OpenAI's official pricing.
For businessWe bring AI into your businessUnlimited tasks · one monthly price · cancel anytimeGet a quote6. Can you trust it with code
What to check before letting an agent into a production repo.
Where the code goes. On personal plans - Free, Plus, Pro - OpenAI may train models on your content by default: disable training with the toggle in Settings → Data Controls. Business plans and the API do not train by default, while Enterprise adds zero data retention. Turned off the main toggle? Check Codex's own settings too: third-party analyses have found a separate control there.
What the agent can break. It edits files and runs commands - but by default in a sandbox with networking disabled: Seatbelt on macOS, bwrap on Linux, and a system sandbox or WSL2 on Windows. Save "no sandbox" mode for extreme cases: in July, it was in this mode that the agent deleted a user's files while overriding the home directory - the bug was acknowledged and fixed.
The agent checks its own code. The CLI is open source - you can read the code to see exactly what the agent does. And since August, Codex has reviewed your pull requests for vulnerabilities too: Security Review in preview, it comments only on P0 and P1 risks - in an independent test, it caught 16 of 23 known vulnerabilities.
What we checked and how
| Fact | What we know | Verified |
|---|---|---|
| Code privacy | On Free, Plus, and Pro, content may be used for model training until the Settings > Data Controls > “Improve the model for everyone” toggle is turned off. Business/Enterprise/API do not train by default; Enterprise supports zero data retention with OpenAI approval. Third-party analyses say Codex has a separate training control for “full environments” - check Codex's own settings. | 2026-08-17 |
| Sandbox | Per-OS sandbox: macOS Seatbelt (out of the box), Linux and WSL2 - bubblewrap, Windows - native Windows Sandbox or WSL2. Network is off by default; access modes: read-only / workspace-write / danger-full-access. The 16.07 case (agent deleted files in sandbox-free mode) is an argument not to disable it unnecessarily. | 2026-08-17 |
| Open source | The CLI is open: Apache-2.0, Rust, ~126.5k stars (measured Sep 26). The stable version 0.157.0 (Sep 25, 2026) added GPT-6 Sol and Luna; alphas ship almost daily. Install: npm i -g @openai/codex or brew install --cask codex. | 2026-09-26 |
| Local alternatives | 2026-09-26 |
7. Codex or Claude Code
The fork is not “who is better,” but “what kind of work.” Codex wins on breadth and price: a pipeline you can run in batches, with a regular ChatGPT account as the entry point. Claude Code wins on depth: one agent stays with a complex task in a large repo for a long time and makes careful edits.
In August, both entered the big leagues. IBM is moving to Codex a platform for 150,000 consultants. Samsung, meanwhile, has brought Claude Code into chip development: verification shrank from a month to two days. And on August 11, Codex itself learned to import settings and chats from Claude Code - moving over is now an official button.
What to choose for the task
| Criterion | ||
|---|---|---|
| Strength | mass parallel pipeline: cheap, fast, and not just code | complex tasks in a large codebase, meticulous edits |
| Fresh proof | IBM moves 150,000 consultants to development via Codex (13.08) | Samsung: chip verification in 2 days instead of a month (13.08) |
| Entry and price | entry is free in the ChatGPT app, Plus opens the terminal and raises the limits | from $17/mo, no free plan |
| Tests | Coding Agent Index 61.6 with GPT-6 Astra (Sep 25); a task is twice as fast and almost twice as cheap | Coding Agent Index 66 with Opus 5.5 (Sep 25), first place |
| Models | OpenAI only: GPT-6 Sol and Luna, the senior GPT-6 Astra | Claude only (API/Bedrock/Vertex/Foundry) |
| Openness | open source CLI (Apache-2.0, ~126k stars) | no, proprietary CLI |
Live install count. For a developer, npm works like an app store: terminal agents are installed from there, and every installation appears in a public counter. The chart adds up installs for the week - the higher the line, the more often it is being installed now.
Installation race: Codex vs. Claude Code
npm downloads per day · ● live
The duels are real, the score is uneven. A chess engine written with Fable 5 beat the Codex engine by 10:0 with the same prompt. A week later, Simon Willison's Codex built a game noticeably better than the Claude version - and then failed to notice a visual bug in it even in screenshots.
Pros keep both. Gergely Orosz, author of The Pragmatic Engineer newsletter, on August 6 gave joint first place in the terminal to both - Codex and Claude Code. The tone shifted, though: DoltHub named Codex its primary agent in its annual review - "five times more work per unit of time" - while design and frontend work still goes to Claude. The norm remains: keep both and split tasks by type.
8. Frequently asked questions
Codex or Claude Code - which to choose?+
By the Artificial Analysis measurement of Sep 25, 2026, Claude Code is ahead: the pair with Opus 5.5 scores 66 points, while the best Codex pair, with GPT-6 Astra, gets 61.6. In exchange, Codex solves the task twice as fast and almost twice as cheap at API prices: 29 minutes and $7.47 against a little over an hour and $13.04. The working pattern is to keep both: hand bulk tasks to Codex, and design, frontend and complex architecture to Claude Code.
How do Dots work with Codex?+
A dot is an always-on ChatGPT assistant on GPT-6 Astra, announced Sep 29, 2026. It can create local Work and Codex tasks, continue existing local Codex tasks and run code in a preconfigured Codex cloud environment. For local work, connect your computer to the dot separately and keep it online with ChatGPT open; the cloud keeps working even when your computer is off. Access is rolling out to Pro 100/200/500 for users 18+ outside the EEA, UK and Switzerland, as well as Business Premium and Enterprise. Tasks use the regular Codex and Work limits. Pausing a dot does not stop all child tasks and schedules: check Activity and Scheduled. Verified against OpenAI on Sep 30, 2026.
How much does Codex cost?+
Entry is free: Codex is included in all ChatGPT plans - Free $0, Go $8/mo, Plus $20/mo, Pro $100 or $200/mo (new $200 subscriptions paused since Sep 10). On Free and Go, Codex works in the desktop app on GPT-6 Luna; Plus adds the terminal and GPT-6 Sol: 15–150 messages per 5 hours. In the API GPT-6 Sol costs $2/$10 per 1M input/output tokens. Verified Sep 26, 2026 against the official pricing pages.
+
Can you use Codex for free?+
Yes, but narrowly: on Free ($0) OpenAI gives you Codex in the ChatGPT desktop app on the lightweight GPT-6 Luna. For regular work, Plus at $20/mo is more practical: terminal, editor and GPT-6 Sol, 15–150 messages per 5 hours. For heavy users - Pro at $100/mo. Verified against the official pricing page on Sep 26, 2026.
What we wrote about Codex
Useful reading before you start
- GPT-6.1 Sol: use cases, pricing and choosing a model in Codex.
- What is vibecoding: starting from scratch.
- Vibecoding 101: your first agent project - built with Codex.
- Loops: how to give an agent recurring work.
- MCP: how an agent connects to your services.
- The full AI agent ranking.





