# Cursor vs Claude Code

_Cursor is an editor with an agent built in and a choice of many models. Claude Code is a terminal agent for Claude models that also plugs into your existing editor._

Cursor and Claude Code start from different places. Cursor is a desktop code editor whose agent works next to your open files. Claude Code is a terminal [coding agent](/learn/concepts/ai-engineering/coding-agents) that also runs inside VS Code, JetBrains, a desktop app and the browser. The gap has narrowed: Cursor now ships a terminal agent, and Claude Code ships an extension for VS Code and Cursor. Facts were checked against each tool's own docs and pricing page in November 2026. Model lists were rechecked on December 4, 2026.

On November 30, 2026, Cursor was renamed Grok Build. Cursor's site now reads "Cursor is now Grok Build", and its docs moved to docs.grok.com. The announcement says the core desktop app is unchanged, and the Grok Build TUI, run as `grok`, replaces the Cursor CLI as the terminal agent. This page keeps the name Cursor for the editor.

## Decision Table

| | Cursor | Claude Code |
| --- | --- | --- |
| Entry price | Free tier. Paid plans from $8 per month | Claude Pro at $20 per month. No free tier |
| How it works | You edit code and hand tasks to an agent beside your open files | You give a prompt in a directory and the agent edits, runs commands and reports back |
| Editor or terminal | Editor first, with a terminal CLI | Terminal first, with editor extensions and a desktop app |
| Parallel agents | Cloud agents run in the background on Cursor's servers | Several sessions at once, each needing its own checkout or worktree |
| Model choice | Grok and Composer models, plus Claude, GPT and Gemini from Premium up | Claude models only |

Prices are from each vendor's pricing page, checked November 2026.

## At a Glance

| | Cursor | Claude Code |
| --- | --- | --- |
| Form | Desktop editor, plus the `grok` terminal agent, cloud agents and a web app | Terminal agent, plus VS Code and JetBrains extensions, a desktop app and the web |
| License | Proprietary | Proprietary |
| Pricing | Free with limited agent use. Plus $8, Premium $30, Super $100, Ultra $200 per month. Teams from $30 per user per month. | Claude Pro $20 billed monthly, Max $100, Ultra $200 per month. Team and Enterprise plans, or pay per token through the Console. |
| Models | Grok 4.7, Grok 4.6, Grok 4.5 and Composer 2.5. Claude Fable 5.2 and Opus, Sonnet and Haiku 5.5, GPT-6.2 Astra and Sol, Gemini 4 models and others on Premium and above, billed at API list price | Claude models, Opus 5.5 by default, through Anthropic, Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry |
| Permission model | Run Modes: Auto-review, Allowlist, Run Everything | Modes: Manual, `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions`, plus allow and deny rules |
| Automated review | Auto-review sends calls that cannot run in the sandbox to a classifier on Cursor's backend | `auto` mode sends actions to a background classifier |
| Sandbox | Seatbelt on macOS, Landlock and seccomp on Linux. Network blocked by default | Optional. Seatbelt on macOS, bubblewrap on Linux and WSL2. Network limited to allowed domains |
| MCP | Yes | Yes |
| Project instructions | `.cursor/rules` and `AGENTS.md` | `CLAUDE.md` or `AGENTS.md` |
| Skills and extensions | Agent Skills, rules, hooks, plugins from the Cursor Marketplace | Agent Skills, plugins, hooks, subagents |
| Headless and CI | `grok -p` with JSON output, the older `agent -p`, cloud agents, Bugbot code review | `claude -p`, GitHub Actions, GitLab CI/CD, GitHub Code Review |
| Platforms | macOS, Windows, Linux | macOS, Windows, Linux |

## IDE Agent vs Terminal Agent

An IDE agent sees what you see. Cursor's agent works beside your open files, so you read its diffs in the window you write code in. You switch between typing and delegating without changing tools. That suits people who want to stay close to each change.

A terminal agent starts from a prompt and a directory. Claude Code needs no editor, so it runs over SSH, in CI and in scripts the same way it runs on your laptop. You review its work with `git diff` or in whatever editor you already use. Its VS Code and JetBrains extensions add inline diffs when you want them.

Both tools now cover both styles to some degree. Cursor's terminal agent, now the Grok Build TUI, has a print mode for scripts, and automations that call the old `agent` command keep working. Claude Code's desktop app adds visual diff review and side-by-side sessions.

## Pricing and Models

Cursor became part of SpaceX in August 2026, and its current plans center on its own models. The $8 Plus plan uses only its own Grok and Composer models at fixed settings. Third-party models from Anthropic, OpenAI, Google and Meta are available from Premium up, paid from prepaid credit at API list price on top of the plan. Teams and Enterprise plans add a token rate of $0.25 per million tokens on eligible third-party models.

The current third-party list includes Claude Fable 5.2, Claude Opus 5.5, GPT-6.2 Astra, GPT-6.2 Sol, Gemini 4 Carbon and Gemini 4 Neon. The list still includes GPT-6 Astra, GPT-6.1 Sol and Gemini 4 Argon, which Google has deprecated.

