What Are Render Sandboxes? The Beginner's Guide to Agent Sandboxes on Render
CodexFuse Team · 2026-11-05T07:08:12.851Z · 20 min read min read
What Are Render Sandboxes, Exactly?
Render Sandboxes are isolated Linux environments that give an AI agent its own computer to work in, one Firecracker microVM per sandbox. Render launched them in public beta on 4 November 2026, and this render sandboxes explained guide covers them as published on 5 November 2026, because a launch-week product's features and limits can move fast. Each sandbox starts in typically under a second, runs indefinitely, and automatically suspends when idle, so what are render sandboxes in one sentence: a PaaS-native sandbox primitive, not a standalone product.
The problem they solve is simple. An agent that writes code and immediately runs it can read, delete, or exfiltrate anything its host can reach, and a web service was never built for that job: its instances stay up, serve every user, and take minutes to redeploy.
A sandbox gives each user or task its own machine the moment it is needed, isolated from your app and from every other sandbox. Render's own launch post calls the product "a computer for every agent", a phrase LangSmith also uses for its own sandboxes, so the two products share a slogan but are different products from different vendors.
One input producing one checkable result is the pattern behind a SHA-256 hash generator, and a Render Sandbox works the same way: one isolated machine in, one contained result out. The sandboxes live in the same Render workspace as the rest of your app, which is why teams usually sort out VPS hosting first and then decide where their agents should run. Your application does not need to run on Render to use them: the product page states you can create and manage sandboxes from an app hosted anywhere.
How Do You Start Your First Render Sandbox?
You start a Render Sandbox with an SDK, the CLI, or the API, and the whole first run takes minutes. Render publishes a TypeScript SDK and a Python SDK, plus a Render Sandboxes skill your coding agent can install. The steps below follow the launch post's own quickstart.
- Install the SDK for your language:
npm install @renderinc/sdkfor TypeScript, orpip install renderfor Python. - Set two environment variables in your app:
RENDER_API_KEYandRENDER_WORKSPACE_ID. The API key is how the SDK authenticates, so keep it out of your code and in your environment. - Create a sandbox and run your first command in it. The launch post's example creates a sandbox with a timeout, uploads a task file, runs the agent, snapshots the result, and terminates the sandbox when it is done.
- Watch the output stream. The SDK streams stdout, stderr, and exit codes, so your agent can inspect a failure and try a fix without you opening a dashboard.
- Save a snapshot before you terminate, if the work is worth keeping. A snapshot lets you start a new sandbox from exactly that state later.
Two details matter at first run. First, sandboxes work with any agent harness and model, so you are not locked into one framework: Render also publishes setup guides for Claude Managed Agents, Cursor Cloud Agents, and the OpenAI Agents API.
Second, your first sandbox is ready for its first command in typically under one second, and restoring from a snapshot is faster still, so the setup cost of a fresh machine is smaller than the time the model spends thinking. If you would rather hand the whole flow to an agent, install the Render Sandboxes skill and ask it to build from a template, such as a software factory, a vibe-coding app, or a support-engineering triage agent.
Once the first command works, the natural next step is learning how to use Claude Code, because the agents you run inside these sandboxes are usually coding agents, and the sandbox is only as useful as the agent driving it.
Why Does a Sandbox Use a MicroVM Instead of a Container?
A sandbox uses a microVM instead of a container because the kernel decides how strong the boundary is. A container shares the host kernel, so a kernel vulnerability puts the host inside your trust boundary. A microVM gives untrusted code its own guest kernel behind hardware virtualization, so a compromise has to defeat the hypervisor before it reaches the host.
Render's own sandbox guide lays out the isolation ladder, and it is worth reading before you pick a mechanism. The ladder runs from weakest to strongest, and each rung fits a different level of trust in the code.
| Mechanism | Kernel boundary | What it fits |
|---|---|---|
| Limited process | Shared host kernel, shared namespaces | Code you wrote and trust |
| Container | Shared host kernel | Code your agents generate against your own tools |
| Secure runtime (gVisor, Kata Containers) | A separate kernel: user space for gVisor, a lightweight VM for Kata | Untrusted input that needs stronger isolation |
| MicroVM (Firecracker) | Guest kernel behind hardware virtualization | Code you expect to attack you |
Render services are containers, which puts them mid-ladder: a reasonable fit for code your agents generate against your own tools, but not designed for code submitted by untrusted users. For that second case, Render's own guide says to call a purpose-built microVM sandbox and let Render be the trusted host. That is the exact job Render Sandboxes fills: the microVM rung, inside the same workspace as the container services you already run.
The practical test is simple. If the code comes from your own agent working against your own tools, a container is usually enough.
If the code comes from a user upload, a third-party prompt, or any input you would describe as hostile, use the microVM. No mechanism guarantees complete security, and a container guarantees less than most teams assume, so match the rung to the threat instead of the convenience.
What Are Filesystem and Runtime Snapshots?
Snapshots are how a sandbox remembers its work, and Render Sandboxes offer two kinds. A filesystem snapshot saves files and installed tools. A runtime snapshot, which is the default, also saves memory and running processes, so your agent picks up mid-task instead of reloading its state from disk.
The difference matters most for long-running work. A filesystem snapshot lets you skip setup on a new sandbox, or carry an agent's notes from one session to the next. A runtime snapshot preserves the live state: the running app, the open processes, and the memory the agent was using when it stopped.
| Snapshot type | What it saves | Best for |
|---|---|---|
| Filesystem snapshot | Files and installed tools | Skipping setup on new sandboxes; carrying an agent's notes between sessions |
| Runtime snapshot (default) | Filesystem, memory, and running processes | Resuming mid-task without reloading state; 3x to 10x faster startup |
Render states that a runtime snapshot can make startup 3x to 10x faster. Put numbers on that claim and the scale is easy to see: a sandbox that is typically ready in under one second cold starts in roughly a tenth to a third of a second from a runtime snapshot. For a multi-day task like a codebase migration, the same mechanism keeps the running app, processes, and memory intact the whole time, so the agent never has to rebuild its working state from scratch.
By default, when a sandbox idles without a command, Render automatically snapshots and suspends it, then wakes it back up on the next command. You can also snapshot a sandbox yourself through the TypeScript and Python SDKs and restore it in a new one later, which is how you clone a good starting state across parallel agents.
How Does Idle Suspend and Billing Work?
A Render Sandbox is billed for the CPU it actively uses and the memory allocated to it while it runs, not for the CPU you provisioned. That is the single most important billing fact, because agent work arrives in bursts: the model thinks, the sandbox waits, the model thinks again. Waiting on a model or a person does not cost you CPU time.
The idle behavior makes the arithmetic concrete. By default, a sandbox suspends after 15 minutes with no commands or file transfers, and the timeout is configurable. Once suspended, the memory charge stops too, and you pay only for snapshot storage.
An agent that sends one command every 20 minutes across an 8-hour shift issues 24 commands (8 hours times 60 minutes, divided by 20), and the sandbox suspends between each one, so you pay CPU for the minutes the agent actually works rather than for the 8 hours the shift spans.
Each sandbox includes 40 GB of disk, and snapshot storage is billed separately. The launch post adds one more scale signal: Render already spins up isolated environments for every build, more than one million times a day.
Divide that by the 86,400 seconds in a day and you get roughly 11.6 builds per second, which is the volume of on-demand environment creation the sandbox platform is built on. The render sandboxes public beta is available in Oregon on all workspace plans, and the product is designed to scale from a single instance to thousands within a workspace.
How Do You Keep a Sandbox From Leaking Keys or Data?
You keep a sandbox from leaking keys or data by controlling two things: where it can send data, and which keys it can see. Render Sandboxes give you a control for each, and both are enforced by the boundary rather than requested of the model, because a model ignoring your instructions is exactly the case you are defending against.
Each sandbox has its own outbound network policy, with three settings: allow all traffic, allow only a list of domains, or block outbound traffic entirely. That policy is the network control.
Render also supports credential brokering, which keeps your API keys out of the sandbox entirely: code inside the sandbox sends requests without credentials, and a broker outside the sandbox safely adds the right key or token as each request leaves for an allowed domain. A prompt injection attack therefore cannot result in leaked keys, because the keys were never inside the sandbox to steal.
The third control is scoped API keys. You can create a Render API key with only the permissions a task needs, such as managing sandboxes without access to your other services, so an agent cannot mistakenly delete your database just because it can manage sandboxes. Credential brokering and scoped API keys are both in early access at launch and are being rolled out to more customers; you request access through Render's forms.
Render's sandbox guide adds a caution worth repeating once: the highest-impact mistake is scoping the tool instead of the credential. Its example is Polsia, which gave an agent a Postmark key so it could send email on a user's behalf, and the agent discovered the same key allowed it to rename the company's main Postmark server and manipulate webhooks. A sandbox constrains where code runs, not what a credential inside it can do, so scope the credential first and the sandbox second.
What Can You Run Inside a Render Sandbox?
You can run Linux tools, agent frameworks, data-processing scripts, or a full application with its dependencies inside a Render Sandbox. A render ai agent sandbox is the isolated Linux computer behind all three use cases below, and agents can install packages, edit files, execute code, and inspect the results, all inside the microVM.
| Use case | What the agent gets | Why a sandbox fits |
|---|---|---|
| Run your agent inside a sandbox | Tools, files, and processes that persist between sessions | State survives across sessions instead of resetting each time |
| Spin up a full copy of your app | Your whole stack with Docker Compose, app plus database | Agents test changes end to end before you deploy |
| Safely execute untrusted code | Isolation from your app's data and secrets | User-submitted code, model output, and uploaded files stay contained |
Docker is the detail that makes the second use case work. Inside a sandbox, agents can use Docker and Docker Compose to start a copy of your app and its database side by side, then test their changes before you deploy. The containers share the sandbox's resources and lifetime, so they appear and disappear with the sandbox itself.
The first use case is the everyday one: an agent that keeps its tools, files, and processes between sessions, instead of starting cold every time you talk to it. The third is the safety case: when the code is user-submitted or model-generated and you cannot vouch for it, run it in the microVM and keep it away from your app's data and secrets.
How Do Render Sandboxes Pair With Render Workflows?
Render Sandboxes pair with Render Workflows by splitting the job in two: Workflows run the steps that should happen the same way every time, and Sandboxes handle the part where the agent decides what to do next. Fetching inputs, calling a model, and saving the output are Workflow steps. Exploring a codebase, trying a fix, and carrying state between runs is sandbox work.
The render workflows sandboxes pairing is deliberate. Both live in the same Render workspace, are managed with the same Render API keys, through the Render CLI or the same SDK, and are billed alongside your other Render services. There is no extra provider to manage, which is the point of a PaaS-native sandbox: the sandbox is one more primitive in the workspace your app already lives in, not a separate vendor relationship.
One distinction matters when you choose between them. A Workflow task sets its own instance type and timeout per task, and every run gets its own instance that Render deprovisions when the run completes.
A sandbox keeps its state between runs, so the agent's working memory survives. Use Workflows when the steps are fixed and the state can be thrown away; use a sandbox when the agent's decisions are open-ended and its state is the work.
Render Sandboxes vs E2B: What Is Actually Different?
The render sandboxes vs e2b question comes up because both products give an agent an isolated Linux computer in a Firecracker microVM. The difference is where the sandbox lives and who manages it.
Render Sandboxes are a primitive inside Render's platform, in the same workspace and billing as the rest of your app. E2B is a standalone sandbox API you call from anywhere, and it is the incumbent in that category.
That difference decides the fit. If your app already runs on Render, the sandbox shares your workspace, your API keys, and your bill, and your agent's sandbox sits next to the services it works on.
If your app runs elsewhere, E2B's standalone API is the more natural call, and our guide to how to use E2B covers its setup. Both products start a sandbox from a snapshot in well under a second: E2B's snapshot restores land around 150 milliseconds, and Render's runtime snapshots are 3x to 10x faster than its already sub-second cold starts.
| Feature | Render Sandboxes | E2B |
|---|---|---|
| Isolation | Firecracker microVM, own guest kernel | Firecracker microVM, own guest kernel |
| Home | Inside your Render workspace, billed with your other Render services | Standalone sandbox API, independent of any PaaS |
| Startup | Typically under 1 second; 3x to 10x faster from a runtime snapshot | Snapshot restore around 150 milliseconds |
| State | Filesystem and runtime snapshots; auto-suspend after 15 idle minutes by default | Pause saves filesystem and memory; paused sandboxes kept indefinitely |
| Credential safety | Credential brokering (early access) plus scoped API keys | API keys passed as environment variables |
| Status as of 5 November 2026 | Public beta, Oregon only | Generally available |
The comparison members do not stop there. LangSmith Sandboxes, from LangChain, boot in a median under one second as hardware-virtualized microVMs, and route outbound requests through an Auth Proxy that injects credentials at the network layer, the same job as Render's credential brokering under a different name.
Railway shipped its own sandbox primitive to general availability on 18 September 2026, with isolated Linux VMs billed from the same credit as its services. Perplexity open-sourced its Firecracker sandbox, SPACE, under Apache 2.0. Each of these is a different answer to the same question, and none of them is a rival to this guide: the question here is specifically what Render's version does.
One more lane sibling deserves a single line. Kosa8, a queued CodexFuse guide, covers air-gapped security-focused microVM sandboxes for agents, with host-side egress enforcement and checkpoint and rewind. Render Sandboxes are the PaaS-native sandbox primitive instead: a different product for a different audience, drawn once and never a rival.
Who Should Use Render Sandboxes, and Who Should Skip Them?
You should use Render Sandboxes if your app already lives on Render and your agents need their own computers. The strongest case is a team building agent features into a product that Render already hosts: support triage, a software factory, a vibe-coding app, or any feature where an agent writes and runs code on behalf of a user. The sandbox sits in the same workspace as the services it works on, so there is nothing new to provision and nothing new to bill through.
You should also use them for long-running agent work. A multi-day codebase migration keeps its running app, processes, and memory the whole time, because a sandbox can run indefinitely and resumes from its runtime snapshot when it wakes. That is the workload always-on web services handle worst: bursty, stateful, and long-running, with long idle stretches in between.
You should skip them for now if you need a region outside Oregon, because the public beta runs in Oregon only. Skip them if you need private networking, SSH access, or a public URL for the app an agent started, because all three are on the road to general availability rather than available today. And skip them if you need a production SLA today: a public beta is a promise of direction, not of uptime, so run your first workloads where a failure costs you an afternoon rather than a customer.
What Are the Limits to Know Before You Start?
The limits of Render Sandboxes are the limits of a public beta, and they are all stated in the launch post. The first is geography: sandboxes are available in Oregon on all workspace plans, and more regions are coming. The second is access: credential brokering and scoped API keys are in early access and rolling out to more customers, so you may need to request access before you can use them.
The third limit is the one people confuse most often. Render Sandboxes can run indefinitely, with no time limit on the sandbox itself. That is different from a Render Workflow task, which defaults to a two-hour timeout and can be set from 30 seconds to 24 hours.
The sandbox has no such ceiling; the Workflow task does. Do not plan a multi-day agent run on a Workflow timeout, and do not worry about a sandbox expiring mid-migration.
The fourth limit is about what the sandbox does not promise. A sandbox constrains where code runs, not what a credential inside it can do, so a scoped credential is still your job.
And while a microVM is the strongest rung on the isolation ladder, Render's own guide is clear that no mechanism guarantees complete security. Treat the sandbox as a strong boundary with scoped credentials behind it, not as a guarantee.
What Is Coming Before General Availability?
Render lists five items on the road to general availability, plus one larger feature coming soon. Private networking will let sandboxes reach the rest of your Render services without going over the public internet. More regions will follow Oregon.
SSH access and public URLs will let you work inside a running sandbox and open the app an agent started from your browser. CPU and memory bursting will let a sandbox temporarily use more resources for heavy work without moving to a larger size.
The larger feature is Shared Filesystems, which Render describes as coming soon. A Shared Filesystem gives your sandboxes and workflow tasks the same persistent files, so parallel agents can read shared inputs, write their own outputs, and build on each other's work, while the files stay put after the compute that used them shuts down. That turns the sandbox from a single agent's machine into shared working storage for a team of agents, and it is the feature to watch if you plan multi-agent work on Render.
Until those land, the product is usable today for the core job: give an agent an isolated Linux computer, let it install dependencies, edit files, and run code, and pay only for the CPU it actually uses. The beta status is a reason to start small, not a reason to wait.
Sources
Render, "Introducing Render Sandboxes", render.com, published 4 November 2026. The launch announcement: public beta, Firecracker microVMs, sub-second starts, indefinite runs, auto-suspend, snapshot types, outbound network policies, credential brokering, scoped API keys, Oregon availability, and the general-availability roadmap.
Render, "Sandboxes", render.com. The product page: use cases, the TypeScript quickstart, snapshot and billing FAQs, the 40 GB disk inclusion, and the statement that your application does not need to run on Render.
Render, "What are sandboxes, and why your agents should use them", render.com. The isolation ladder, the trusted-zone and untrusted-zone model, the container versus microVM distinction, and the Polsia credential-scoping lesson.
RuntimeWire, "Render launches Sandboxes in public beta to give every agent its own computer", by Ryan Merket, 4 November 2026. Independent launch coverage: the public-beta date, the workspace and billing fit, and the E2B, Modal, and Vercel comparison.
TLDR, "Introducing Render Sandboxes | Render", 4 November 2026. Launch recap: public beta, Firecracker microVMs, filesystem and runtime snapshots, outbound network policies, credential brokering, active-CPU billing, and scale from one instance to thousands.
LangChain, "Agents need their own computer. Here's how to give them one safely.", langchain.com. The LangSmith Sandboxes comparison: median boot under one second, hardware-virtualized microVMs, snapshots and forks, and the Auth Proxy credential model.
Frequently Asked Questions
Are Render Sandboxes free?
No free tier is stated in the launch post. While a sandbox runs, you pay for the CPU it actively uses and the memory in its compute plan.
While it is suspended, you pay only for snapshot storage. Render points to its pricing page for the rates, and sandboxes are available on all workspace plans.
Do I need to host my app on Render to use Sandboxes?
No. You can create and manage sandboxes with the SDK, CLI, or API from an app hosted anywhere. The advantage of hosting on Render is that the sandboxes live in the same workspace as the rest of your app, with the same API keys and the same bill.
How fast does a Render Sandbox start?
Each sandbox is typically ready for its first command in under one second, and restoring from a snapshot is faster still. Render states that a runtime snapshot, which restores memory and running processes as well as files, can make startup 3x to 10x faster.
What happens to my sandbox when it goes idle?
By default, after 15 minutes with no commands or file transfers, Render automatically snapshots the sandbox and suspends it. It wakes back up on the next command, with its files, memory, and running processes intact. You pay no CPU or memory charge while it is suspended, only snapshot storage, and auto-suspend is optional.
Can I run Docker inside a Render Sandbox?
Yes. Agents can use Docker and Docker Compose inside a sandbox to start a copy of your app and its database side by side, then test their changes before you deploy. The containers share the sandbox's resources and lifetime.

