Run your agent inside a sandbox
Give your agents tools, files, and processes that persist between sessions.
Migrating production infrastructure? Get up to $10K in migration credits.
Apply nowGive every agent its own isolated compute, persistent state, and filesystem.
const sbx = await sandboxes.create({ timeoutSeconds: 300 });await sandboxes.upload(sbx.id, "/app/task_51.json", task);const run = "python agent.py --task 51 && pytest tests/";for await (const e of await sandboxes.exec(sbx.id, run)) { console.log(e);}await sandboxes.snapshots.create({ sandboxId: sbx.id });await sandboxes.terminate(sbx.id);/app/task_51.json00:00:01python agent.py --task 51 && pytest tests/00:00:01Manage your sandbox’s lifecycle with TypeScript or Python SDKs or CLI.
Read the quickstartconst sandbox = await sandboxes.create({ timeoutSeconds: 900 });await waitForSandbox(sandbox.id);Each Render sandbox runs in its own Firecracker microVM, so agents can use Docker in it and resume with running processes intact.
Give your agents tools, files, and processes that persist between sessions.
Run Docker Compose, which brings up your app and other services it needs, like a database, so your agent can test changes end to end.
Execute code from users or a model, or process uploaded files, in a microVM isolated from your app’s data and secrets.
“We’ve long been fans of Render because it enables us to move fast, and Render Sandboxes have kept that promise.”
Stuart LaytonHead of Technology, FinQore10,412running now
Start new sandboxes from custom images or saved snapshots, with the files and tools each task needs.
Stream stdout, stderr, and exit codes so your agent can inspect a failure and try a fix.
Start sandboxes in under a second, even when traffic arrives in bursts.
Render Sandboxes suspend automatically when idle, with no compute charges until your agent sends its next command. While a sandbox runs, you’re billed only for the CPU it actually uses.
Explore pricingCreate Render API keys with only the permissions a task needs, like managing sandboxes without access to other services.
Limit outbound requests to approved domains, or block outbound traffic entirely.
Authenticate approved API requests without giving sandbox code the raw keys or tokens.
Copy this prompt into your coding agent to start a sandbox, run a command, and see the output.
Follow the quickstart at https://render.com/docs/sandboxes to run my first Render sandbox. Show me the output, and terminate the sandbox when you’re done.
Your sandbox ran the command and shut down.