In a complete Agent Infra setup, the model is responsible for reasoning and generating the next action, while the orchestration system is responsible for organizing tasks, coordinating tool calls, and executing workflows. When a task needs to run code, access files, or operate a browser, a controlled execution environment is also needed—the agent sandbox fills this role. It sets boundaries for processes, files, networks, storage, and system permissions, preventing different tasks from interfering with one another and also reducing the impact of a single task on the host system and other business operations.
As Agent tasks shift from short interactions to long-horizon execution, the sandbox must also manage the complete lifecycle of the runtime environment, including creation, startup, pause, state preservation, recovery, and reclamation. As a result, the agent sandbox sits at the execution layer of Agent Infra, carrying the action plans generated by the model and orchestration system, translating tool calls into real code, process, and environment operations, while managing security boundaries, resource usage, and runtime state during execution.
Yi Li, head of container and sandbox R&D at Alibaba Cloud Intelligence Group, summarized Agent Sandbox in an interview with Machine Heart as "essentially a computer for the Agent to use." Unlike traditional virtual machines that mainly provide general-purpose computing environments for people and applications, it targets execution tasks driven by models: Agents may run dynamically generated code and access files, networks, and external systems, so the sandbox needs to establish complete security boundaries at the compute, storage, and network layers; at the same time, whether for Agent Serving or parallel exploration in RL, large numbers of sandboxes must be able to be created quickly and put into operation.