Answer: There are two main ways to configure the environment for your cloud agent: let Cursor's agent set up its own environment from the Cloud Agents dashboard, or manually configure the environment with a Dockerfile specified in a `.cursor/environment.json` file. Both options let you specify an install script. Status: Confirmed Entry: tool/cursor/agents-and-automation/cloud-agent-environment-setup-options Revision: 2 Digest: sha256:9e460df26af82c46 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:10:17Z Last changed: 2026-11-18T12:31:13Z (install script: — → Both options let you specify an install script) Last verified: 2026-11-20T12:37:04Z Next check: 2026-11-21T12:37:04Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of setup options | two main ways | [1] | 2026-11-20 option 2 | Manually configure the environment with a Dockerfile | [1] | 2026-11-20 config file | .cursor/environment.json | [1] | 2026-11-20 install script | Both options let you specify an install script | [1] | 2026-11-20 agent-driven setup time | less than 10 minutes | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/cloud-agent/setup.md". https://cursor.com/docs/cloud-agent/setup.md Role: primary. Accessed: 2026-11-20T12:37:04Z Quote: "There are two main ways to configure the environment for your cloud agent:" (Supports: setup options) Quote: "Manually configure the environment with a Dockerfile." (Supports: option 2) Quote: "you can specify the Dockerfile in a `.cursor/environment.json` file." (Supports: config file) Quote: "Both options let you specify an install script." (Supports: install script) Quote: "Cursor can set up your dev environment in the cloud in less than 10 minutes." (Supports: agent-driven setup time) Snapshot SHA-256: bee9bf95b0d0ddc89471ed9a2785bf36af0740a8856abbbdc55e98692c1af03d (captured 2026-11-17T12:46:57Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T12:46:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:37:04Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:37:04Z Last attempt: 2026-11-20T12:37:04Z Notes and limitations: Extracted automatically from a single official source (section "Environment setup options"). Related: https://latestn.com/tool/cursor/agents-and-automation/cloud-agent-hook-support Which Cursor hooks are supported in cloud agents and which are not available? https://latestn.com/tool/cursor/agents-and-automation/cloud-agent-repo-access-in-project How do I give a Cursor cloud agent access to other repositories in a Project? https://latestn.com/tool/cursor/agents-and-automation/configure-cloud-agent-skills-agents-md How do I configure a Cursor Cloud Agent with skills and agents.md? https://latestn.com/tool/cursor/agents-and-automation/choose-hosted-vs-self-hosted Should I use Cursor-hosted Cloud Agents or self-hosted machines for Cursor Cloud Agents? https://latestn.com/tool/cursor/agents-and-automation/choose-smallest-lever How do I choose the smallest lever when improving a Cursor agent? https://latestn.com/tool/cursor/agents-and-automation/cloud-agent-capabilities What can a Cursor cloud agent do when launched from the Agent SDK extension? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:31:13Z | changed | install script: — → Both options let you specify an install script | [1] 2026-11-18T12:31:13Z | changed | config file: — → .cursor/environment.json | [1] 2026-11-18T12:31:13Z | changed | option 2: — → Manually configure the environment with a Dockerfile | [1] 2026-11-18T12:31:13Z | changed | setup options: — → two main ways | [1] 2026-11-18T12:31:13Z | changed | example install script: pnpm install && ./custom_script.sh → — | [1] 2026-11-18T12:31:13Z | changed | manual setup method: Manual setup with Dockerfile (advanced) → — | [1] 2026-11-18T12:31:13Z | changed | recommended setup method: Agent-driven setup (recommended) → — | [1] 2026-11-18T12:31:13Z | changed | manual config file: .cursor/environment.json → — | [1] 2026-11-18T12:31:13Z | changed | number of setup options: two → — | [1] 2026-11-13T03:10:17Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/cloud-agent-environment-setup-options/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/agents-and-automation/cloud-agent-environment-setup-options POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/cloud-agent-environment-setup-options with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/cloud-agent-environment-setup-options?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set up a cloud agent environment in Cursor? Revision 2, last verified 2026-11-20T12:37:04Z. https://latestn.com/tool/cursor/agents-and-automation/cloud-agent-environment-setup-options (accessed 2026-11-21T09:59:04Z). @misc{LatestN_tool_cursor_agents_and_automation_cloud_agent_environment_setup_options_r2, title = {How do I set up a cloud agent environment in Cursor?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/cloud-agent-environment-setup-options}}, note = {Revision 2; digest sha256:9e460df26af82c46; last verified 2026-11-20T12:37:04Z; accessed 2026-11-21T09:59:04Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/agents-and-automation/cloud-agent-environment-setup-options