>_cca

Cloud coding agents vs local coding agents

Run an agent in the cloud when the task is scoped, can be checked by CI, and should come back to you as a pull request. Cloud setups also make it easier to run many sessions at once. Run it on your machine when it needs local files, credentials or private network access, or when you want to watch each step. You can use both and decide per task.

Reviewed November 2026

What is the difference between cloud and local coding agents?

The difference is where the agent's environment lives and who provisions it. Cursor's cloud agents run in isolated VMs with full development environments rather than on your laptop. A Claude Code cloud session runs on cloud infrastructure rather than your machine, and by default that is infrastructure Anthropic manages unless your organization routes it to a self-hosted environment.

A local agent works in your existing checkout and shell. A cloud agent starts from a fresh copy. For a task in Codex Cloud (Legacy), Codex creates a container and checks out your repo at the selected branch or commit SHA. GitHub Copilot sessions can run in a cloud sandbox, on GitHub Actions, or in a custom environment.

Which option gives agents access to my environment and secrets?

A local agent can reach much of what your user account can. In Claude Code's sandbox, reads cover most of the machine, including credential files such as ~/.ssh and ~/.aws/credentials, and environment variables are inherited from Claude Code, including secrets in its environment.

A cloud agent sees only what you configure for it. Cursor's cloud environment is similar to your laptop setup, with cloned repos, installed dependencies, secrets, startup commands and network access. Its secrets come in three types. A Runtime Secret is redacted from tool call results, the chat transcript, commits and commit messages, yet it stays visible via the Terminal to users in the agent's environment. A Build Secret is only available to the Docker build process and is not exposed to the running agent.

Codex draws its line between phases. In its legacy cloud environments, secrets are only available to setup scripts and are removed before the agent phase starts. Copilot takes its setup from .github/workflows/copilot-setup-steps.yml in your repository, a file that applies only on GitHub Actions and not to cloud sandbox sessions.

Local worktrees have their own gap. In Claude Code, untracked files like .env are missing from a new worktree, and you copy them in by adding a .worktreeinclude file to the project root.

How many coding agents can I run in parallel?

Cloud is the easier route to many agents, with limits that vary by vendor. Cursor says you can run as many agents as you want in parallel, and they do not need your machine connected to the internet. Devin describes a coordinator that delegates to managed Devins, each in its own isolated VM, and that coordinator monitors progress and resolves conflicts before it compiles results.

Usage limits still apply. Claude Code's docs say cloud sessions share rate limits with your other Claude usage, and running tasks in parallel consumes more of them proportionately.

Locally, parallel agents need separate checkouts or they collide. Cursor recommends worktrees for several agents on one repo, with a default cap of 25 worktrees per machine shared by all workspaces. Our guide to parallel agents with git worktrees covers the setup. Parallel is not the same as collaborative, so agents in separate worktrees still need someone or something deciding how their changes merge.

How do cloud agents hand work back for review?

Cloud agents return work through your git host. Cursor's cloud agents work on a separate branch and push changes to your repo for handoff, and you need read-write privileges to the repo and any dependent repos or submodules. Codex cloud lets you inspect changed files, request follow-up changes, and commit or open a pull request when you are ready.

GitHub Copilot's review rules are specific. If your repository requires pull request approvals, your approval of a Copilot pull request won't count toward the required number, so another reviewer must approve it before it can be merged. By default, Actions workflows will not run automatically when Copilot pushes, and you start them with the Approve and run workflows button. To ask for changes, you mention @copilot in a comment or push commits to the branch.

For Claude Code, cloning and pull request creation require GitHub in Anthropic-hosted environments. For the review step itself, see our coding agent review loop guide.

How do cloud and local agents handle network access?

Cloud vendors set network policy per environment. In Codex's legacy cloud environments, setup scripts run with internet access, while agent internet access is off by default and can be set to limited or unrestricted. All outbound traffic from those environments passes through an HTTP/HTTPS proxy. Cursor publishes egress IP ranges and says you may need to allowlist them if you use firewall rules, though it does not recommend IP allowlisting as your primary security mechanism.

On your machine, the sandbox decides. Claude Code's sandboxed commands have no direct route out, and connections go through a proxy on your machine that checks each host against allowed domains, which start empty. Codex's local network proxy filters processes inside the command sandbox, and its docs list surfaces it does not filter, including MCP server connections.

What are the limits of cloud coding agents?

Cloud sessions can expire. Claude Code says sessions stop after a period of inactivity and the VM is reclaimed. When you reopen one, your conversation history is restored, but background work that was still running is not. A setup script is cached only when it finishes in roughly five minutes.

Codex caches container state for up to 12 hours, and for Business and Enterprise users those caches are shared across all users with access to the environment. Cursor's cloud agents do not support Privacy Mode (Legacy), because legacy privacy mode blocks cloud data storage and the agents need to store code and environment data in the cloud while they run.

When should I choose cloud, and when local?

Choose cloud for scoped tasks you can verify through CI and a pull request, such as a bug fix or a batch of similar migrations. Choose local for exploratory work, for tasks that need files or credentials you would rather not copy into a vendor environment, and for anything you want to follow step by step.

Switching between the two is supported by some tools. Cursor's Agents Window lets you move an agent from cloud to local to iterate, then move it back so it keeps working on its own. Devin's docs describe running Devin for Terminal locally, then using /handoff to send longer tasks to cloud Devin. Our coding agent handoffs guide covers what to pass along when you switch.

What else do readers ask?

Can a cloud agent keep working while my laptop is closed?

For Codex cloud, each task can keep working while your computer is asleep. A Claude Code cloud session keeps running after you close your laptop, and you can check on it from any device.

Do cloud agents work with git hosts other than GitHub?

Cursor clones from GitHub, GitLab, Azure DevOps Services or Bitbucket Cloud. Claude Code can take a non-GitHub repository as a local bundle with CCR_FORCE_BUNDLE=1, but the session cannot push results back to that remote.

Which plans include cloud agents?

Claude Code cloud sessions are available on Pro, Max, Ultra and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats, with no separate charge for the cloud VM. Copilot cloud agent is available for all paid Copilot plans.

Can I start a cloud agent from the terminal?

Claude Code documents claude --cloud as the terminal route to a cloud session. Our headless agents guide covers non-interactive runs.

Which related guides should you read?

Sources (reviewed Nov 2026)