---
title: "How we set up our cloud agent environment · Cursor"
description: "Cursor's cloud agents now author more than half of PRs merged to its monorepo, up from roughly one in ten in December, after the team made the cloud VM environment match local development and simplified how agents build and test code."
url: "https://swe.quest/articles/how-we-set-up-our-cloud-agent-environment-cursor-b88cd61b5796c7cd"
canonical: "https://cursor.com/blog/cloud-agent-environment"
source: "Cursor"
published: "2026-07-30"
difficulty: "medium"
kind: "Case study"
reading_minutes: 4
tags: ["ai-agents","ai-coding","developer-productivity","developer-tools"]
---

# How we set up our cloud agent environment · Cursor

A post on [Cursor](https://swe.quest/sources/cursor.md), published 2026-07-30, 4 min read, Case study. Original: [https://cursor.com/blog/cloud-agent-environment](https://cursor.com/blog/cloud-agent-environment)

## Summary

Cursor's cloud agents now author more than half of PRs merged to its monorepo, up from roughly one in ten in December, after the team made the cloud VM environment match local development and simplified how agents build and test code. The setup includes an Ubuntu-based Docker image with security controls such as egress restrictions, scoped and proxied git access, and secret scanning/redaction; an \`anydev\` CLI that starts services and supervises long-running builds; and Cursor Cloud MCP plus Cloud Doctor to diagnose unhealthy environments and fix misleading skills or slow workflows. The practical takeaway is to treat the agent development environment as a product: give agents the same tools and data as developers, document real workflows as skills, and make sure they can test core workflows end-to-end.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- monorepo development ([easy posts on Version control](https://swe.quest/tags/version-control.md?difficulty=easy))
- cloud development environments ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- MCP ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))

## Keywords

Cursor, anydev, Cursor Cloud MCP, Cloud Doctor, Ubuntu, Dockerfile

## Related posts

- [Running AI agents in GitHub Actions with Docker Sandboxes](https://swe.quest/articles/running-ai-agents-in-github-actions-with-docker-sandboxes-9cf9181798d75585.md): Docker · 2026-08-21 · Medium · 7 min read · AI agents, Sandboxing & isolation, CI/CD, Virtualization, AI for coding
  GitHub Agentic Workflows (gh-aw 0.82.9) supports Docker Sandboxes (sbx) as an agent runtime, so a CI coding agent gets root, sudo and unrestricted shell inside a disposable microVM with its own kernel and private Docker daemon.
- [We gave cloud agents a phone to QA](https://swe.quest/articles/we-gave-cloud-agents-a-phone-to-qa-54ed4288a0052c04.md): incident.io · 2026-10-14 · Medium · 12 min read · AI agents, Mobile, Testing, AI for coding, Developer productivity
  incident.io's Cursor cloud agents now QA React Native pull requests by driving an iOS simulator (EAS Simulator) or Android emulator in the cloud against a per-agent copy of the Go backend with seeded Postgres data, tunnelled back to the agent's VM, and attach claims linked to screenshots and a session recording.
- [Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World](https://swe.quest/articles/dynamic-mcps-with-docker-stop-hardcoding-your-agents-world-a530a7120388ea63.md): Docker · 2025-11-06 · Medium · 11 min read · AI agents, LLMs, Sandboxing & isolation, Containers, Developer tools
  Docker MCP Gateway now exposes primordial tools (mcp-find, mcp-add) that let agents search a curated catalog of 270+ MCP servers, add them to the live session, and trigger OAuth or elicitation flows, instead of hand-editing JSON config and restarting.
- [A Virtual Agent team at Docker: How the Coding Agent Sandboxes team uses a fleet of agents to ship faster](https://swe.quest/articles/a-virtual-agent-team-at-docker-how-the-coding-agent-sandboxes-team-uses-a-fleet-c083dfabe4b49d2c.md): Docker · 2026-05-01 · Medium · 12 min read · AI agents, AI for coding, CI/CD, Testing, Developer productivity
  Docker's Coding Agent Sandboxes (sbx) team runs a "Fleet" of seven autonomous Claude Code skill-based agent roles: build engineer, project manager, product owner, CLI tester, performance tester, upgrade tester and software engineer.
- [Agentic Coding on Railway: A Practical Guide for 2026](https://swe.quest/articles/agentic-coding-on-railway-a-practical-guide-for-2026-dae3c2957727f1b2.md): Railway · 2026-05-25 · Medium · 10 min read · AI agents, AI for coding, Deployment, Cloud platforms
  Railway's official MCP server, per-PR preview environments with isolated databases, one-call rollback, environment promotion and per-environment secrets let agents like Claude Code, Cursor and Codex deploy, debug and validate their own PRs without leaving the loop.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
