Cursor vs Claude Code: how an AI editor and a terminal-first agent compare
On this page
Cursor is a code editor with an agent built into it; Claude Code is an agent that starts in the terminal and also runs inside VS Code, JetBrains IDEs, a desktop app and the cloud. Both read and edit a repository, run commands, use MCP servers and can hand work to cloud machines. The decisive differences are models and billing (Cursor runs its own Grok and Composer models in the plan pool and bills Claude and GPT models separately at API list price, while Claude Code runs Claude models on Claude plans) and how you work: inside an editor with checkpoints and inline diffs, or in a session you drive by prompt.
Checked as of 3 November 2026 against Cursor’s documentation and pricing page, and Anthropic’s Claude Code documentation and pricing page.
Cursor vs Claude Code at a glance
| Cursor | Claude Code | |
|---|---|---|
| Starting point | Desktop editor with Agent in a side pane | CLI (claude), with IDE extensions and a desktop app |
| Terminal | Cursor CLI (agent) | The primary surface |
| Remote work | Cloud Agents in isolated VMs | Cloud sessions, self-hosted runners on Team and Enterprise |
| Models | Grok and Composer in the plan pool; Claude, GPT, Gemini and others at API list price | Claude models |
| Instructions | .cursor/rules/*.mdc, User and Team Rules, AGENTS.md | CLAUDE.md, .claude/rules/, or AGENTS.md |
| MCP config | ~/.cursor/mcp.json, .cursor/mcp.json | claude mcp add, ~/.claude.json, .mcp.json |
| Autonomy controls | Run modes: Auto-review, Allowlist, Run Everything | Permission modes plus allow, ask and deny rules |
| Hooks | .cursor/hooks.json | hooks in settings.json |
IDE agent vs terminal-first agent
Cursor’s Agent lives in the editor’s side pane (Cmd+I). It searches the codebase, edits files, runs terminal commands, drives a browser and asks clarifying questions while it keeps working. Checkpoints snapshot modified files before significant changes, so you can preview and restore an earlier state from the chat timeline. For a larger piece of work, a Project has a coordinator agent plan it and delegate to other agents.
Claude Code is built around a session: you describe the task, Claude reads and edits files and runs commands, and you approve what your permission settings require. The CLI is the full-featured surface; Anthropic’s platforms page says scripting and the Agent SDK are CLI-only. The VS Code extension adds inline diffs and plan review, the JetBrains plugin runs the CLI in the IDE’s terminal, and the desktop app adds a diff viewer and parallel sessions. Claude Code’s VS Code extension also installs in Cursor.
Both now cover the other’s home ground to a degree. Cursor has a CLI that supports the editor’s modes, and Claude Code has editor integrations. The default experience still differs: Cursor puts the agent next to your files, Claude Code puts your files behind the agent.
Cursor cloud agents vs Claude Code sessions
Cursor Cloud Agents run in isolated VMs with full development environments: cloned repositories, installed dependencies, secrets and startup commands. You start them from the desktop app, cursor.com/agents, the iOS app, Slack, a GitHub or Bitbucket comment, Linear or the API. They work on a separate branch and push it for handoff, can run as many in parallel as you like, use team MCP servers and run hooks from the repository’s .cursor/hooks.json. Environments come from agent-led setup, a saved snapshot or a Dockerfile in .cursor/environment.json.
Claude Code’s cloud sessions run from claude.ai/code, the desktop app or mobile, on Anthropic-managed infrastructure by default, and keep going after you disconnect. Team and Enterprise organizations can run them on their own machines with self-hosted runners. Locally, Claude Code can also be steered from another device with Remote Control.
Model choice
Cursor supports models from OpenAI, Anthropic, Google, SpaceXSI and others. Its models and pricing page splits them in two. Cursor’s own models (Grok 4.7, 4.6, 4.5 and Composer 2.5) draw from the plan’s weekly usage pool. Third-party models such as Claude, GPT and Gemini aren’t in that pool: on Premium and above they’re billed at the model’s API list price from prepaid credit, and Free and Plus don’t offer them. Teams and Enterprise pay list price plus a Cursor Token Rate of $0.25 per million input, output and cached tokens on eligible third-party models.
Claude Code runs only Claude models, picked with /model and aliases such as opus, sonnet, haiku and fable, through Anthropic’s API, Amazon Bedrock, Google Cloud, Microsoft Foundry or an LLM gateway.
That makes cost per Claude request the sharpest practical difference. If most of your work runs on Claude, Claude Code includes it in the subscription; Cursor charges it on top of the subscription.
Pricing models
Only what the official pages said in early November 2026:
- Cursor: plans are sold as part of the X Subscription, which also covers Grok and X. The pricing page listed Free ($0), Plus ($8 a month, Grok models only), Premium ($30, four times Plus usage, adding cloud agents and third-party models at API list price), Super ($100, 15 times Plus) and Ultra ($200, 50 times Plus). Teams starts at $30 per user a month and Enterprise is custom; both add the Cursor Token Rate on eligible third-party models. Usage refreshes weekly, and third-party model usage isn’t included in the monthly price.
- Claude Code: Claude’s pricing page includes it in Pro ($20 a month, $17 billed annually), Max ($100, five times Pro usage) and Ultra ($200, no five-hour limit for verified accounts), but not Free. Team seats are $25 standard or $125 premium per month billed monthly, and Enterprise is $20 per seat a month billed annually plus usage at API rates.
Rules vs CLAUDE.md
Cursor’s rules come in four kinds. Project rules are .mdc files in .cursor/rules/ with frontmatter that decides when they apply:
---
globs: src/components/**/*.tsx
alwaysApply: false
---
- Use named exports, not default exports
alwaysApply: true includes a rule in every chat, globs attaches it when a matching file is in context, a description alone lets the agent pull it in when relevant, and a rule with none of them loads only when you @-mention it. User Rules apply to your whole Cursor install, Team Rules come from the dashboard on Team and Enterprise plans, and Cursor also reads AGENTS.md. A plain .md file in .cursor/rules/ is ignored.
Claude Code loads CLAUDE.md files from your home directory and the project at the start of each session, rule files from .claude/rules/ that can be scoped to paths, and reads AGENTS.md when the repository has no CLAUDE.md. CLAUDE.md vs AGENTS.md covers keeping one copy for every tool.
MCP configuration in each
Cursor reads MCP servers from ~/.cursor/mcp.json for every project and .cursor/mcp.json for one, supports stdio, SSE and streamable HTTP with OAuth, and interpolates ${env:NAME} in headers. Claude Code adds servers with claude mcp add at local, user or project scope. Setup and gateway steps are in the Cursor client guide and the Claude Code client guide.
Permissions and auto-run
Cursor’s run modes decide which shell, MCP and fetch calls run without asking:
| Run mode | What runs without asking |
|---|---|
| Auto-review | Allowlisted calls; other shell commands in the sandbox where possible; the rest goes to a classifier |
| Allowlist | Only actions on your allowlist |
| Run Everything | Every tool call |
Cursor recommends Auto-review for most people and says plainly that the classifier isn’t a security boundary. Its sandbox limits shell commands to the workspace with network blocked by default, and permissions.json lets you steer the classifier in plain English. MCP tool calls ask for approval by default.
Claude Code’s modes (default, acceptEdits, plan, auto, dontAsk, bypassPermissions) set the baseline, and allow, ask and deny rules in settings.json name tools and commands exactly. Its auto mode also uses a background classifier. The OS-level Bash sandbox is opt-in. The Claude Code permissions guide covers both in detail.
The practical difference: Cursor’s controls lean on plain-English guidance and a classifier, and Claude Code’s on exact rules you write and can audit with /permissions.
Teams using Cursor and Claude Code together
A common split is Cursor for editing and Claude Code for longer terminal or cloud tasks. If you run both, a few things keep them consistent:
- Keep shared instructions in
AGENTS.md. Cursor reads it, and Claude Code reads it when there’s noCLAUDE.mdor when aCLAUDE.mdimports it. - Cursor’s docs say it can load Claude Code hooks from
.claude/settings.jsonfiles, and that its subagents are also read from.claude/agents/, so policy hooks and subagents can live in one place. Claude Code hooks covers writing them. - Exit code 2 blocks an action in both tools’ hooks.
- MCP servers and their credentials are configured separately in each, in different files. That’s where drift usually starts.
For remote MCP servers, a gateway removes that duplication. Toolstile gives Cursor and Claude Code each their own agent behind one gateway URL, with Allow, Require approval or Block per tool, upstream credentials held in the gateway and every forwarded call logged.