Claude Code vs Cursor
Anthropic's terminal-first agent and the AI editor's Cloud Agents, compared on what decides a team's choice once agents work unattended: the machine each runs on, which repositories it can reach, where work starts and what lands in review.
Facts checked against each vendor’s documentation on .
The short answer
Most people asking this are choosing between two ways of working: Claude Code is an agent you drive from the terminal (with IDE extensions, a desktop app and the web), and Cursor is an editor built around an agent. Both are good at writing code, and which model writes better code moves with every release, so this page doesn't pick a winner there. It looks at what a team lives with once the work leaves the laptop: how each one's cloud agent is set up, what it can reach, where a task can start and what comes back.
In practice: Cursor's Cloud Agents (formerly Background Agents) accept repositories on GitHub, GitLab, Bitbucket Cloud and Azure DevOps, take work from Slack, Linear, Jira, GitHub and an API, and can save a multi-repo environment. Claude Code's cloud sessions clone from GitHub only (GitHub Enterprise Server on Team and Enterprise), keep your keys outside the VM behind a proxy, and can route sessions to self-hosted environments. Claude Code runs Anthropic's Claude models; Cursor lets you pick from several model makers, Claude among them.
Claude Code and Cursor side by side
| Feature | Claude Code | Cursor |
|---|---|---|
| What it is | Anthropic's coding agent: a CLI first, with VS Code and JetBrains extensions, a desktop app and cloud sessions on the web. | An AI code editor with an agent built in, plus a CLI (agent) and Cloud Agents that run on Cursor's machines. |
| Models | Claude models. The CLI, VS Code and JetBrains can also reach Claude through third-party providers such as Amazon Bedrock and Google Cloud Vertex AI. | Cursor's own models plus third-party models from Anthropic, OpenAI, Google and others. Cloud Agents use a curated selection of them. |
| Running it in the cloud | Cloud sessions, started at claude.ai/code, from the Desktop or mobile app, or with claude --cloud in the terminal. | Cloud Agents, started from cursor.com/agents, by choosing Cloud in the desktop app, from the iOS app, or through the API. |
| The cloud machine | A fresh Ubuntu 24.04 VM per session with your repo cloned and common runtimes, Docker, PostgreSQL and Redis pre-installed. Anthropic lists approximate ceilings of 4 vCPUs, 16 GB RAM and 30 GB disk. | An isolated Ubuntu VM per agent on Cursor's AWS infrastructure. Cursor doesn't publish the default size; Enterprise teams can ask support for more resources. |
| Environment setup | A setup script that runs as root. If it finishes in roughly five minutes, the result is snapshotted and later sessions start from it. | Agent-led setup that installs and verifies the environment itself, or a Dockerfile and install script in .cursor/environment.json. Builds prepare the machine in the background. |
| Sharing a setup | On Team and Enterprise, Owners create organization-shared environments. Sessions can also route to self-hosted environments on your own runners. | Personal and team saved environments, or the committed .cursor/environment.json. Self-Hosted Machines move tool execution to hardware you manage. |
| Git hosts | GitHub, plus GitHub Enterprise Server on Team and Enterprise. Other hosts can be sent up as a bundle, but the session can't push back to them. | GitHub (Cloud and Enterprise Server), GitLab (Cloud and Self-Hosted), Bitbucket Cloud and Azure DevOps. |
| Several repositories | A session can have several repositories attached, such as a cloud thread in a project; it then loads less of each repo's own settings (hooks, .mcp.json). | Multi-repo environments clone several repositories into one machine, and the agent opens a pull request in each repo it changes. |
| Network access | None, Limited (package registries plus domains you allow; the default) or Full. | Internet access by default. Allow all, default domains plus an allowlist, or allowlist only, set per user, environment or team. Private services over Tailscale or Cloudflare Tunnel. |
| Credentials | Network secrets attached by a proxy outside the VM. GitHub goes through a separate proxy, so your token never enters the session. | Secrets load as environment variables; Runtime Secrets are redacted from the transcript and commits, Build Secrets reach only the Docker build. OIDC tokens and AWS IAM roles for short-lived cloud access. |
| Slack and chat | Claude Tag (Team and Enterprise, in beta): tag @Claude in a channel and it works under the organization's own identity. | @cursor in Slack, plus Microsoft Teams and Jira. Agents started there run under a team-owned service account by default. |
| Linear | No Linear assignee at the time of writing; an open feature request on Anthropic's repo tracks it. | Delegate an issue to Cursor or mention @Cursor; status shows in Linear and a pull request opens when it's done. |
| GitHub | The Claude GitHub app and the claude-code-action workflow: mention @claude in an issue or pull request, or run it on any GitHub event. | Comment @cursor on a pull request or issue. Bugbot reviews pull requests, and the Cursor CLI runs in GitHub Actions. |
| Repo instructions | CLAUDE.md, or AGENTS.md in its place. The repo's .claude/ settings, hooks, skills and .mcp.json carry into cloud sessions. | AGENTS.md, Cursor rules, and command hooks in .cursor/hooks.json. MCP servers configured for your team. |
| What comes back | A branch and pull request. Commits carry a Claude-Session trailer that links back to the session transcript. | A pull request with screenshots, videos and logs of how the agent checked its work. Commits are signed and authored as Cursor Agent, with the person who started it as co-author. |
| Price | Cloud sessions need a paid Claude plan. Check Anthropic's pricing page for current plans and usage limits. | Cloud Agents need a plan that includes them and bill at the chosen model's rate. Check Cursor's pricing page for current plans. |
Terminal agent or AI editor
On a laptop the difference is obvious. Claude Code lives in the terminal, or in a panel in VS Code or JetBrains, and works on the files in front of it; you review its changes as diffs and keep using your own editor. Cursor is the editor: the agent sits beside your code, and you watch and steer it inside the tool you already type in. Engineers who live in Vim or a JetBrains IDE tend to land on Claude Code; teams that want one editor everyone shares tend to land on Cursor.
For a team that wants agents to work without someone watching, that choice matters less than it looks. Both now run the same kind of work on their own machines in the cloud, and both hand back a pull request. The trade-offs of that move are covered in cloud vs local agent environments.
Building the environment
Claude Code starts every cloud session from the same pre-loaded image (Python, Node, Ruby, PHP, Java, Go, Rust, C/C++, Docker, PostgreSQL, Redis, Chrome) and you add what's missing with a setup script. The script has to finish in roughly five minutes for its result to be cached; anything that should run per session, such as starting a database, goes in a SessionStart hook.
Cursor gives you two routes. Its agent can set up its own environment: you pick the repositories, give it the variables and secrets it needs, and watch it install and verify everything in a shared terminal before the environment is saved. Or you write a Dockerfile and an install script in .cursor/environment.json and commit it. Either way, Cursor runs the install step as a Build in the background, so agents start from a machine that's ready, and a failed Build leaves the last good one in use. The goal on both sides is an agent that can install, build and test without asking, which is what dependency preloading and toolchain parity are about.
Where your code lives
This can settle the question before anything else does. Claude Code's cloud sessions clone from GitHub and open pull requests on GitHub; GitHub Enterprise Server is supported on Team and Enterprise plans. A repository on GitLab or Bitbucket can be sent up as a bundle, but the session can't push its work back there. Cursor's Cloud Agents work with GitHub, GitLab (including self-hosted), Bitbucket Cloud and Azure DevOps.
Both can work across several repositories at once. Cursor saves a multi-repo environment that clones each repository into one machine and opens a pull request in each one it changes. Claude Code can attach several repositories to a session, but such a session loads less of each repository's own configuration, such as its hooks and MCP servers. If your work regularly crosses repositories, test that path on both before choosing. The site's guide to repo access for cloud coding agents covers the permissions each needs.
Network access and credentials
Claude Code starts restricted: by default a session reaches package registries and the domains you allow, and you can turn access off or open it fully. Cursor starts open: agents have internet access by default, and you narrow it to an allowlist per user, environment or team, which Enterprise admins can lock. Cursor's docs are frank that agents run every terminal command without asking, so if your agents touch anything sensitive, set the allowlist before the first run. The site's guide to network access controls covers what to allow.
They keep secrets differently too. Claude Code keeps keys outside the VM entirely: a proxy adds them to outbound requests for the hosts you name, so the agent can use a key without being able to read it. Cursor loads secrets into the machine as environment variables and redacts Runtime Secrets from the transcript and commits; for cloud access it can mint short-lived OIDC tokens or assume an AWS IAM role instead of storing keys. For private services, Cursor documents Tailscale and Cloudflare Tunnel from inside the VM, while Claude Code's answer is to run sessions in a self-hosted environment on your own network. More on scoping: environment variable scoping across agent runs.
Starting work from Slack, Linear and GitHub
Cursor has the wider set of native triggers today: @cursor in Slack, Microsoft Teams, Jira, Linear and GitHub, plus an API, and agents started from shared channels run under a team service account so teammates can steer the same run. Its Bugbot reviews pull requests on its own.
Claude Code's team trigger in Slack is Claude Tag, which acts as the organization rather than as one member. For Linear there is no native assignment yet; teams connect it through Linear's MCP server, the GitHub Action, or a dispatch layer of their own. In GitHub, both can be mentioned on issues and pull requests, and both run in GitHub Actions. More on each path: triggering coding agents from Slack, connecting coding agents to Linear and GitHub Actions integration.
What comes back, and how to review it
Both end at a pull request your team reviews as usual. Claude Code marks its commits with a link to the session that produced them, so a reviewer can read how the change was made. Cursor attaches screenshots, videos and logs showing how the agent checked its work, signs its commits, and lets a reviewer take over the agent's remote desktop to try the change without checking out the branch. Whichever you use, make the pull request carry what the reviewer needs: what was asked, what ran and what passed. Trigger interfaces and PR delivery contracts goes into what to require.
Which one fits which team
Plenty of teams run both. If you're choosing, these are the questions that usually decide it:
- Code on GitLab, Bitbucket or Azure DevOps: Cursor's Cloud Agents work with those today; Claude Code's cloud sessions need GitHub.
- Work that starts in Linear or Jira and should come back as a pull request without glue code: Cursor has native triggers for both.
- A team that wants keys never to enter the agent's machine, or a restricted network by default: Claude Code's proxy model and Limited default fit that.
- Engineers who want to stay in their own terminal or JetBrains IDE: Claude Code. A team that standardises on one AI editor: Cursor.
- A team that wants one model maker's models end to end: Claude Code. A team that wants to switch models per task: Cursor.
Running both without two workflows
Picking one isn't required. Keep one AGENTS.md at the repo root (both read it), keep setup in scripts the repository owns rather than in each vendor's settings, and send both agents' output through the same pull request review. The site's multi-agent routing guide goes task class by task class. Platforms that run several agents in the same kind of environment exist for this: Replicas, for one, runs Claude Code, Codex and other agents each in an isolated VM, starts them from Slack, Linear or GitHub, and returns pull requests. For how Claude Code compares with OpenAI's agent, see Claude Code vs Codex, and for Codex against Cursor, Codex vs Cursor.
Check these before you choose
Plans, prices and limits change faster than this page. Confirm these with each vendor for your own team:
- Current prices and usage limits, on Anthropic's and Cursor's pricing pages: both change often, and Cursor bills Cloud Agents at the chosen model's rate.
- Which plan includes what you need: Cursor's docs say Cloud Agents aren't on its Free or Plus plans, and Claude Code's cloud sessions, Claude Tag and shared environments each depend on the plan.
- Where your code lives: confirm your git host and any self-hosted instance against each vendor's current docs.
- Whether the agent can reach every registry, service and database your tests need, from inside its environment.
- Each vendor's data retention and training terms for your plan: Cursor's Privacy Mode and Cloud Agent retention, and Anthropic's trust and privacy documentation.
Sources
- Claude Code overview (Anthropic)
- Use Claude Code in the cloud (Anthropic)
- Configure cloud environments for Claude Code (Anthropic)
- Claude Code GitHub Actions (Anthropic)
- Work with Claude Tag (Anthropic)
- Feature request: Linear integration for Claude Code (GitHub)
- Cloud Agents (Cursor)
- Cloud environment setup (Cursor)
- Cloud Agent secrets and network (Cursor)
- Self-Hosted Machines (Cursor)
- Linear integration (Cursor)
- Cursor CLI in GitHub Actions (Cursor)
- Models and pricing (Cursor)
Go deeper on Hands Off Development
- Headless Agent Execution Pipelines That Deliver Pull Requests From Cursor and Claude Code Without Human Babysitting
How Claude Code and Cursor ship unattended PRs through triggers, sandboxes, and review.
- Multi-Agent Routing on a Single Cloud Platform When Claude Code Codex Cursor and OpenCode Each Own Different Task Classes
A task-by-task guide to which coding agent fits which job.
- Cloud vs Local Agent Environments for Engineering Teams
Laptops can't isolate, parallelize, or reproduce agent work at team scale.
- Repo Access Configuration for Cloud Coding Agents
How to scope tokens, secrets, and sandboxes for autonomous agents.
- Network Access Controls for Sandboxed Agent Environments
Agent sandboxes leak through the network, and scoped egress allowlists close the gaps.
- Environment Variable Scoping Across Agent Runs
Agents keep credentials after they forget why, so scope them explicitly.
- Connecting Coding Agents to Linear for Task Automation
Linear's coding sessions turn issues into agent tasks with PR review.
- Trigger Interfaces and PR Delivery Contracts Engineering Teams Should Demand From Async Agent Platforms
Vendors promise capability, but teams should demand commitments on triggers, PRs, and failures.