Claude Code vs Codex vs Cursor: How They Work, What They Cost, Who They Suit

Compare Claude Code, OpenAI Codex and Cursor from their official pages: where they run, how they are billed, what each does best, and whether a subscription or API credit is the better deal.

Short answer: pick Claude Code if you want AI to read the code, edit files and run commands for you in the terminal; pick Codex if you already pay for ChatGPT; pick Cursor if you like writing in an editor with inline completions. Facts come from the three official pages, checked in November 2026 with US prices.

What each one is

Claude Code: Anthropic's agentic coding tool that understands the whole codebase, edits across files and runs commands, in the terminal, VS Code and JetBrains extensions, a desktop app and the web.

Codex: OpenAI's coding agent, included in ChatGPT Plus, Pro, Business and other plans, for exploring code, building features, reviewing changes and fixing issues.

Cursor: an AI code editor built around in-editor agents, chat and completions, now sold bundled with X and Grok subscriptions.

How they are billed

Claude Code: needs a Claude subscription or an API account. Pro is $20 a month or $17 a month billed annually; Max is $100 a month with 5x Pro usage; Ultra is $200 a month. With the API you pay per token.

Codex: no separate fee; usage comes with a ChatGPT plan, from Plus at $20 a month.

Cursor: Plus is $8 a month with Grok models only; Premium is $30 a month with 4x Plus usage, cloud agents and AI code reviews; Super is $100 and Ultra $200. Third-party models are billed separately at API list price.

What each does best

Claude Code: big changes such as cross-file refactors, migrations and building features from a spec, with subagents working in parallel.

Codex: tied into ChatGPT, so you can pick work up on the web, mobile or desktop; best for people already in ChatGPT every day.

Cursor: the smoothest editor experience with inline completions; Premium adds cloud agents and Bugbot code reviews.

Subscription or API credit

If you code heavily every day, a subscription is simpler and its limits reset each cycle.

If you code in bursts, or want your own key in Cursor or VS Code, API credit is more flexible: our Claude API and Codex API codes work with Claude Code, Codex, Cursor and VS Code.

Claude Code also supports third-party providers; use the Base URL and model names shown after redemption.

A quick way to decide

Run the same small task in each and see which gets it right with the smallest change. Paste this prompt:

Read this project, find where the login endpoint skips input validation, fix it, add a test and list the files you changed.

Before you buy

All three are only offered in supported countries.

Official details: Claude Code, Claude pricing, Codex, Cursor pricing.

Related products: Claude API, Codex API, Grok + Cursor. Related guides: Claude model guide, Claude API credit vs token packs.

Further reading: Claude API Credit vs Token Packs: Do the Math by Usage and Model, Fable, Opus, Sonnet or Haiku: Key Takeaways from Claude's Model Guide, Claude API Pricing 2026: Per Million Tokens, Caching, Batch and Cost Examples.