Free sandbox APIs for AI agents (2026)
Updated
What each sandbox API gives AI agents for free, from each vendor's own pages: Prized's $30 of credit with no card (up to 10 sandboxes at a time, each up to 2 vCPU and 4 GB for 60 minutes) and a first sandbox in Python or TypeScript, then E2B, Daytona, Modal, Vercel Sandbox, Freestyle, CodeSandbox, Sprites, Blaxel and Tensorlake.
On this page11
- Your first sandbox
- Free use at a glance
- Prized's free tier, exactly
- Start a sandbox with curl
- Host one yourself
- Common questions
- Which sandbox API is free without a credit card?
- Which free tier runs a sandbox longest?
- Is there a free sandbox API that keeps memory through a pause?
- Which free sandbox API fits a coding agent?
- Sources
Prized, E2B and Daytona are sandbox APIs for AI agents that start free with no card: $30 of credit, $100 of credit and $200 of compute. On Prized's, up to 10 sandboxes run at a time, each up to 2 vCPU and 4 GB for 60 minutes of running, billed per second at $0.131 an hour for 2 vCPU and 4 GB, and a paused sandbox keeps its memory for 30 days after its last use. Modal gives $30 a month with a payment method on file, and Tensorlake a free plan of one sandbox at a time (1 vCPU, 1 GB), also with no card.
Hosted sandbox APIs give free use in three forms: credit (Prized, E2B, Daytona, Sprites, Blaxel), an allowance that comes back every month (Modal, Vercel Sandbox, Freestyle, CodeSandbox), or a free plan with fixed limits (Tensorlake). What it buys differs more than the dollar figure: how long a sandbox may run, how many run at once, how big each is, and whether you need a card.
Your first sandbox
1. Get a key. New to Prized? Open Sandboxes signs you up with the $30 of free credit and no card, and opens on the Sandboxes page with no box tour. Click Create API key there (it shows until your first sandbox; after that, make one under Settings, API keys) and export it:
export PRIZED_API_KEY=dcp_…2. Install the SDK. Python needs 3.10 or later; TypeScript needs Node 18 or later.
python3 -m venv .venv && . .venv/bin/activate
pip install prized3. Run a sandbox. Save the file for your language:
from prized import Sandbox
with Sandbox.create() as sb: # returns once it answers commands
print(sb.exec("python3 --version").stdout, end="")
# leaving the block deletes the sandboxRun it with python3 hello.py, or node hello.mts (Node 22.18 or later; on older Node, npx tsx hello.mts). It prints Python 3.12.3 and deletes the sandbox. Files, background processes, pause and fork are one call each (Sandbox SDK for Python and TypeScript).
From a shell, two curl calls start a sandbox and run a command in it (below). A coding agent can make the account and its key with your email address (Agent quickstart).
Free use at a glance
| Free use | Card needed | Run length on it | At once | Largest sandbox on it | |
|---|---|---|---|---|---|
| Prized | $30 of credit once | No | 60 minutes of running in all per sandbox; paused time does not count | 10 sandboxes, 20 vCPU and 40 GB in all | 2 vCPU, 4 GB |
| E2B | $100 of credit once | No | 1 hour at a time; a pause resets it | 10 | 8 vCPU, 8 GB |
| Daytona | $200 of compute | No | No limit; stops after 15 idle minutes by default | 10 vCPU in all on Tier 1 | 4 vCPU, 8 GB |
| Modal | $30 of credit a month on Starter | A payment method on file | 24 hours; 5 minutes by default | 100 containers | No number listed |
| Vercel Sandbox | 5 CPU-hours, 420 GB-hours of memory and 5,000 creations a month on Hobby | Not stated | 45 minutes a session; a stop and resume resets it | 10 | 4 vCPU, 8 GB |
| Freestyle | 200 vCPU-hours and 400 GB-hours of memory a month | Not stated | No limit listed | 10 VMs | 4 vCPU, 8 GB |
| CodeSandbox SDK | 400 credits a month, about 40 hours of its Nano VM (2 cores, 4 GB) | Not stated | No limit | 10 VMs | 4 vCPU, 8 GB |
| Sprites, from Fly.io | $30 of trial credit once | Not stated | No limit listed; sleeps when idle | Not stated | 8 vCPU, memory managed for you |
| Blaxel | Up to $200 of credit | Not stated | A sandbox expires within 7 days on Tier 0 | 10 on Tier 0, standby ones included | Not listed |
| Tensorlake | A free plan with no usage charge | No | 2 hours a session | 1 | 1 vCPU, 1 GB |
"Not stated" means the vendor's pages don't say. Past a monthly allowance, Vercel pauses sandbox creation until it resets and Freestyle pauses VMs, which you can resume once it resets; past a one-time credit, you top up or start a plan. Cloudflare Sandboxes have no free use: they need the Workers Paid plan, $5 a month. Together Code Sandbox is turned on through its sales team.
Prized's free tier, exactly
- $30 of credit, once per person, no card. It does not refill, and sandboxes draw on it at $0.04 per vCPU-hour, $0.0125 per GB-hour of memory and $0.0001 per GB-hour of disk: a 2 vCPU, 4 GB sandbox is $0.131 an hour. The $30 of free credit covers about 2,700 five minute sandboxes of 2 vCPU and 4 GB.
- Limits while the balance is free credit alone: 10 sandboxes at once, 20 vCPU and 40 GB running across the workspace, each up to 2 vCPU and 4 GB, 60 minutes of running in all per sandbox, and 100 GB of disk across the workspace's sandboxes (Free tier).
- Paused sandboxes keep their memory and disk, on the machine they ran on, until 30 days after their last use, then are deleted (Paused retention); a move to a different kind of machine keeps only their disk (Pause and resume).
- Included: pause with memory, fork into live copies (the copies keep the parent's deletion time), outbound internet, and two templates:
prized-base-v1(Ubuntu with Python 3, Node.js 22 and git) andprized-agent-v1, which adds Claude Code and Codex. - The free credit's rules hold: one process at full CPU for 30 minutes can pause the workspace's sandboxes (Free credit).
- To lift it: a top-up from $10 or a plan lifts a workspace to the full quotas: 24 hours of running by default, up to 7 days, and up to 32 vCPU and 128 GB a sandbox.
- An account a coding agent makes with your email through agent sign-in can get the credit, once per inbox, if the sign-up passes Prized's checks (Boxes and billing).
Sandboxes have no GPUs. Docker runs in a sandbox once the workspace has paid in, not on the free credit (Run Docker and Compose in a sandbox). Not yet: templates from your own image, sudo, and regions other than Oregon (Not yet).
Start a sandbox with curl
With the key from step 1 exported, create a 2 vCPU, 4 GB sandbox with curl and jq. The call holds its answer up to 8 seconds while the sandbox starts and keeps its address in TOOLBOX; a command sent while it is still starting waits up to 10 seconds for it. It deletes itself after 60 minutes of running:
TOOLBOX=$(curl -s -X POST "https://api.prized.dev/api/v1/sandboxes?wait=running" -H @<(echo "Authorization: Bearer $PRIZED_API_KEY") -H "Content-Type: application/json" -d '{"template":"prized-base-v1","resources":{"vcpu":2,"memoryMb":4096},"maxRuntimeMin":60}' | jq -er '.sandbox.toolboxBase // error(tojson)')Then run a command in it:
curl -s -X POST "$TOOLBOX/process/execute" -H @<(echo "Authorization: Bearer $PRIZED_API_KEY") -H "Content-Type: application/json" -d '{"command":"python3 --version"}'
# {"stdout":"Python 3.12.3\n","stderr":"","exitCode":0,"durationMs":41}A refused create prints its error instead, with the free-tier limit it hit (Free tier). Files, background processes, pause, fork and delete are one call each (Sandbox API).
Host one yourself
Open-source sandboxes cost what the machines under them cost, and you run them yourself:
- E2B's runtime (Apache-2.0): the stack behind E2B's cloud, for your own machines.
- OpenSandbox (Apache-2.0), formerly at alibaba/OpenSandbox.
- microsandbox (Apache-2.0): a microVM runtime and library that runs locally.
- Agent Sandbox (Apache-2.0): isolated, stateful workloads on your Kubernetes cluster.
- Daytona (AGPL-3.0): archived and no longer maintained, but free to use and fork at its last release, v0.190.0; Daytona moved its core development to a private codebase in June 2026.
Common questions
Which sandbox API is free without a credit card?
Prized, E2B and Daytona say so on their own pages: $30, $100 and $200 of credit. Tensorlake says so for its free plan. Modal asks for a payment method on file before its $30 a month applies.
Which free tier runs a sandbox longest?
Daytona and CodeSandbox set no run time limit, and Freestyle and Sprites list none, though Daytona stops a sandbox after 15 minutes with no toolbox calls, SSH or preview traffic unless you turn auto-stop off, and CodeSandbox hibernates one after the idle timeout you set, up to 24 hours. Modal allows 24 hours, Tensorlake 2 hours, E2B 1 hour at a time and Vercel 45 minutes a session. Prized's free tier gives each sandbox 60 minutes of running in all, and a top-up from $10 lifts it to 24 hours by default and up to 7 days.
Is there a free sandbox API that keeps memory through a pause?
Prized and E2B keep a paused sandbox's memory on their free use, Blaxel's standby and CodeSandbox's hibernation save it too (CodeSandbox may keep only the disk over time), and a Sprite keeps it while it sleeps warm. Daytona does it on its Linux VM and Windows sandboxes, not its default containers. On the free tier a paused Prized sandbox is kept, on the machine it ran on, until 30 days after its last use; E2B keeps paused sandboxes with no time limit.
Which free sandbox API fits a coding agent?
One with outbound internet, a run long enough for its task, and a way to keep its state between turns. On Prized, the prized-agent-v1 template has Claude Code and Codex installed, and the Prized skill teaches your coding agent the calls.
Sources
Checked November 3, 2026; the free use and card rules of E2B, Daytona, Modal and Tensorlake checked again November 7, 2026, and E2B's concurrent sandboxes November 10, 2026:
- E2B: pricing (Hobby credit, card, sessions, concurrency), billing (sizes, paused retention).
- Daytona: pricing (free compute, card), limits (tiers), sandboxes (sizes, auto-stop, pause), repository (archived, no longer maintained).
- Modal: pricing (Starter credit), billing (payment method), sandboxes (timeouts).
- Vercel Sandbox: pricing and limits (Hobby allowance, sessions, concurrency, sizes).
- Freestyle: pricing and limits (free allowance, concurrency, sizes), VM lifecycle (pause keeps memory).
- CodeSandbox SDK: pricing, credits (400 a month on the free plan), SDK pricing (concurrency, VM sizes), hibernation (memory and disk), create (hibernation timeout).
- Sprites: Sprites (trial credit), lifecycle (size, warm and cold sleep).
- Blaxel: pricing (free credit, Tier 0 sandboxes, standby keeps memory), expiration (Tier 0 expiry).
- Tensorlake: pricing (free plan, no card), billing (limits).
- Cloudflare Sandboxes: Containers pricing (Workers Paid).
- Together Code Sandbox: docs (access through sales).
- Open source: each project's GitHub repository (license, latest release).
Something here out of date? Write to .