AWS, Google Cloud, Microsoft Azure, and Cloudflare now all offer agent sandboxes. None built them the same way.

Summary: At the WeAreDevelopers World Congress, Google Cloud announced the public preview of its Cloud Run sandboxes. With this release, major tech players including AWS, Google Cloud, Microsoft Azure, and Cloudflare now all offer isolated agent environments, though each platform has taken a completely different architectural approach to building them.

Cloud-based AI coding agents are rapidly changing how software is built. Instead of simply generating snippets of code or answering programming questions, the latest generation of AI assistants can clone repositories, modify source files, install dependencies, execute shell commands, run automated tests, debug failures, and prepare pull requests with minimal human intervention. This evolution promises a dramatic increase in developer productivity, but it also introduces a fundamental security challenge: how do you safely allow an autonomous AI to execute untrusted code without exposing the underlying infrastructure?

The answer emerging across the cloud industry is the sandbox.

In recent months, every major cloud provider has introduced or expanded dedicated environments designed specifically for AI agents. Although their implementations differ significantly, Amazon Web Services, Microsoft Azure, Google Cloud, and Cloudflare have all reached the same conclusion: autonomous AI systems require isolated execution environments that can safely contain potentially dangerous workloads while preserving enough functionality for agents to complete real-world development tasks.

Unlike traditional chatbots, cloud-based coding agents actively interact with software environments. They compile applications, modify configuration files, install third-party packages, execute scripts, and repeatedly test their own output until they achieve the desired result. Every command they execute introduces potential risk, particularly when agents operate on repositories containing unknown code or dependencies supplied by external contributors.

Running those workloads directly on developer laptops or production infrastructure would create an unacceptable attack surface. A compromised dependency, malicious repository, or prompt injection attack could potentially allow harmful commands to escape the AI workflow and affect the host operating system. Sandboxed execution environments are designed to prevent exactly that scenario by isolating each AI session from the systems that manage it.

Although the objective is shared, the major cloud providers have adopted remarkably different technical strategies.

Amazon Web Services has built its agent infrastructure around Firecracker microVMs, lightweight virtual machines originally developed to power AWS Lambda. Each AI session receives its own dedicated virtual machine, complete with isolated memory, storage, and kernel resources. This approach provides strong security guarantees while allowing sessions to persist for extended periods, enabling agents to work on long-running development tasks without losing context.

Microsoft has taken a virtualization-first approach through Azure Container Apps Dynamic Sessions. Rather than launching full virtual machines for every request, Azure relies on Hyper-V isolation to provide hardware-backed security boundaries around containerized execution environments. According to Microsoft, this architecture already supports hundreds of thousands of AI-powered coding sessions generated by Copilot, demonstrating that secure sandboxing can operate at enterprise scale.

Google Cloud has pursued a hybrid strategy.

Its GKE Agent Sandbox leverages gVisor, a userspace kernel that intercepts Linux system calls to isolate workloads while maintaining lower startup overhead than traditional virtual machines. Separately, Google is extending Cloud Run with lightweight sandboxing capabilities optimized for serverless AI workloads that require rapid startup and elastic scaling. This dual approach reflects Google’s effort to balance performance with security depending on workload characteristics.

Cloudflare has chosen perhaps the most unconventional design.

Rather than relying on virtual machines or kernel virtualization, the company builds its AI execution model directly on Workers and Durable Objects, technologies originally designed for edge computing. The result is an extremely fast and resource-efficient environment capable of launching AI sessions close to users around the world. While this architecture offers impressive latency advantages, it represents a fundamentally different security model compared to hardware-backed virtualization platforms.

The growing diversity of implementations reflects a broader industry realization: there is no universally correct definition of an AI sandbox.

Some organizations prioritize maximum isolation because they expect agents to execute untrusted or adversarial code. Others optimize for low latency and cost, assuming workloads originate from trusted development teams. The chosen architecture ultimately depends on the balance between security, performance, operational complexity, and the expected behavior of the AI itself.

Recent security research suggests that this distinction is becoming increasingly important.

Researchers have demonstrated that several popular AI coding assistants—including Cursor, Codex CLI, Gemini CLI, and other autonomous development tools—were vulnerable to various forms of sandbox escape under specific conditions. By embedding malicious instructions inside repositories or project configuration files, attackers could manipulate AI agents into creating artifacts later interpreted by trusted host components, effectively bypassing the intended isolation boundary. Several vendors have already released patches addressing these vulnerabilities, but the findings illustrate that traditional assumptions about sandboxing do not always apply when AI agents actively modify their own execution environment.

The challenge extends beyond cybersecurity.

Cloud sandboxes also provide reproducibility, observability, and rollback capabilities that are increasingly essential for enterprise AI deployments. Every command executed by an agent can be logged, inspected, audited, and discarded once a task is complete. If an experiment fails or produces undesirable results, the entire environment can simply be destroyed without affecting production infrastructure or developer workstations.

This isolation model enables a new style of software development in which AI agents continuously iterate on code, execute automated testing, analyze failures, and refine their own output before presenting changes for human review. Instead of functioning as passive assistants, cloud agents become autonomous collaborators operating inside disposable environments specifically designed for experimentation.

As organizations expand the use of autonomous coding systems, the quality of the sandbox may become just as important as the quality of the language model itself.

An advanced reasoning model offers little value if it cannot safely execute real workloads. Conversely, even the most secure isolation technology becomes ineffective if attackers can manipulate the agent into creating trusted execution paths outside its intended boundary.

The rapid convergence of cloud providers around dedicated AI sandboxes signals that the industry has moved beyond asking whether autonomous coding agents are practical. The question now is how to build infrastructure capable of containing increasingly capable systems while allowing them enough freedom to solve complex engineering problems. The answer is unlikely to come from a single architecture. Instead, the next generation of cloud platforms will probably continue experimenting with different isolation models, each reflecting its own assumptions about trust, performance, and the evolving threat landscape surrounding agentic artificial intelligence.

Key facts

  • AWS, Google Cloud, Microsoft Azure, and Cloudflare now offer agent sandboxes
  • These agent sandboxes have been built using different approaches by each provider
  • Google Cloud's Cloud Run sandboxes were recently announced as being in public preview
  • The trend suggests an increasing focus on secure code execution environments in the cloud

Why it matters

The proliferation of agent sandboxes across major cloud platforms indicates a maturing landscape for secure code execution, crucial for emerging AI workloads and third-party integrations. As each provider takes a distinct architectural path, developers and security teams will face the challenge of navigating these differences, potentially impacting portability and the adoption of specific vendor solutions. This development also highlights the increasing importance of isolation and security for dynamic code execution in cloud environments.

Embedded content for: AWS, Google Cloud, Microsoft Azure, and Cloudflare now all offer agent sandboxes. None built them the same way.