Learning resourcesReviewed · Anysphere

Cursor Cloud Agent Builds

This guide explains prepared coding environments for developers using Cursor Cloud Agents, but Builds work only on Cursor-hosted machines. It covers preparing repositories and dependencies before agents start, retaining the last successful environment, and managing source freshness, secrets and failures.

Researched 14 Nov 2026

In short.

This guide helps developers configure prepared environments for Cursor Cloud Agents, but the feature is unavailable for self-hosted runs. Builds clone repositories and install dependencies ahead of agent startup, then save disk state for reuse. Running services must start separately, and source code can lag behind the default branch depending on freshness settings. The documentation says Builds cost no extra, but gives no overall Cloud Agent pricing or measured startup improvements. No Builds, commands or agent runs were executed for this report.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied Cloud Agent Builds page at [https://cursor.com/docs/cloud-agent/builds.md], including its self-hosted restrictions, setup phases, Git behavior, secrets, management controls, troubleshooting, first-build fallback and cost statement. Linked setup, capabilities, settings, self-hosting and sitemap pages are excluded. No commands, Builds or agent runs were executed. Actual performance, operational behavior and terms absent from this page remain unassessed.

The overview

Identity

Cloud Agent Builds is Cursor's documentation for the prepared environments used by its hosted coding agents [https://cursor.com/docs/cloud-agent/builds.md]. The resource is a feature guide, not a downloadable library or a standalone agent.

A Build is a bootable snapshot containing a prepared machine's disk state, environment version and recorded repository commits. New agents, automations and code reviews normally start from the latest successful active Build.

Assessment

The guide is useful when repeated repository cloning and dependency installation delay hosted agent starts, or when developers need to identify the environment behind a run. Its strongest practical detail is the separation between preparing files during a Build and starting services during an agent session.

Cursor describes faster starts and continuity after failed Builds, but provides no timing measurements, success rates or comparative benchmarks. The documentation supports configuration decisions; it does not establish performance in a particular repository.

Users

The main audience is developers and environment maintainers using Cursor-hosted Cloud Agents, including teams with private dependencies or several repositories in one workspace. Beginners get an explanation of which setup work belongs in each phase; experienced developers get details about commits, cached dependencies, secrets and failed environments.

The feature does not apply to runs on Self-Hosted Machines. Teams that require Self-Hosted Machines also have Builds disabled for team environments and their members' personal environments.

Capabilities

Builds prepare every repository in an environment together and record a commit for each. They can run after configuration or secret changes, on a recurring schedule, manually, or at an agent's request. Recurring checks skip installation when repository commits, configuration and secrets have not changed.

The Builds tab exposes status, trigger type, start time, logs and details. It also supports triggering, canceling, activating or deactivating Builds, starting agents from specific Builds, and configuring freshness and installation timeouts.

Each agent run records its starting Build. The documented Cursor Cloud MCP environment-info tool reports a Build ID and whether the run reused its checkout or fetched newer code.

Using it

Requirements

Use requires a Cursor-hosted Cloud Agent environment. Builds use existing environment inputs, including saved snapshots, Dockerfiles, .cursor/environment.json, installation and startup commands, secrets and network settings. Subscription eligibility, supported machine sizes and repository size limits are not stated.

A manual Build runs as the person selecting Trigger build. Their connected source control account must have access to every repository in the environment; GitHub repositories require Write access or higher.

Installation credentials must be available as team or environment secrets. User secrets arrive only when an agent starts and cannot satisfy authentication required during a Build.

Mechanism

Cursor starts from the environment's base image, clones repositories at their default branches and runs install to completion. It saves the disk state with the environment version and repository commit identifiers. A successful Build becomes active, and Cursor keeps prepared copies available for agent starts.

A failed Build leaves the previous successful Build active. Before the first successful Build, agents instead start on Cursor's default image without the environment's snapshot, Dockerfile or install setup.

Only disk state survives the snapshot. Running processes, shell exports and in-memory caches stop. Docker's data directory is included, so stored images and stopped containers persist.

Setup

Put dependency installation, code generation, compilation and disk-cache preparation in install. Make that command complete and safe to repeat, including over previously prepared disk state. Put Docker, database, tunnel and other service startup in start, and application processes in terminals, which uses tmux terminals shared with the agent.

Use team or environment secrets for private registries and artifact stores. Saving environment configuration or changing its secrets triggers a Build. Installation timeout accepts whole minutes from 5 to 300, with a default of 90 when left blank.

Choose whether default-branch agents should update stale code. With Update stale builds enabled, agents pull newer default-branch code when the Build exceeds the configured threshold. The default threshold is 24 hours; setting it to 0 always pulls. The page does not state whether Update stale builds is enabled by default.

Example

For a Node.js repository, an illustrative setup would place npm install in install, database startup in start and application startup in terminals. A successful Build would save the installed files; each agent session would start its services separately.

For a feature-branch task, Cursor would start from the active Build's prepared disk and then check out the requested branch. If that branch changes dependencies, the agent may need to refresh them using the environment context and install command before testing. This example was not executed.

Assessment & evidence

Limitations

Builds preserve prepared files rather than live services. Default-branch runs can use an older recorded commit, and feature-branch runs can inherit dependencies prepared for a different commit. The exact recurring rebuild frequency is not specified.

A failed update preserves a working environment but may leave agents using older code or configuration. Until the first successful Build, the intended environment setup is absent.

Builds are disabled for teams requiring Self-Hosted Machines, including members' personal environments. Saving an environment snapshot is also refused for those teams and members, and from any run on a Self-Hosted Machine.

The page does not establish snapshot retention periods, storage limits, isolation guarantees or measured startup latency.

Reasoning

Preparing dependencies ahead of a run should reduce setup work during startup, but the size of that benefit depends on the repository and installation process. This is an architectural inference consistent with Cursor's description, not a measured result.

Keeping the previous successful Build favors continued availability when installation fails. The corresponding tradeoff is freshness: developers need to distinguish the Build's recorded commits from the agent's actual Git HEAD, which can differ after a branch checkout or stale-code update.

A Build ID therefore identifies a useful starting environment, but does not by itself prove which source code or refreshed dependencies were present later in a run.

Alternatives

Self-Hosted Machines are the alternative execution arrangement mentioned on the page: agents start on the machine as it is and never boot a Build. The page does not provide enough detail to compare their provisioning effort, performance or cost.

Saved snapshots and Dockerfiles remain inputs to Builds rather than replacements for them. No comparison with other coding-agent services or environment-preparation tools is supplied.

Evidence

The supporting source is Cursor's Cloud Agent Builds documentation [https://cursor.com/docs/cloud-agent/builds.md], captured on 14 November 2026 at 01:46:19.931 UTC. It provides concrete lifecycle rules, settings, permissions and failure behavior.

This is product documentation describing intended behavior. No execution results, startup measurements, Build logs or independent verification are supplied. Linked documentation was not assessed.

Access & freshness

Costs

The page explicitly says Builds are included with Cloud Agents and cost no extra. It does not provide Cloud Agent subscription prices, usage allowances or billing rules, so the total cost of using the service is unknown from this source.

Rights

The supplied page does not state a documentation licence, redistribution permission, service contract or ownership terms for generated code. Those rights cannot be established from this resource.

The documented source-control permission for manually triggering a Build is an access requirement, not a grant of rights over repository content.

Freshness

The capture timestamp establishes when this copy was obtained, not when the documentation was written or last updated. No publication date, feature version or release identifier is stated.

Environment freshness is separately configurable: recurring checks respond to changes, while stale-build settings control whether default-branch agents fetch newer code at startup. Current service behavior beyond the captured description remains unverified.

Actions

Before adopting this setup, establish that the environment uses Cursor-hosted agents, place preparation and service commands in their documented phases, and confirm that Build-time credentials are available through team or environment secrets. Choose a source freshness policy appropriate to the work.

For a failing environment, inspect the failed Build's events and logs or start an agent from that failed state. The page describes using the agent to adjust configuration and request a test Build.

When evaluating a run, inspect its Build ID and actual repository commits together. Measure startup time and verify branch-specific dependencies in your own environment; the source supplies no results for those checks.

Evidence for this report

selected-page.txtselected · checked 2026-11-14