Codex vs Cursor: plans, models, cloud agents and review
Codex vs Cursor as of November 2026: an agent you bring to any editor vs an editor with one, models, ChatGPT vs X Subscription prices, servers, cloud, review.
Codex is OpenAI’s coding agent, which you bring to the tools you already use: a terminal program (codex), an extension for VS Code and its forks (Cursor included), a view in the ChatGPT desktop app, and cloud tasks. It runs OpenAI’s models on your ChatGPT plan (Plus at $20 a month is the cheapest OpenAI lists for the CLI) or on an API key billed per token. Cursor is a code editor with an agent built in, plus a terminal agent (agent) and cloud agents. Since October 12, 2026 it is sold as part of The X Subscription (Free, Plus $8, Premium $30, Super $100, Ultra $200 a month): every plan runs Cursor’s own Grok and Composer models, and OpenAI’s, Anthropic’s and Google’s models only from Premium up, billed on top at API list price. Prices as of November 28, 2026. For GPT models on a flat subscription, Codex is the direct route; for an editor with a picker across providers, Cursor is. They combine: OpenAI publishes its Codex extension for Cursor.
At a glance
From each maker’s own pages, read on November 28, 2026:
| Codex | Cursor | |
|---|---|---|
What it is | An agent for your terminal, your editor and the ChatGPT desktop app, plus cloud tasks | A code editor with an agent built in, plus a terminal agent and cloud agents |
Terminal command | codex | agent |
Models | OpenAI’s: GPT-6.2 Sol recommended for everyday coding, GPT-6.2 Astra for demanding work | Cursor’s own (Grok 4.7, 4.6, 4.5, Composer 2.5) on every plan; OpenAI, Anthropic, Google and others from Premium up |
Paid from | ChatGPT Go, $8 a month (GPT-6 Luna in the desktop app); Plus, $20, for the CLI, the extension and the cloud; or an OpenAI API key | Plus, $8 a month (Grok models only); Premium, $30, for third-party models at API price |
Cloud runs | Codex cloud on Plus and up, from the plan’s allowance; not with an API key | Cloud Agents on Premium and up, from the plan’s usage at the model’s rate |
Pull request review | @codex review on GitHub, Plus and up | Bugbot on GitHub, GitLab, Bitbucket and Azure DevOps, Premium and up |
Project instructions | AGENTS.md | .cursor/rules/*.mdc and AGENTS.md |
Open source | The CLI is (openai/codex); the IDE extension and the cloud are not | Not stated on Cursor’s pages |
An agent you bring, or an editor you move to
OpenAI’s CLI page describes Codex as a way to “inspect code, make changes, run commands, and automate repeatable work without leaving your terminal.” The same agent comes as an extension: OpenAI’s IDE page says “VS Code and compatible editors use the Codex extension; Xcode and JetBrains IDEs provide their own integrations,” with install links for VS Code, Cursor and Windsurf. The Codex app is now the Codex view of the ChatGPT desktop app, for macOS and Windows with a Linux installation guide (the Codex app guide has the detail). None of them asks you to change editors.
Cursor is the editor, with its agent inside it. The Cursor CLI “lets you interact with AI agents directly from your terminal to write, review, and modify code”, with Agent, Plan and Ask modes; the Cursor CLI guide covers installing it and signing it in on a server.
Models
Codex runs OpenAI’s models. Its models page says “Choose GPT-6.2 Sol for everyday coding, writing, and work across several sources” and “For demanding work across code, apps, or research, choose GPT-6.2 Astra,” with GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna also offered. For another provider it needs a gateway that speaks OpenAI’s Responses API: “For a custom model provider or gateway, use a compatible Responses API endpoint.”
Cursor’s models page lists models “from OpenAI, Anthropic, Google, SpaceXSI, and more,” but only Cursor’s own (Grok 4.7, 4.6 and 4.5 and Composer 2.5) come out of the plan’s pool: “Third-party models aren’t included; on Premium and above you can use them at API list price, paid from prepaid credit.” Plus has “No Auto, Cloud Agents, Automations, Bugbot, Origin, third-party models, or your own API keys.” So GPT in Cursor means Premium or above and paying per token for every GPT request, where a ChatGPT plan includes GPT usage in Codex up to its limits.
Plans and price
Codex comes with ChatGPT. OpenAI’s Codex pricing page lists Free ($0) and Go ($8 a month) with “GPT-6 Luna at Standard speed in the desktop app, subject to rollout”; Plus ($20) with Codex on the web, in the CLI, in the IDE extension and on iOS, and cloud integrations such as automatic code review; Pro at $100, $200 or $500, which “currently have no five-hour limit”; and Business at $20 a user billed annually ($25 monthly). On Plus, OpenAI estimates 17–180 local GPT-6.2 Sol or 350–3,000 GPT-6 Luna messages per five hours, with weekly limits possible on top. An OpenAI API key works in the CLI, the SDK and the extension at API prices, with “No cloud features such as GitHub code review or Slack.” What each ChatGPT plan gets is in which ChatGPT plans include Codex.
Cursor is now sold as part of The X Subscription, which xAI announced on October 12, 2026 as “Grok, Grok Bot, Cursor, and X Premium, all on one plan,” and Cursor’s pricing help calls “one subscription for Grok, Cursor, and X.” From cursor.com/pricing, in US dollars a month before tax (billed yearly, the pricing help gives $80 a year for Plus, $300 for Premium, $1,000 for Super and $2,000 for Ultra):
| Plan | Price | What it adds for coding |
|---|---|---|
Free | $0 | Limited agent and chat requests |
Plus | $8 | The agent on Cursor’s own models; “Only Grok models are available on this plan” |
Premium | $30 | 4x Plus’s usage, cloud agents and automations, Bugbot code review, third-party models at API list price |
Super | $100 | 15x Plus’s usage, priority model access at peak times |
Ultra | $200 | 50x Plus’s usage, earliest access to all products and models |
Teams | From $30 a user | Seats at the Premium, Super or Ultra tier |
“Every tier includes a pool of AI usage shared across Cursor and Grok,” and it refreshes weekly, so Grok chat and Cursor coding draw on the same allowance. Third-party model usage “is not included in the monthly prices shown and must be purchased separately.” If you subscribed to Cursor before the change, the help page says “Your legacy plan, price, and features continue unless you change or cancel” (Pro $20, Pro+ $60, Ultra $200).
Side by side, the two $8 plans buy different things: ChatGPT Go gives Codex’s smallest model in the desktop app, and Cursor Plus gives Cursor’s agent on Grok and Composer in the editor and CLI. The cheapest way to GPT-6.2 Sol in Codex is ChatGPT Plus at $20; in Cursor it is Premium at $30 plus the API price of every request.
On a server, headless
Both have a terminal agent that runs on a Linux box over SSH, and a one-shot mode for scripts and CI. Install Codex with the script, npm or Homebrew, and the Cursor CLI with its script:
# Codex CLI
curl -fsSL https://chatgpt.com/codex/install.sh | sh # or: npm install -g @openai/codex
# Cursor CLI (then add ~/.local/bin to your PATH)
curl https://cursor.com/install -fsS | bashCopiedSigning in without a browser. Codex offers codex login --device-auth: you open a link on your own computer and enter a one-time code, once device code login is turned on in your ChatGPT security settings (the device code guide). With an API key, OpenAI’s auth page pipes it in on stdin, so it never sits on the command line:
printenv OPENAI_API_KEY | codex login --with-api-keyCopiedThat assumes OPENAI_API_KEY is already set in the shell. Codex then keeps the login in ~/.codex/auth.json (plain text) or the system’s credential store. The Cursor CLI prints its login URL with NO_OPEN_BROWSER=1 agent login, and for “automation, scripts, or CI environments” takes a Cursor API key in CURSOR_API_KEY. That key is a Cursor account key, not a model provider’s, and its usage comes from your Cursor plan.
What a script run may do. The defaults differ. OpenAI’s non-interactive page says “By default, codex exec runs in a read-only sandbox”; you add --sandbox workspace-write to let it edit (codex exec covers the flags). Cursor’s headless page says “Print mode writes to files in your workspace even without --force,” and --force runs every action without approval. Point either at a repository you can reset.
From a desktop to a server. The ChatGPT desktop app can open a project on an SSH host from your ~/.ssh/config, running Codex on the server with codex on its PATH; the pricing page lists SSH remote connections on every paid column, API key included (remote connections). For a session that survives a dropped SSH connection, run either CLI in tmux; Codex on a Linux server walks through the whole setup.
Cloud agents
Codex cloud gives each task its own workspace that “can keep working while your computer is asleep,” checks out a repository from your connected GitHub or GitLab account, and lets you commit or open a pull request when you are done. You start it from the web, the desktop app, the phone, the terminal or the IDE; it needs a ChatGPT sign-in (Plus and up, not an API key) with multi-factor authentication set up if you sign in by email and password, and cloud tasks share the plan’s allowance with local work and may use more of it.
Cursor’s Cloud Agents “run in isolated VMs in the cloud with full development environments,” start from the editor, cursor.com/agents, the iOS app, Slack, GitHub or Bitbucket comments, Linear or the API, and clone from GitHub, GitLab, Azure DevOps or Bitbucket Cloud. They are on Premium and up (“Free and Plus don’t include them”), billed from the plan’s usage at the chosen model’s rate, with a spend limit you set the first time. In the CLI, starting a message with & hands it to one. Where the cloud fits against a machine of your own is in Codex cloud vs your own machine.
Code review
Codex reviews GitHub pull requests when you comment @codex review, or by itself once Automatic review is turned on in Codex settings. Its GitHub page says it flags “only P0 and P1 issues,” and it reads review rules from a ## Code Review Rules section in AGENTS.md. The pricing page lists it on Plus and up and not with an API key; /review reviews locally, on a paid plan or an API key alike.
Cursor’s Bugbot “reviews pull requests and identifies bugs, security issues, and code quality problems” on GitHub, GitLab, Bitbucket and Azure DevOps, automatically on each update or when you comment cursor review or bugbot run. It is on Premium and up, takes its rules from .cursor/BUGBOT.md (not from .cursor/rules), and “first consumes your included usage, then bills additional reviews from your prepaid credit.” Bugbot Autofix starts a Cloud Agent to fix what it found, billed as Cloud Agent usage.
Which to pick
- You want GPT models and a predictable bill: Codex on a ChatGPT plan. In Cursor, every GPT request is paid at API price on top of a $30-or-more plan.
- You want one editor with several providers’ models: Cursor, on Premium or above if you want GPT, Claude or Gemini among them.
- You want the cheapest paid coding agent and any model will do: Cursor Plus at $8 runs the agent on Cursor’s own models in the editor and CLI; Codex in the CLI starts at $20, and ChatGPT Go at $8 gives Codex in the desktop app only, on GPT-6 Luna.
- You want to keep your editor: Codex, as an extension in VS Code and its forks (Cursor included), or through JetBrains’ and Xcode’s own integrations.
- You work on a server: both CLIs run there. Codex’s docs say its scripted mode starts read-only, though in a trusted project the default can be workspace-write, so a script passes
--sandbox(codex exec); Cursor’s writes files by default. - You already pay for Grok or X Premium: Cursor now comes in the same subscription.
Using both. OpenAI’s install link cursor:extension/openai.chatgpt puts the Codex extension into Cursor, so you can keep Cursor’s editor and its agent on Cursor’s models, with Codex on your ChatGPT plan in the sidebar (Codex in VS Code covers the extension). Both read AGENTS.md (“Cursor supports AGENTS.md in the project root and subdirectories”), so shared instructions go there. The same comparison with Anthropic’s agent is Claude Code vs Cursor, and the two agents from the big labs are weighed in Codex vs Claude Code.