Learning resourcesReviewed · Anysphere

Cursor Cloud Environment Setup

Cursor's Cloud Environment Setup is a guide for developers preparing cloud coding agents, but useful work depends on configuring the tools, services and access those agents need. It covers guided setup, Dockerfiles, reusable Builds, multiple repositories, credentials and private networking, with important rules about which configuration takes effect.

Researched 23 Nov 2026

In short.

Cursor's Cloud Environment Setup is a guide for developers and platform teams preparing hosted AI coding agents, but a saved environment can override the repository configuration they expect to use. It explains guided and Dockerfile-based setup, repository access, credentials, private networking and application previews. Its central distinction is between preparation captured in a Build and services started for each agent session: Builds preserve disk state, not running processes or exported shell variables. Prices, exact machine resources and reuse rights are not established, and none of the documented behavior was executed or tested.

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

The scope is the complete supplied documentation text at [https://cursor.com/docs/cloud-agent/setup.md]. Coverage includes setup options, repository access, configuration precedence, Builds and recovery, scripts, secrets, AWS roles, scratch projects, previews, publishing, Docker, Tailscale and Cloudflare Tunnel. Linked documentation, the external schema, dashboards, image contents and third-party services are excluded. No documented behavior was executed or tested. Operational success, performance, exact resource allocations, prices and reuse terms remain unknown where the page supplies no evidence.

The overview

identity

This is Cursor's documentation page for configuring Cloud Agent development environments at [https://cursor.com/docs/cloud-agent/setup.md]. The resource is a setup guide; the service it describes runs coding agents on isolated Ubuntu machines.

An environment brings together repositories, installed tools, dependencies, credentials, startup commands and network access. The page covers initial configuration, ongoing Builds, troubleshooting and connections to private services.

assessment

The guide is useful when an agent can edit code but lacks the environment needed to run the application or its tests. It explains several consequential details: configuration precedence, credentials for additional repositories, repeatable installation, startup processes and recovery from failed Builds.

Cursor says guided setup can complete in less than ten minutes. That is a vendor estimate without supporting measurements on this page. The documentation does not establish setup success rates, coding accuracy, test coverage or performance for a particular project.

users

Developers new to cloud agents can follow the guided dashboard setup and watch installation in a shared terminal. Experienced developers and platform teams get configuration details for Dockerfiles, private package access, cloud credentials and private networking.

Teams with separate frontend, backend, infrastructure or shared-library repositories can use multi-repository environments for coordinated work. Enterprise teams with larger resource requirements or interest in Cursor-generated Dockerfiles have additional support or access-request paths described on the page.

capabilities

The documented environment supports dependency installation, code generation, compilation, startup services and tests. Multi-repository agents can inspect the combined workspace, change multiple repositories and open pull requests in repositories they modify. Dockerfile configuration supports system packages, compiler versions, debuggers and alternative base images.

The page also describes starting without a connected repository, previewing applications through forwarded ports and publishing an Origin repository through Vercel. Starting from scratch creates a draft Origin repository when available; if an administrator disables Origin, the agent starts without a repository.

Integration guidance covers Cursor Secrets, AWS IAM roles, OIDC tokens, Docker, Tailscale and Cloudflare Tunnel. These are documented capabilities, with no execution results establishing their behavior for a particular application.

Using it

requirements

Guided setup for existing repositories asks users to connect GitHub, GitLab, Azure DevOps or Bitbucket, select repositories and supply the variables and secrets needed to install and run the code. Private dependencies and services require appropriate credentials and network access.

Each cloud agent has a default machine profile with limited CPU and memory, but exact allocations are not stated. Enterprise customers can contact support about increases. Computer use with Dockerfile repositories is documented for Debian- or Ubuntu-based Linux distributions; support for other distributions requires contacting Cursor.

Start from scratch requires a plan including Cloud Agents and Origin, excluding Free and Plus. Publishing requires a Vercel account, and Cursor teams must deploy to a Vercel team above the Hobby plan. These requirements do not establish general Cloud Agent pricing or entitlement across all Cursor plans.

mechanism

A Build prepares the environment before an agent starts. Cursor begins with the base image, clones the repositories and runs the install command to completion. A successful Build captures disk state and becomes active. New agents start from that Build; a failed replacement leaves the most recent successful Build active.

Builds do not preserve running processes, exported shell variables or in-memory caches. After boot, Cursor runs start and then configured terminals. Long-running services belong there, while dependency installation and other reusable preparation belong in install. Application terminals run in a tmux session shared with the agent.

Configuration resolution first checks a personal saved environment, then a team saved environment, then the repository's .cursor/environment.json for single-repository runs. A saved environment reads that file only when its environment.json location points to it. Newly created environments default to skipping the file, although automatic creation for a single repository adopts a valid committed configuration when present.

Builds use configuration from the environment's default branch. For feature-branch changes, the page says to commit and push the configuration and start an agent on that branch. Cursor checks out the requested branch over the active Build, and the agent can rerun installation when dependencies change.

setup

The recommended route begins at [https://cursor.com/dashboard/cloud-agents#environments] or in the desktop Agents Window. Select repositories and provide required secrets. Cursor describes an agent installing dependencies, verifying the environment and completing a successful Build. To share committed configuration, ensure the saved environment actually points to the repository's .cursor/environment.json.

For manual setup, use a Dockerfile for system dependencies and .cursor/environment.json for runtime configuration. Cursor manages the workspace and checks out the appropriate commit, so the guide says not to COPY the full project into the image. Use build secrets for private registries or build-time credentials. The manual route does not provide direct access to the remote machine.

The install script must be idempotent: it must tolerate repeated execution on previously prepared disk state. Put complete dependency installation, generated files and compiled artifacts there. Put Docker startup in start when needed, and application processes in terminals. Cloud-specific setup and testing instructions can be placed in AGENTS.md.

Path rules need attention. Dockerfile and context paths are relative to the repository's .cursor folder, wherever the environment file lives; paths beginning with .cursor are used as written. An omitted context defaults to .cursor, while ., ./ and .. mean the repository root. The install command runs from the project root.

example

The page's manual configuration example sets build.dockerfile to Dockerfile, build.context to .., and install to pnpm install && ./custom_script.sh. Under its path rules, that selects a Dockerfile in .cursor, uses the repository root as build context and runs the installation command from the project root. This example was not executed.

For a frontend and backend in separate repositories, the documented approach is to select both when creating an environment. An illustrative arrangement would prepare dependencies during install, start required infrastructure with start and run application processes through terminals.

To inspect a running application, the Agents Window can detect listening ports, forward them automatically or accept a manually entered port. The internal browser provides a preview, and Design Mode lets users point to page elements. Preview behavior and application correctness were not assessed.

Assessment & evidence

limitations

repositoryDependencies grants git credentials for additional repositories without cloning them. Entries must share the main repository's host; on GitHub they must also share its owner and be repositories the user can push to. Other entries are silently skipped, causing later cloning to fail. Anyone able to edit this configuration can expand agents' repository credentials within those conditions.

Docker runs inside another container layer, which introduces edge cases. The guide recommends fuse-overlayfs and iptables-legacy for complex setups. Its sample grants the ubuntu user passwordless sudo and sets its password to ubuntu while disabling SSH password authentication. Those are explicit security settings to review before adapting the sample.

Tailscale requires userspace networking and cannot make the VM a tailnet exit node. Its proxy variables must be exported in the shell carrying the traffic. Cloudflare access requires a connector, authentication and any necessary egress allowlisting; private TCP services additionally need a local listener started with cloudflared access tcp.

Self-hosted runs use only the environment's repository selection and never read .cursor/environment.json. Environment-scoped secrets do not reach self-hosted machines. The page does not establish broader isolation guarantees, network reliability or compatibility with every project.

reasoning

The guide's practical value is its explanation of how to give an agent enough of a development environment to check its changes. Preparing reusable disk state can remove repeated setup from session startup, while separating startup services addresses processes that cannot survive a Build snapshot.

Configuration precedence is especially important for teams: committing an environment file alone does not ensure agents use it. Repeated execution of install, repository credential scope and access to required services are additional dependencies. These documented mechanisms support the guide's usefulness, but do not establish that an agent will complete engineering work correctly.

alternatives

Within the page, guided agent setup offers a shared-terminal flow that handles installation, while manual Dockerfile setup exposes system packages, compiler choices and base-image configuration. Cursor-configured Dockerfiles offer an editable starting point through an Enterprise private beta. The page also shows configuration referencing an existing snapshot.

Self-Hosted Machines are mentioned, but their setup documentation is outside this page. The available text establishes differences in configuration and secret handling, not comparative cost, security or performance. Other vendors and local-agent alternatives are not assessed.

evidence

The evidence is the complete supplied text of Cursor's Cloud Environment Setup page at [https://cursor.com/docs/cloud-agent/setup.md], captured on 2026-11-23 at 08:55:29.500 UTC.

This is first-party documentation supporting descriptions of intended behavior, examples and stated restrictions. It supplies no independent measurements or execution receipts. No software, commands, Builds, agent sessions, credential flows, tunnels or deployments were executed or tested. Linked pages and referenced image assets were not assessed.

Access & freshness

costs

The page provides no subscription prices, usage rates, Build charges, storage fees or included quotas. The total cost of using the documented setup is unknown. Its claim that preparation speeds up agent starts does not establish a financial saving.

Plan conditions include Enterprise access requests for Cursor-configured Dockerfiles and larger machine limits, the exclusion of Free and Plus from Start from scratch, and Vercel team deployment above Hobby. Prices and any charges for Vercel, AWS or networking services are not supplied.

rights

The supplied page contains no explicit license or redistribution permission for its text, screenshots or code examples. Service terms, ownership of generated work, data-retention terms and training-use terms are not established by this page.

Documented access scopes matter when configuring repositories and secrets. Environment-scoped secrets are available across every repository in that environment. For Origin repositories, Private visibility is described as accessible only to the user, while Internal lets anyone on the team view and edit the code.

freshness

The capture date establishes when this text was acquired, but the page supplies no publication date, last-updated date or overall product version. Dates or package versions embedded in configuration examples do not establish the page's update history.

At capture, Cursor-configured Dockerfiles were described as an Enterprise private beta and self-serve resource configuration as coming soon. Subsequent availability is unknown. The install script was previously called the update script, which may explain different terminology in older configurations or instructions.

actions

Choose the repository group and setup route, then confirm which personal or team environment will take precedence. If using committed configuration, check the environment.json location explicitly. Make installation repeatable and place long-running processes in startup commands.

Review additional repository access and provide only the credentials needed for the work. The page recommends Cursor Secrets, supports environment-scoped credentials and describes IAM roles and OIDC for avoiding long-lived cloud keys. Its AWS role flow uses an administrator-generated external ID and automatically managed temporary credentials; the documented STS credentials expire after one hour.

Before relying on agent changes, confirm a successful Build and exercise the project's actual application and tests with its required services. If a Build fails, inspect the Builds tab logs; the page describes starting an agent from a failed Build or selecting another successful one. Confirm current plan eligibility, prices, resource limits and applicable terms separately.

Evidence for this report

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