Claude Code runs Claude models only, and usage comes out of your Claude plan's limits or your API bill. If you mainly want Claude models, Claude Code includes them in the subscription. In Cursor, Claude models are billed separately from the plan price.

## Safety Controls

Cursor's docs recommend Auto-review for most people. Allowlisted calls run at once. Other shell commands run in a sandbox when they can. Anything else goes to a classifier that runs on Cursor's backend. Cursor's docs state that Auto-review is not a security boundary. On Linux, the sandbox needs kernel 6.2 or later, and without it Cursor asks before running commands.

Claude Code starts in `auto` mode on version 2.1.283 and later. A background classifier reviews most actions instead of asking you, much like Auto-review. Manual mode, called `default`, asks before edits and shell commands. Its sandbox is off until you turn it on.

## Extending the Agent

Both tools support MCP servers, Agent Skills, hooks and plugins. Cursor loads skills from `.claude/skills` and `~/.claude/skills` too, so skills you wrote for Claude Code work in Cursor. Both read `AGENTS.md`, so one instructions file can serve both.

## When to Pick Which

- **Pick Cursor** if you want an editor and an agent in one app, a free tier to start on, a choice of model vendors, or Cursor's cloud agents and Bugbot reviews.
- **Pick Claude Code** if you live in the terminal, run agents over SSH or in CI, want to keep your current editor, or mainly use Claude models.
- **Pick both** if you like Cursor as an editor but want Claude Code's agent. Run Claude Code in Cursor's terminal or through its extension inside Cursor.

If you already use Cursor for editing, try Claude Code in its terminal on a familiar task. Compare how you inspect the edits, run tests, and return to the code in each workflow.

## Codex vs Cursor

OpenAI's Codex is closer to Claude Code than to Cursor. It is a terminal agent with an IDE extension and a cloud mode, and it runs OpenAI models, with GPT-6.2 Astra and GPT-6.2 Sol recommended. The extension works in VS Code and in Cursor, so you can use Codex inside Cursor the same way you use Claude Code.

Codex comes with every ChatGPT plan, including Free and the $8 Go plan. Plus is $20 per month and Pro starts at $100, per OpenAI's Codex pricing page in November 2026. Pick Cursor over Codex if you want the editor itself. Pick Codex if you already pay for ChatGPT and want a terminal agent. [Codex vs Cursor](./codex-vs-cursor.mdx) compares the two in full, including Cursor's rename to Grok Build. [Claude Code vs Codex CLI](./claude-code-vs-codex-cli.mdx) compares the two terminal agents.

## Claude Code Alternatives

If you want a terminal agent but not Claude Code, the main options are:

- **Codex CLI:** OpenAI's agent, included in ChatGPT plans. See [Claude Code vs Codex CLI](./claude-code-vs-codex-cli.mdx).
- **OpenCode:** an open-source agent that works with many model providers. See [OpenCode vs Claude Code](./opencode-vs-claude-code.mdx).
- **Gemini CLI:** Google's agent. See [Claude Code vs Gemini CLI](./claude-code-vs-gemini-cli.mdx).

[Best Coding Agent CLIs](./best-coding-agent-clis.mdx) covers every current terminal agent in one table, and [Claude Code Alternatives](./claude-code-alternatives.mdx) ranks them as replacements for Claude Code.

## Cursor Alternatives

If you want an agent but not Cursor's editor, you have two routes. [Cursor Alternatives](./cursor-alternatives.mdx) also covers other AI editors.

- **Keep your editor and add a terminal agent.** Claude Code, Codex and OpenCode each run beside VS Code, JetBrains or Vim.
- **Add an app that runs several agents.** [Best Tools for Running AI Coding Agents in Parallel](./best-parallel-agent-tools.mdx) compares the apps that give each agent its own workspace.

## Running Several Agents at Once

Agents that edit the same checkout can overwrite each other’s uncommitted changes. Treq gives each agent its own [workspace](/docs/concepts/workspaces). For a manual setup, see [how to run multiple Claude Code sessions](/learn/how-to/how-to-run-multiple-claude-code-sessions).

## Sources

Model facts checked December 4, 2026:

- Grok Build: [models and pricing](https://docs.grok.com/build/agents-window/models-and-pricing), [overview](https://docs.grok.com/build/overview) and the [rename announcement](https://forum.cursor.com/t/cursor-is-now-grok-build/179623)
- Claude Code: [model configuration](https://code.claude.com/docs/en/model-config)
- Codex: [models](https://learn.chatgpt.com/docs/models)

## Next Steps

- [OpenCode vs Claude Code](./opencode-vs-claude-code.mdx): an open-source terminal agent against Anthropic's
- [Best Tools for Running AI Coding Agents in Parallel](./best-parallel-agent-tools.mdx): apps that manage several agents
- [Review AI-Generated PRs](/learn/how-to/review-ai-generated-prs): check agent output before it merges
