A blog and newsletter on Vibe coding workflows and AI coding agents (Claude Code, Codex, etc.).

Comparison

Codex vs Cursor

Codex is OpenAI's coding agent, reached through your ChatGPT plan from a terminal, an editor extension, the desktop app or the cloud. Cursor is an editor with its own agent and a choice of models. Codex even runs inside Cursor, so the real question is which one you build your day around.

Facts checked November 23, 2026against each vendor’s docs.

The short answer

Pick Codex if you already pay for ChatGPT, want an agent you can hand tasks to from wherever you are (terminal, your current editor, the ChatGPT app, or a cloud task that keeps going while your laptop sleeps), and are happy working with OpenAI's models.

Pick Cursor if you want the editor itself to be the AI tool: Tab autocomplete as you type, an agent panel beside your files with diffs to review in place, cloud agents and PR review in the same product, and models from several providers.

You don't have to choose one. The Codex IDE extension installs in Cursor, so a common setup is Cursor as the editor with Codex alongside it for the tasks you'd rather delegate.

Codex and Cursor side by side

CodexCursor
What it isOpenAI's coding agent: reads the repo, edits files, runs commands, reviews codeAn AI code editor with an agent, chat and Tab autocomplete, plus a CLI and cloud agents
Where you use itCodex CLI, IDE extension (VS Code, Cursor, Windsurf; JetBrains and Xcode integrations), ChatGPT desktop, web and mobile appsThe Cursor editor, Cursor CLI, cursor.com/agents on the web, iOS app, Slack, GitHub, Linear
ModelsOpenAI's models; which ones depends on your ChatGPT plan or API keyCursor's own models on paid plans, with third-party models (OpenAI, Anthropic, Google and others) on higher plans
Autocomplete as you typeNo: it works on tasks, not keystrokesYes: Tab, which can edit several lines, add imports and jump to the next edit
Project instructionsAGENTS.md files, global (~/.codex) and per directory, merged root downProject rules in .cursor/rules, user and team rules, or AGENTS.md
Running in the cloudCodex Cloud: each task gets its own workspace and keeps running while your computer sleepsCloud agents in isolated VMs, started from the editor, web, Slack, GitHub, Linear or the API
Safety controlsSandbox plus approval modes (Ask for approval, Approve for me, Full access)Run modes (Auto-review, Allowlist, Run Everything), with sandboxed shell commands
Pull request review@codex review on GitHub, or automatic reviews; /review on local changes in the CLIBugbot reviews each PR update, or on a cursor review comment
Automation and CIcodex exec for scripts and pipelines, the Codex SDKHeadless CLI (agent -p), Automations, cloud agents API, SDK
PriceIncluded with ChatGPT plans, or billed per token with an API key: check developers.openai.com/codex/pricingFree and paid plans with a usage pool: check cursor.com/pricing

The real difference: an agent you reach from anywhere, or an editor built around one

Codex is one agent with many doors. The same agent answers in your terminal, in a sidebar in VS Code, JetBrains or Xcode, in the ChatGPT desktop app, and as a cloud task you start from your phone. You describe the work, it plans, edits and runs commands, and you review what it hands back. Nothing about it asks you to change editors.

Cursor is a place to work. You open your project in it, Tab suggests the next edit as you type, and the agent works in a panel beside your files, showing each change as a diff you accept or reject. Its CLI and cloud agents reach outside the editor, but the editor is the centre.

So the choice is less about which agent writes better code on a given day, which shifts with every model release, and more about where you want to spend your attention: typing with help in an editor, or scoping tasks and reviewing results wherever you happen to be.

Local work, cloud work

Both run locally against your checkout, and both can send work to the cloud. Codex Cloud gives each task its own workspace built from an environment you set up and publish (repositories, dependencies, network access, secrets), and the task keeps going while your computer is asleep. You review the changed files and open a pull request when you're ready. Codex Cloud needs a ChatGPT sign-in; an API key only covers local use.

