Free checklist

Sandboxes and code execution

2 curated isolated sandboxes and simulators where agents can run and test the code they write without touching your own machine: E2B and Simantic.

A sandbox is an isolated environment where an agent can run the code and shell commands it writes, so that work stays off your own laptop and away from production servers. E2B's documentation describes its product as isolated sandboxes that let agents safely execute code, process data and run tools, and each sandbox as a fast, secure Linux VM created on demand for the agent. NVIDIA describes OpenShell, a related project, as a safe, private runtime for autonomous AI agents. The common idea is that the agent gets real capability, such as installing packages or editing files, without unrestricted access to your data, secrets or network.

You need this page when an agent does more than answer questions. The moment a model writes a script, installs a dependency, runs tests or drives a desktop, something has to execute that code, and running it on the machine you rely on is a risk. A sandbox gives it a disposable place to run. It also helps when work has to continue across steps: E2B's docs say a sandbox can be paused and resumed later with both its filesystem and its memory preserved, and that a paused sandbox is kept until you kill it.

It currently lists two entries: E2B, a hosted sandbox service you call through its SDKs, and Simantic, which simulates microcontrollers so an agent can run and test the firmware it writes without hardware. Two closely related tools are filed under other use cases because of what they are mainly used for: E2B Desktop Sandbox, a graphical desktop environment for computer-use agents, is listed under Computer use, and NVIDIA OpenShell, an open-source runtime that applies per-agent policies, is listed under Multi-agent. More sandbox tools will be added after they have been checked against their own documentation.

Secure cloud sandboxes for running agent code.

Sandboxes and code executionPricing listedInfrastructureSandboxessandboxapifreemiumSource →

YC-backed firmware simulator: virtual microcontrollers (STM32, ESP32, RP2040) your AI agent can run and test the firmware it writes via an HTTP API, plus a bot that simulates every PR and posts a review. Free Community plan plus paid tiers; pricing varies, see the official pricing page.

Sandboxes and code executionfirmwaresimulationcicode-reviewSource →

How to choose Sandboxes and code execution tools

Sandboxes and code execution FAQ

What is a code sandbox for AI agents?

A code sandbox is an isolated environment where an agent can run code and commands without touching your own machine. E2B describes its sandboxes as fast, secure Linux VMs created on demand, where agents can execute code, process data and run tools. If the agent makes a mistake or runs something untrusted, the damage stays inside the sandbox instead of on your computer or servers.

Why can't I just run agent-written code on my own machine?

You can, but the code runs with your files, credentials and network access. A sandbox separates the two. NVIDIA's OpenShell project puts it this way: agents are most useful when they can read files, install packages, call APIs and use credentials, and a sandbox lets them do that without unrestricted access to your data, secrets or network.

Can a sandbox keep its state between steps?

With E2B, yes. Its documentation says you can pause a sandbox and resume it later from the same state, including the filesystem and the memory, so running processes and loaded variables survive. A paused sandbox is kept until you explicitly kill it. Check the official docs for the current limits.

How is a sandbox different from a computer-use agent or a browser agent?

A sandbox is the place where work runs, while a computer-use or browser agent is the thing doing the work. The two are often combined. E2B Desktop Sandbox, which is listed under Computer use, provides a secure cloud Linux desktop so a computer-use agent can operate a graphical environment in isolation. Browser tools such as Browserbase are listed under Computer use too.

Further reading: E2B documentation; E2B sandbox persistence; E2B internet access; E2B secrets; E2B Desktop Sandbox on GitHub; NVIDIA OpenShell on GitHub.

Get new agent tools and tips as they're added

Follow @AgentstackDaily on X for new tools and copy-paste tips. Free.