Coding agent Open source OpenAI · United States · since 2025
Codex
OpenAI's coding agent, in the terminal, VS Code and its forks, JetBrains IDEs, Xcode, the ChatGPT desktop app and the cloud; its command-line tool is open source.
- Price
- From $20/mo Free $0 · Go $8 · Plus $20 Plans ↓
- Free use
- In part Free and Go plans: desktop app only, GPT-6 Luna, subject to rollout Ways to pay ↓
- Runs in
- 8 places Terminal, VS Code and forks, JetBrains IDEs, Desktop app, Web, Mobile, Slack, CI Where ↓
- Models
- GPT 6 named · other makers’ models: yes Models ↓
- Editors
- 16 VS Code, Cursor, Devin Desktop… Editors ↓
- Install
- 4 ways macOS, Linux, Windows Install ↓
Checked 30 Nov 2026 against 21 official pages · Method
Screenshots
Screenshots of Codex 0.172.0 answering with GPT-6 Luna, taken on 26 November 2026 with the same sample project and the same prompts as every coding agent on this site. Method
The picture marked "From the maker" is OpenAI’s own, used under the Apache-2.0 licence of its repository, until we take our own with the same prompts as every agent. Source: github.com/openai/codex/blob/main/.github/codex-cli-splash.png
Section 01 · Cost
Price
Is Codex free? Partly. The Free and Go ChatGPT plans include Codex only in the desktop app with GPT-6 Luna, subject to rollout. The command-line tool, the IDE extension and cloud tasks need Plus at $20 a month, or an API key paid per use.
One plan covers every way to use it.
Free
$0
GPT-6 Luna in the desktop app, subject to rollout.
Go
$8a month
The same Codex access as Free.
Plus
$20a month
The web, the command-line tool, the IDE extension, iOS and cloud integrations.
Pro
from $100a month
Tiers at $100, $200 and $500 a month, with no five-hour limit; Ultrafast mode on the $500 tier.
For teams
- Business $25 per user a month $20 a user billed yearly; at least 2 users.
- Enterprise and Edu Custom Priced on request.
Plan terms and limits
- You pay for
- Messages per 5 hours, which differ by model; weekly limits may also apply, and cloud tasks use more.
- Limits
- Messages per 5 hours, published as ranges (GPT-6.2 Sol on Plus: 17 to 180); weekly limits may apply
- Past the limit
- Plus and Pro can buy credits; no price per credit is published. An API key is billed at API rates.
- Own key
- Yes · OpenAI API key in the CLI, SDK and IDE extension; no cloud features
- Trial
- No time-limited trial; the Free plan has limited access.
- Students
- Verified university students in the US and Canada get $100 in credits, valid for 12 months.
- OpenAI’s help article says Codex is included on every plan, while the pricing cards limit Free and Go to the desktop app.
- With an API key there are no cloud features such as GitHub review or Slack.
- The desktop app is called the ChatGPT desktop app in the docs and the Codex app in the changelog.
Prices checked 30 Nov 2026
Ways to pay for it
| Way | What you get | Cost |
|---|---|---|
| Codex plans | Free, Go, Plus, Pro, Business, Enterprise and Edu | From $20/mo |
| Your own API key | Yes, in the command-line tool: an OpenAI API key, or other providers and local models through a compatible endpoint. | the provider’s price |
| Free use | Free and Go plans: desktop app only, GPT-6 Luna, subject to rollout | In part |
Section 02 · Where it runs
Ways to use it
One product: the same agent, account and plan wherever you use it. Select one to see what you get there.
Desktop app Available since 9 Jul 2026
ChatGPT desktop app (Codex)
Codex is its own view in the ChatGPT desktop app, next to ChatGPT, with separate history; it runs local and cloud work and lets a phone control the computer.
Desktop app Ended ended 9 Jul 2026
Codex app
The standalone Codex app merged into the ChatGPT desktop app on 9 July 2026; existing installs updated into the new app.
- Desktop app
- ChatGPT desktop app: macOS, Windows; Linux in preview
Terminal Available
Codex CLI
Open-source (Apache-2.0) terminal agent, command codex; codex exec runs it in scripts, and it can use other providers' or local models.
curl -fsSL https://chatgpt.com/codex/install.sh | sh 3 more ↓ In your editor Available
Codex IDE extension
Extension for VS Code and compatible editors; OpenAI names Cursor and Windsurf, and it is on Open VSX for other forks.
- VS Code and forks
- VS Code, Cursor, Windsurf and compatible editors
- Works in
- VS Code , Cursor , Devin Desktop , Kiro , VSCodium , Google Antigravity Editors ↓
In your editor Available
Codex in JetBrains IDEs and Xcode
JetBrains AI Assistant and Xcode's coding assistant offer Codex as a built-in agent; OpenAI's docs point to both. Sign in with ChatGPT, an OpenAI key, or JetBrains AI.
In the cloud Paid plans
Codex Cloud
Tasks run in OpenAI-managed environments while your computer sleeps, started from the web, the desktop app or a phone; Plus and above, not Free or Go.
Phone Available
Codex in the ChatGPT mobile app
Start, steer, approve and review tasks in Codex Cloud or on a connected Mac or Windows PC; availability depends on rollout.
Chat and tickets Paid plans
@ChatGPT in Slack, Codex in Linear
Mention @ChatGPT in Slack to send repository work to a Codex Cloud task; in Linear, assign an issue to Codex or mention @Codex.
By place
- Terminal Yes
- VS Code and forks Yes
- JetBrains IDEs Yes
- Desktop app Yes
- Web Yes
- Mobile Yes
- Slack Yes
- CI Yes
Section 03 · AI
Models
The models it names, and whether others can be used.
- Models named
- 6
- Other makers’ models
- Yes In the CLI: Ollama, LM Studio, Bedrock and others through a compatible endpoint
- Own key
- Yes OpenAI API key in the CLI, SDK and IDE extension; no cloud features
| Model | Kind | On plans | API price, in / out | Context | Released |
|---|---|---|---|---|---|
| GPT-6.2 Astra | Top tier | From Plus | $8 / $40 | 1.05M | 17 Nov 2026 |
| GPT-6.2 Sol | Flagship | From Plus | $2 / $10 | 1.05M | 17 Nov 2026 |
| GPT-6.1 Sol | Flagship, previous | From Plus | $2 / $10 | 1.05M | 29 Sep 2026 |
| GPT-6.1 Terra | Fast | From Plus | $1 / $5 | 1.05M | 26 Oct 2026 |
| GPT-6 Astra | Top tier, previous | From Plus | $10 / $50 | 1.05M | 3 Sep 2026 |
| GPT-6 Luna | Fast and cheap | From Free | $0.10 / $0.50 | 1.05M | 22 Sep 2026 |
The Plus plan’s card names GPT-6.1 Sol and GPT-6 Luna, while its limits table also lists the GPT-6.2 models. API prices are the makers’ list prices per million tokens, in and out.
Section 04 · In your editor
Editors it works in
16 editors in the directory where Codex runs as an extension, a plugin or built in, as OpenAI documents it.
Codex IDE extension
Extension for VS Code and compatible editors; OpenAI names Cursor and Windsurf, and it is on Open VSX for other forks.
- VS Code 17 M installs VS Code Marketplace (openai.chatgpt)
- Cursor
- Devin Desktop
- Kiro
- VSCodium 14 M installs Open VSX (openai/chatgpt; the count covers every fork that installs from Open VSX)
- Google Antigravity
Codex in JetBrains IDEs and Xcode
JetBrains AI Assistant and Xcode's coding assistant offer Codex as a built-in agent; OpenAI's docs point to both. Sign in with ChatGPT, an OpenAI key, or JetBrains AI.
- IntelliJ IDEA plugin
- PyCharm plugin
- WebStorm plugin
- PhpStorm plugin
- GoLand plugin
- CLion plugin
- Rider plugin
- RustRover plugin
- RubyMine plugin
- Xcode built in
Section 05 · Setup
Install Codex
The command-line tool, started with the command codex.
Pick one command
curl -fsSL https://chatgpt.com/codex/install.sh | sh powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex" npm install -g @openai/codex brew install --cask codex - Command
codex- Systems
- macOS, Linux, Windows
- In the terminal
- Yes · macOS, Linux, Windows (native or WSL2)
Setup page ↗ Checked 30 Nov 2026
Section 06 · Abilities
What it can do
The things that differ from one agent to the next. Codex has 9 of the 10 in full; the notes say where there is a catch.
Control
How much it may do on its own
- Yes Approval modes Ask, approve for me, full access, custom
- Yes Sandbox for commands On by default; macOS, Linux and Windows
- Not stated Undo its changes No undo command documented; the app reverts per file
Extend
What can be added to it
- Yes MCP servers
- Yes Hooks
- Yes Subagents
- Yes Skills or plugins Skills and plugins
Automate
Working without you
- Yes Runs unattended codex exec, with JSON output
- Yes Cloud sessions Keep working while the computer is asleep
- Yes Commits and pull requests Commit and push in the app; cloud tasks open pull requests
Section 07 · Fit
Who it is for
Codex is OpenAI’s coding agent. Its command-line tool runs on your computer and is open source under Apache-2.0; the same agent is offered as an extension for VS Code and its forks, in the ChatGPT desktop app, and as cloud tasks in ChatGPT that keep working while your computer is asleep. It can review pull requests on GitHub and be called from Slack. It is paid for through a ChatGPT plan or an OpenAI API key, and the command-line tool can also be pointed at other providers’ models or local ones.
What stands out
- The command-line tool is open source under Apache-2.0 and is released every few days.
- Commands run in an operating-system sandbox that is on by default, with the network off, on macOS, Linux and Windows.
- One ChatGPT plan covers the command-line tool, the IDE extension, the desktop app, cloud tasks and GitHub code review.
- The command-line tool can use other providers’ models and local models through Ollama or LM Studio.
- It runs natively on Windows, without WSL.
Suits
- People who already pay for ChatGPT, since the same plan includes it.
- Teams that want to hand tasks to the cloud and have pull requests reviewed on GitHub.
- Developers who want an open-source terminal agent with a sandbox that is on by default.
Look elsewhere if
- Free and Go users who want the command-line tool or cloud tasks; those plans get the desktop app only.
- People who need to know their limits in advance: they are published as wide ranges, and the weekly limits are not stated.
- JetBrains users who want a plugin from OpenAI itself; in JetBrains IDEs Codex runs as an agent inside JetBrains AI Assistant.
Section 08 · Alternatives
Compare
The agents people weigh against Codex, on the same facts.
| Agent | From | App | CLI | VS Code | JetBrains | Cloud | Own key | Open source |
|---|---|---|---|---|---|---|---|---|
| Codex This page | $20/mo | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Claude Code | $20/mo | Yes | Yes | Yes | Beta | Yes | Yes | No |
| Google Antigravity | Free | Yes | Yes | Yes | Yes | Yes | Yes | No |
| GitHub Copilot | Free | Yes | Yes | Yes | Yes | Yes | Yes | No |
| Cursor Agent | $8/mo | Yes | Yes | In part | Yes | Yes | In part | No |
Yes runs there Beta, In part in part or beta No Not stated App counts an agent’s own editor.
Section 09 · Short answers
Codex questions
14 short answers, each from an official page. Checked 30 Nov 2026.
Price and licence
Partly Is Codex free?
The Free and Go ChatGPT plans include Codex only in the desktop app, with GPT-6 Luna, subject to rollout. The command-line tool, the IDE extension and Codex on the web need Plus at $20 a month or a higher plan, or an API key billed per use.
Source: Codex pricing ↗
What are Codex's usage limits?
On Plus, limits are counted in messages per five hours and depend on the model, from 17 to 180 for GPT-6.2 Sol up to 350 to 3,000 for GPT-6 Luna; weekly limits may also apply. Pro plans from $100 a month have no five-hour limit, and Plus and Pro can buy credits when a limit is reached.
Source: Codex pricing ↗
Partly Is Codex open source?
The command-line tool, the SDK and the app server are developed in the open in the openai/codex repository on GitHub. The IDE extension and Codex Cloud are not open source.
Source: Codex open source ↗
Systems and setup
Yes Does Codex work on Windows?
Codex runs natively on Windows with its own Windows sandbox. Under WSL2 it uses the Linux sandbox; WSL1 is no longer supported from version 0.115.
Source: Agent approvals and security ↗
No Do I need a ChatGPT account to use the Codex CLI?
OpenAI recommends signing in with ChatGPT to use Codex as part of a Plus, Pro, Business, Edu or Enterprise plan. It also works with an OpenAI API key, which needs some extra setup.
Source: Codex repository ↗
Does Codex run locally or in the cloud?
Both. Local workflows run on your device, while Codex Cloud tasks run in environments OpenAI manages. Codex Cloud is for eligible Plus, Pro, Business, Enterprise and Education accounts, not Free or Go.
Switching to Codex
Which editors does Codex work in?
The Codex extension runs in Visual Studio Code and compatible editors such as Cursor and Windsurf. Xcode and JetBrains IDEs provide their own Codex integrations.
Source: IDE extension ↗
AI and privacy
Which models does Codex use?
GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra and GPT-6 Luna. OpenAI recommends GPT-6.2 Astra for demanding work and GPT-6.2 Sol for everyday tasks; without a choice, Codex uses a recommended model.
Source: Codex models ↗
Yes Can I use Codex with my own API key?
An API key works in the command-line tool, the SDK and the IDE extension, billed at API rates. Cloud features are not available with a key.
Source: Codex pricing ↗
Yes Can Codex use local or other providers' models?
With --oss the command-line tool runs against a local provider, Ollama or LM Studio. Other providers such as Amazon Bedrock, Azure or a gateway can be added as model providers in config.toml.
Source: Advanced configuration ↗
Partly Does OpenAI train on my code in Codex?
On Plus and Pro, conversations may be used to improve models unless you turn training off in ChatGPT's data controls, which also cover Codex. For Business, Enterprise and Edu, OpenAI does not use inputs or outputs by default.
Features
Yes Can Codex edit files and run commands without asking?
In the Auto preset it reads, edits and runs commands in the working folder without asking, and asks before working outside it or using the network. A read-only preset asks before changes, and full access (--yolo) drops both the sandbox and approvals, which OpenAI does not recommend.
Source: Agent approvals and security ↗
Yes Does Codex run commands in a sandbox?
An operating-system sandbox is on by default, usually limits writes to the current workspace and turns network access off. It uses Seatbelt on macOS, bwrap and seccomp on Linux, and a native sandbox on Windows.
Source: Agent approvals and security ↗
Yes Does Codex support MCP?
The desktop app, the command-line tool and the IDE extension connect to local STDIO and Streamable HTTP MCP servers. They share one configuration in config.toml, and codex mcp add adds a server from the terminal.
Source: Model Context Protocol ↗
Sources: 21 official pages, last checked 30 Nov 2026 ShowHide
- Source code ↗
- Command-line tool ↗
- Pricing ↗
- Using Codex with a ChatGPT plan ↗
- Models ↗
- IDE extension ↗
- Cloud ↗
- Approvals and sandbox ↗
- Open source ↗
- Releases ↗
- Students ↗
- ChatGPT desktop app ↗
- ChatGPT desktop app for Linux (preview) ↗
- Moving to the new ChatGPT desktop app ↗
- What's new (Codex app merged into the ChatGPT desktop app, 9 July 2026) ↗
- Codex on mobile ↗
- Codex GitHub Action ↗
- Use ChatGPT in Slack ↗
- Use Codex in Linear ↗
- Review GitLab merge requests with Codex (beta) ↗
- Codex in JetBrains AI Assistant ↗