Cursor's cloud agents run in isolated VMs with a full development environment, clone your repo from GitHub, GitLab, Bitbucket or Azure DevOps, work on a branch and push it back. You can start them from the editor, the web, Slack, a GitHub comment, Linear or the API, and hand off a running CLI chat by prefixing a message with &.

In both, the cloud is only as useful as the environment you give it. An agent that can't install dependencies or run your tests can't check its own work, so budget time for setting that up whichever you pick.

Working in an existing codebase

Codex reads AGENTS.md before it does anything: a global file in ~/.codex, then one per directory from the repo root down to where you're working, with closer files taking precedence. Cursor reads project rules in .cursor/rules (scoped by file pattern, applied when relevant, or called by name) and also reads AGENTS.md.

That overlap is useful. One AGENTS.md at the root of your repo serves both tools, so a team split between them can keep a single set of conventions, and if you use Codex inside Cursor, both agents read the same file.

Models and cost

Codex runs OpenAI's models only, and which ones you get depends on your ChatGPT plan. Cursor's paid plans include a usage pool for Cursor's own models, and third-party models, OpenAI's among them, are available on higher plans at the provider's API price. Using an OpenAI model in Cursor gets you the model, not Codex: the agent, tools and workflow around it are Cursor's.

Codex usage comes out of the allowance in your ChatGPT plan, which you can extend with credits, or is billed per token when you sign in with an API key. Cursor plans include a usage pool that refreshes on a schedule, with heavier models drawing it down faster. Agent loops use far more tokens than chat, so with either tool the bill depends on how much you delegate. Check developers.openai.com/codex/pricing and cursor.com/pricing for the current plans before you commit a team.

Review and safety

Locally, Codex works inside a sandbox and an approval mode decides when it stops to ask you: Ask for approval is the suggested start, and Full access removes the boundary. Cursor's run modes do the same job: Auto-review runs known-safe calls and sandboxes or reviews the rest, Allowlist runs only what you've approved, and Run Everything asks nothing. In CI, codex exec starts in a read-only sandbox until you allow more.

To undo, Cursor saves checkpoints during an agent session that you can restore from the chat; Codex's docs recommend making Git checkpoints before and after each task. For pull requests, Codex reviews on GitHub when you comment @codex review or turn on automatic reviews, and follows review rules in your AGENTS.md; Cursor's Bugbot reviews each pull request update. Either is a second pair of eyes, not a replacement for your own review.

Which to choose

Choose Codex if

  • You already pay for ChatGPT and want coding included in that plan
  • You want to keep your current editor, or work from the terminal
  • You want to start tasks from your phone or the ChatGPT app and pick up the result later
  • You want to script the agent in CI with codex exec or build on the Codex SDK

Choose Cursor if

  • You want AI autocomplete on every line you type
  • You prefer to see and approve each change inside the editor as it happens
  • You want to switch between models from different providers in one tool
  • You want editor, cloud agents and PR review (Bugbot) from one vendor

Questions people ask

Can I use Codex inside Cursor?

Yes. The Codex IDE extension installs in Cursor as it does in VS Code: open the Codex sidebar, sign in, and work with the files you have open. The Codex CLI also runs in Cursor's built-in terminal.

Does Cursor use OpenAI models?

OpenAI models are among the third-party models Cursor offers on its higher plans. That gives you the model, not Codex: the agent, tools and workflow around it are Cursor's.

Is Codex free with ChatGPT?

Codex comes with ChatGPT plans, each with its own usage allowance and set of models, and you can also use it with an API key billed per token. What each plan includes changes, so check developers.openai.com/codex/pricing.

Which is better for beginners?

Cursor is usually easier to start with if you know VS Code: it looks like an editor and you see every change. Codex in the ChatGPT app or your editor's sidebar is gentle too, but handing it whole tasks asks you to be comfortable reviewing diffs you didn't watch being written.

Which is cheaper?

It depends on how much you use the agent and which models you choose. If you already pay for ChatGPT, Codex may cost you nothing extra to try. Compare your expected usage against developers.openai.com/codex/pricing and cursor.com/pricing.

Where to check prices and limits

Plans, prices and usage limits change often, so this page doesn’t quote them. Check them at the source:

More comparisons