Guide
Cursor Local Agent vs Cloud Agent: Which to Use (2026)
Use a local agent when you need tight review, local context or quick iteration. Use a cloud agent when the task can run on its own and has a clear handoff, on a plan that includes Cloud Agents (Free and Plus don't). The safe default is local for ambiguous work, and cloud for bounded jobs with strong checks.

On this page
- What does a reviewable agent task look like?
- How should a team run each agent task?
- What should you keep after the run?
- What is a cloud agent, in plain terms?
- When does cloud win over local?
- What do I have to set up before a cloud agent is worth starting?
- Why send work to the cloud when I could watch it run locally?
- Does the answer change on a small team versus a large one?
What does a reviewable agent task look like?
Give the agent one named task, only the context it needs and a check you can rerun. A task shaped this way produces a diff small enough to review and a result you can repeat.
- Move
- Start with a bounded task
- Use this when
- You have a named owner, target files and a clear done state
- Proof to save
- Issue, files, checks and owner are named
- Move
- Give the agent context
- Use this when
- The repo has patterns the agent must follow
- Proof to save
- Prompt cites files, errors and constraints
- Move
- Review the diff
- Use this when
- The task changes production code
- Proof to save
- Changed files, test output and risks are visible
| Move | Use this when | Proof to save |
|---|---|---|
| Start with a bounded task | You have a named owner, target files and a clear done state | Issue, files, checks and owner are named |
| Give the agent context | The repo has patterns the agent must follow | Prompt cites files, errors and constraints |
| Review the diff | The task changes production code | Changed files, test output and risks are visible |
Each move leaves proof that a reviewer can check later.
Each move fails in its own way. Without a boundary, the agent edits files you never meant to open, and the diff becomes hard to read. Thin context fails more quietly: the code compiles and the tests pass, but the change ignores patterns the rest of the repo follows. Without a check you can rerun, you are taking the agent's word that the work is done.
Asking for a plan before the agent writes code is the easiest step to skip. It means a short wait while nothing visible happens, and the price of skipping it shows up later, in review.
If the plan names files you didn't expect, you learn that before any code exists. If it names the right files, you have a list to check the diff against. Once four hundred lines of diff are on screen, changing the approach means throwing that work away.
Check yourself · one question
Which local refactor is ready for a Cloud Agent handoff?
From the Lesson Choose the handoff starting point — about 1 minute, free to read.
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.
How should a team run each agent task?
The habit that matters most for a team is leaving a trail the next reviewer can follow. The steps below keep the prompt and its proof attached to the change.
- 1Pick one real backlog item with a clear owner and expected result.
- 2Add only the context the agent needs: files, failing output, constraints and done state.
- 3Ask for a plan before code when the task touches more than one file.
- 4Run checks that match the risk: unit test, typecheck, visual pass or review checklist.
- 5Capture the prompt, diff, result and reviewer note so the workflow can be repeated.
Match the effort to the change. A one-file fix needs a clear done state and a typecheck, and a plan adds little. A change across several files is where a plan pays for itself, and where the check should include tests and a reviewer who knows that code.
What should you keep after the run?
Keep whatever lets someone rerun the work or pick it up later. A finished task is the merged code plus a short trail that shows how it got there.
- The prompt or plan that shaped the work.
- The files changed and the reason each file changed.
- The command, screenshot or review note that proved the result.
- The rule, checklist or template you would reuse next time.
The last item pays off over time. A rule or template saved from one good run means the next run starts from what already worked, not from a blank prompt.
What is a cloud agent, in plain terms?
A presenter in Cursor's workshop for product managers described a cloud agent as an engineer with a laptop in the cloud. You can direct that engineer from Slack, Linear or the IDE. You hand off tasks to run in the background while you do other work. For product managers, the same presenter called setting up cloud agents early one of the most useful investments they can make.
Once you picture a teammate in the cloud, the choice is obvious: hand off bounded jobs, keep the ambiguous ones local where you can steer.
think about it like as an engineer with a laptop in the cloud is like what a cloud agent is.
When does cloud win over local?
Cloud wins when you don't want to be tied to a long-running local task, or when you aren't at your desk. In one Cursor workshop, the presenter kicked off a run from a phone on the Bay Bridge. At cursor.com/agents, on any device, you pick a repository and branch, write the instruction, choose a model, link any MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. servers such as Slack, and start the run.
The run boots a new VM with a clone of your repo, so the rules and skills committed to it come along. It uses the MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. servers you add from the MCP dropdown at cursor.com/agents, and personal skills arrive only if you sync them. Repo-specific slash commandsSaved multi-step prompts you trigger from the / menu, such as run tests, fix CI or open a pull request. Press Enter for the full definition., such as /git-commit and /git-push, work inside the cloud run.
Cursor's docs say you can run as many cloud agents in parallel as you want, each on its own branch. The workshop presenter put a typical run's minimum at roughly 10 to 15 minutes.
If you'd otherwise sit watching a progress bar, that's the signal to push it to the cloud and walk away.
This spins up a brand new VM that has all your information of what your GitHub repository looks like... and it has skill integrated as well. You can actually do slash commandsSaved multi-step prompts you trigger from the / menu, such as run tests, fix CI or open a pull request. Press Enter for the full definition. with that skill.
What do I have to set up before a cloud agent is worth starting?
An environment, which is easy to leave out of the comparison. A local agent inherits your machine for free, because your dependencies and credentials are already there. Cloud agents run on isolated Ubuntu machines, so anything the code needs to install and run has to be configured before the first useful run.
There are two ways to set one up. Cursor's agent can do it for you in under 10 minutes while you watch in a shared terminal, and Cursor saves the environment once a Build succeeds, so later agents start from it. Or you can write a Dockerfile for system-level dependencies and reference it from .cursor/environment.json. Cursor recommends the agent-driven setup and calls the Dockerfile route the advanced option.
Put secrets in the Secrets tab of the Cloud AgentsAgents that run in a Cursor-managed virtual machine, check out the repo, do the work and open a pull request, then shut down, with no load on your laptop. Press Enter for the full definition. dashboard, where the agent reads them as environment variables. Never paste one into .cursor/environment.json. The schema Cursor publishes for that file has no field for secrets, and the file lives in your repo, so a key pasted into it is a plaintext secret committed to version control.
When more than one configuration exists, Cursor uses the first match: a personal saved environment, then a team saved environment, then .cursor/environment.json in the repo for single-repo runs. Because the personal environment comes first, one person can try a new configuration before it becomes the team default.
Why send work to the cloud when I could watch it run locally?
Because of what comes back with it. Every cloud agent gets its own isolated VM with a full desktop environment. It can start a dev server, drive a browser with mouse and keyboard, click through a UI flow and check the change before it opens a pull request. The screenshots, videos and log references it produces are attached to that PR.
Parallel runs are one reason to use the cloud. The evidence is another: verification arrives as an artifact, and you can validate the change from the PR without checking out the branch.
The clip below follows one handoff from start to finish.
Hand the rest of the run to a cloud sibling
0:52 · narratedRead this demo as text
- The local session already finished the refactor — typecheck green. What's left is the 40-minute integration suite, and that shouldn't tie up this machine.
- Switch to the cloud sibling in the sidebar — queued on the same branch, ready for the part that needs a machine, not a person watching it.
- Send it. The cloud sibling picks up the branch in its own isolated VM — local and cloud stay on the same history instead of drifting apart.
- Suite green in the cloud VM. Changes panel opens on the same branch you refactored locally — nothing diverged.
- Checks are green on the PR. Pull the branch back locally and run what the suite can't see — a type check, a read through the diff — before you merge.
Practice next: Practice this yourself in the hands-on module.
Simulated Cursor 3.12 (macOS, light) — beta educational reconstruction, not the real product.
To embed the artifacts in the PR description itself, turn on the opt-in setting "Allow posting artifacts to GitHub". Cursor's docs note that embedded artifacts then sit at long, unguessable URLs that anyone with the link can view, because GitHub's image proxy needs public URLs.
You can also take control of the agent's remote desktop, use the software it is building, and hand control back at any time. If a screenshot is not enough evidence for you, take control and test the change yourself.
Does the answer change on a small team versus a large one?
Yes, though the difference shows up in the runtime, not in the choice between local and cloud. In all three Cloud Agent runtimes, the agent loop runs in Cursor's cloud. What changes is where tool calls execute and who operates that environment.
Managed is the default, and Cursor describes it as usually the lowest-operations way to give agents secure access to code and internal systems. My Machines suits personal or small-scale workflows on one user's machine. Team Pools are for Enterprise teams that want centralized ownership of worker hardware. All three support Privacy ModeCursor's setting that guarantees code data is not used for training by Cursor or its model providers, and that an admin can enforce org-wide; data-retention terms are a separate, contractual layer. Press Enter for the full definition., but they handle secrets differently: a My Machines worker uses the machine's own credentials.
Frequently asked questions
Who is this guide for?
Developers deciding where their agent work should run.
What should I do next?
Pick one bounded task with a clear check and run it as a cloud agent, if your plan includes Cloud Agents. Keep the next ambiguous task local, and compare how much review each one needed.
Where do secrets go for a Cursor cloud agent?
In the Secrets tab of the Cloud Agents dashboard, where the agent reads them as environment variables. Cursor's published schema for .cursor/environment.json has no secrets field, so a key pasted into that file is a plaintext secret committed to your repo.
How many cloud agents should I run at once?
Cursor's docs say you can run as many as you want in parallel, each on its own branch, so the practical limit is how many results you can review. One Cursor workshop presenter put a typical run's minimum at roughly 10 to 15 minutes. Keep ambiguous work local, where you can steer it.
Sources & last verified
- Cursor product
- Cursor agent best practices
- Cursor docs manifest
- Cursor docs: Cloud Agents
- Cursor docs: Cloud Environment Setup
- Cursor docs: Choose where Cloud Agents run
- Cursor docs: Cloud Agent capabilities
- Cursor docs: Skills
Cursor ships frequently. Facts verified against primary sources on October 28, 2026.