# Best AI agent sandboxes (2026): Archil, E2B, Northflank, Modal, Vercel Sandbox, Daytona and more

Source: https://archil.com/compare/best-ai-agent-sandboxes

The best sandbox platforms for running AI agents' code in production, ranked on isolation, published start time, concurrency, price per vCPU-hour, what survives when the agent goes idle, session limits, GPUs and self-hosting: Archil, E2B, Northflank, Modal, Vercel Sandbox, Daytona, Blaxel, Tensorlake, Fly.io Sprites, Cloudflare Sandbox, AWS Lambda MicroVMs and Runloop.

[All comparisons](https://archil.com/compare)

# Best AI agent sandboxes (2026)

For most teams putting AI agents into production, the best sandbox platforms are Archil, E2B, Northflank and Modal, in that order. Archil comes first because every tool call and every sandbox runs in a Firecracker microVM with its own kernel, a tool call starts in a median 37 ms and costs $0.05 per 1,000, and sandboxes keep a durable root disk, pause with memory and fork in milliseconds. E2B is a close second and the pick when you want an open-source runtime you can host yourself. Northflank is best when you need no session limit, the lowest per-vCPU price or bring-your-own-cloud on five clouds, and Modal is best when agents need GPUs or the highest published concurrency. Vercel Sandbox fits agents inside Vercel apps, and Daytona fast-starting dev environments where container isolation is enough.

Updated November 2026. Competitor facts are from each vendor's own docs and pricing pages.

## The short list

1.  [Archil](#archil): Best for agents in production that need microVM isolation, fast tool calls billed per call, and a workspace that survives the VM
2.  [E2B](#e2b): Best for a general-purpose agent sandbox with Firecracker isolation, exact pause and resume, and an open-source runtime you can host
3.  [Northflank](#northflank): Best for production sandboxes with no time limit, large sizes and BYOC, at the lowest per-vCPU price here
4.  [Modal](#modal): Best for agents that need GPUs in the sandbox, RL rollouts, and the highest published concurrency
5.  [Vercel Sandbox](#vercel-sandbox): Best for agents built into Vercel apps, with high concurrency in many regions
6.  [Daytona](#daytona): Best for fast-starting, stateful dev environments where container isolation is acceptable, and GPU sandboxes
7.  [Blaxel](#blaxel): Best for agents that sit idle most of the time and must resume mid-task in milliseconds
8.  [Tensorlake](#tensorlake): Best for long-running agent sessions with suspend and resume, and GPU sandboxes, on Active CPU billing
9.  [Fly.io Sprites](#fly-io-sprites): Best for one long-lived machine per agent or user, with a 100 GB disk
10.  [Cloudflare Sandbox](#cloudflare-sandbox): Best for short-lived sandboxes driven from Workers, with egress mediated by your Worker
11.  [AWS Lambda MicroVMs](#aws-lambda-microvms): Best for teams that must keep sandboxes and their traffic inside their own AWS account
12.  [Runloop](#runloop): Best for coding-agent devboxes and benchmarks, with a deploy-to-VPC option

## Side by side

| Platform | Isolation | Published start time | Published concurrency | Session limit | When idle | Max size | GPUs | Compute price | Your cloud or self-hosted |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Archil | Firecracker microVM with its own kernel, for every tool call and every sandbox | Tool calls: 37 ms median queue time from a warm pool (default image and size). Sandbox boot time not published | Sandboxes: 20 (Developer), 250 (Team, plus 500 for $500 a month), unlimited (Enterprise). Tool calls: hundreds in parallel, thousands on request | Tool calls: 5 minutes. Sandboxes: 24 hours, then pause (30 minutes on Free) | Pause keeps memory, processes and disk; stop keeps the root disk; forks in milliseconds | 32 vCPU, 64 GiB, x86-64 | None documented | Tool calls: $0.05 per 1,000 (2 vCPU, 4 GiB). Sandboxes: $0.055 per vCPU-hour, $0.020 per GiB-hour | Managed BYOC on AWS, Google Cloud, Azure or bare metal (Enterprise); not open source |
| E2B | Firecracker microVM with its own kernel | Not published; resume about 1 s | 10 (Hobby), 100 (Pro), up to 1,100 with add-ons | 1 hour (Hobby), 24 hours (Pro); pausing resets it | Pause keeps memory and files, kept indefinitely; timeout kills by default | 1 to 8 vCPU and 1 to 8 GiB listed; custom on Pro | No | $0.000014 per vCPU-second, $0.0000045 per GiB-second; Pro $150 a month | Apache-2.0 runtime, E2B Embed; BYOC (Enterprise) |
| Northflank | Cloud Hypervisor microVM with its own kernel; gVisor for GPU sandboxes | Under 1 s cold start, advertised | 50,000+ at once, advertised | None | Pause wipes ephemeral storage; volumes kept | 288 vCPU, 2 TB memory, 64 TB volumes | L4 to B200, under gVisor | $0.01667 per vCPU-hour, $0.00833 per GB-hour; BYOC $0.02083 per node vCPU-hour | BYOC on AWS, Google Cloud, Azure, Oracle or bare metal |
| Modal | gVisor by default, or a VM runtime with its own kernel | Under 1 s, including large custom images | 250 (Starter), 10,000 (Team); tested past one million | 5 minutes by default, 24 hours at most | Nothing kept without a snapshot or Volume; no pause | Not compared | T4 to B300, gVisor runtime only | $0.00003942 per physical core-second (2 vCPU), $0.00000667 per GiB-second, 3x list for sandboxes | None documented |
| Vercel Sandbox | Firecracker microVM with a dedicated kernel | Not published | 10 (Hobby), 10,000 (Pro and Enterprise) | 45 minutes (Hobby), 24 hours (Pro); resets on resume | Stop saves the filesystem, not memory | 8 vCPU, 16 GB (Pro); 32 vCPU, 64 GB (Enterprise); 64 GB disk | None documented | $0.128 per Active CPU hour, $0.0212 per GB-hour provisioned (iad1) | No |
| Daytona | Containers by default; VM sandboxes with their own kernel | Under 90 ms sandbox creation | Pooled by tier, from 10 to 500 vCPU; 300 to 600 creations a minute | None; auto-stop after 15 idle minutes by default | Stop keeps files; VM sandboxes pause with memory | Disk 10 GB at most | Yes, NVIDIA and AMD | $0.0504 per vCPU-hour, $0.0162 per GiB-hour | BYOC (Enterprise) |
| Blaxel | VM per sandbox; hypervisor not named | Resume from standby under 25 ms | 10 (Tier 0), 50 (Tier 1), 200 (Tier 2), 100,000+ (Tier 9) | None stated; TTLs on starter quotas | Standby keeps memory, processes and files; no compute charge | Up to 256 GB RAM on custom plans | Not documented | $0.0000115 per GB of RAM per second, CPU scaled to memory | Not documented |
| Tensorlake | MicroVM for CPU sandboxes, hypervisor not named; gVisor for GPU sandboxes | Boots in hundreds of milliseconds | 1 (Free), 100 (Usage Credits), 1,000 (Pro) | 2 hours (Free), 24 hours (Usage Credits), unlimited (Pro) | Suspend keeps memory, processes and files | 16 vCPU, 64 GB, 100 GB disk (Pro) | Yes, H100 | Pro: $0.042 per core-hour of active CPU, $0.009 per GB-hour; $250 a month | In-VPC or on-premises (Enterprise) |
| Fly.io Sprites | Hardware-isolated VM; hypervisor not named | Warm wake 100 to 500 ms, cold 1 to 2 s | 100 running and 100 warm; cold unlimited | None documented | Warm keeps memory; cold keeps the 100 GB disk | 100 GB disk | No | $0.0385 per CPU-hour, $0.021875 per GB-hour, on usage | No |
| Cloudflare Sandbox | MicroVM with its own kernel; hypervisor not named | Cold starts often 1 to 3 s | 15,000 concurrent vCPU per account by default | No guaranteed run time | Disk is ephemeral; snapshots (beta) keep files 30 days | 4 vCPU, 12 GiB, 20 GB disk | No | $0.000020 per active vCPU-second, $0.0000025 per GiB-second; Workers Paid $5 a month | No |
| AWS Lambda MicroVMs | Firecracker microVM | Not published | Not stated on the pages we read | State kept for up to 8 hours | Suspend keeps memory and disk | Bursts to 4x its baseline | No | $0.0000276944 per vCPU-second, $0.0000036667 per GB-second (US East Graviton example) | Runs in your AWS account |
| Runloop | VM per devbox; hypervisor not named | A few seconds to the first command | 3 on the free trial; higher on Pro, not published | 1 hour by default, configurable | Suspend, resume and snapshots | Not published | Not documented | $0.108 per CPU-hour, $0.0252 per GB-hour; Pro $250 a month | Deploy to VPC (Enterprise) |

## What to look for

-   ### Isolation
    
    Agents run code a model wrote, so the boundary matters most. A microVM (Firecracker, Cloud Hypervisor or an unnamed hypervisor) gives each sandbox its own kernel. gVisor intercepts system calls in a user-space kernel, and a plain container shares the host kernel. Check egress controls and credential handling too: isolation doesn't stop an agent with open egress and a key in its environment from sending data out.
    
-   ### Start time
    
    An agent loop makes many short tool calls, so per-call start time adds up. Vendors publish different things: a queue time from a warm pool (Archil, 37 ms), container creation (Daytona, under 90 ms), resume from standby (Blaxel, under 25 ms), an advertised cold start (Modal and Northflank, under a second), or nothing. These measure different things; time your own image.
    
-   ### Scale
    
    Published concurrency ranges from 10 sandboxes on free tiers to 10,000 on Modal Team and Vercel Pro, with Modal testing past a million and Northflank advertising 50,000 or more. Check the limit on the plan you'll buy, how fast you can create sandboxes, and whether paused sandboxes count.
    
-   ### Price
    
    Most platforms bill vCPU-hours and GiB-hours while a sandbox runs. At published rates, a running 2 vCPU, 4 GiB sandbox costs about $0.067 an hour on Northflank, $0.166 on E2B or Daytona, $0.19 on Archil and $0.238 on Modal. Vercel, Cloudflare, Blaxel and Tensorlake bill CPU only while it's busy, which helps agents that wait on a model. Archil's serverless tool calls bill per call instead: $0.00005 at 2 vCPU and 4 GiB, whether the command runs one second or five minutes.
    
-   ### Persistence
    
    Agents wait on models and people. Some platforms pause with memory and processes (Archil, E2B, Blaxel, Tensorlake, Daytona VM sandboxes), some keep only files on stop (Vercel, Daytona containers), and some keep nothing unless you took a snapshot or used a volume (Modal, Northflank, Cloudflare). See [persistent sandbox platforms](https://archil.com/compare/sandbox-providers) for the detail.
    
-   ### Limits and where it runs
    
    Session caps run from 45 minutes (Vercel Hobby) to none (Northflank, Tensorlake Pro). Sizes run from 4 vCPU (Cloudflare) to 288 vCPU (Northflank). Only some platforms offer GPUs, and only some run in your own cloud account or as open source you host.
    

## Each option in detail

### 1. Archil

[docs.archil.com](https://docs.archil.com/compute/sandboxes/introduction)

**Best for:** agents in production that need microVM isolation, fast tool calls billed per call, and a workspace that survives the VM

Archil runs agent code in Firecracker microVMs, each with its own Linux kernel and isolated by KVM, in two modes on one runtime. [Serverless tool calls](https://docs.archil.com/compute/serverless-execution) run each bash, Python or Node command in a fresh microVM with the agent's disk mounted, so there's no sandbox to create, keep warm or delete: from a pool of ready microVMs the median queue time was 37 ms, and a trivial command returned in 82 ms end to end from a laptop, including about 40 ms of internet round trip. A call costs $0.05 per 1,000 with execution included, and can be sized up to 32 vCPU and 64 GiB. [Persistent sandboxes](https://docs.archil.com/compute/sandboxes/introduction), generally available since September 2026, cover long-running processes and services: the root filesystem is a durable Archil disk, so files and installed packages survive stop, pause also keeps memory and processes, and a fork checkpoints and branches the disk in about 13 ms and 33 ms at p50, at any size. On Developer and up, a [firewall](https://docs.archil.com/compute/sandboxes/firewall) applies domain and CIDR rules from default deny to both modes, and credential brokering keeps API keys out of the sandbox.

#### Strengths

-   Firecracker microVM isolation for every tool call and every sandbox; sandboxes can't reach each other, private networks or cloud metadata
-   A published 37 ms median queue time for a tool call in a fresh microVM, with nothing billed between turns
-   The most complete persistence here: a durable root disk, pause with memory and processes, forks in milliseconds, and mounted disks that survive deleting the sandbox
-   One disk mounts read-write on up to 5,000 clients, including other providers' sandboxes, and is readable over an S3-compatible API
-   Docker, cgroup v2 and FUSE work inside a sandbox, and desktops for computer-use agents run as ordinary sandboxes
-   Managed BYOC on AWS, Google Cloud, Azure or bare metal on Enterprise

#### Tradeoffs

-   Concurrency is plan-gated: 20 sandboxes on Developer and 250 on Team (plus 500 for $500 a month), well below Modal's and Vercel's 10,000; Enterprise is unlimited, and tool calls run hundreds in parallel, thousands on request
-   A running 2 vCPU, 4 GiB sandbox costs $0.19 an hour, more than E2B or Daytona ($0.166) and nearly three times Northflank
-   No GPUs documented, no nested virtualization, x86-64 only
-   A sandbox session pauses after 24 hours (30 minutes on Free) with no way to extend it; resuming starts a new session. A tool call stops after 5 minutes
-   The 37 ms figure is for the default image and size; other images and sizes boot on demand, and no persistent sandbox boot time is published
-   Public compute runs in three AWS regions (us-east-1, us-west-2, eu-west-1); elsewhere, BYOC
-   Maintenance can pause running sandboxes, and a hardware failure loses memory and unflushed root-disk writes; not open source

### 2. E2B

[docs.e2b.dev](https://docs.e2b.dev/) · [Archil vs E2B](https://archil.com/compare/e2b)

**Best for:** a general-purpose agent sandbox with Firecracker isolation, exact pause and resume, and an open-source runtime you can host

E2B gives every session a hardware-isolated Firecracker microVM with its own kernel. Pausing saves the filesystem and memory, about 4 seconds per GiB of RAM, and a paused sandbox is kept indefinitely; resuming takes about a second. The catch is the default: a sandbox is killed at its timeout, files included, unless you set it to pause. Continuous runtime is 1 hour on Hobby and 24 hours on Pro. Pick E2B over Archil when you want an Apache-2.0 runtime, plan to self-host with E2B Embed, or already build on its SDKs and integrations.

#### Strengths

-   Firecracker microVM per sandbox on every plan
-   Pause keeps memory and files with no expiry, and only running sandboxes bill for compute
-   Open-source runtime, E2B Embed for a single machine, and BYOC on Enterprise
-   $0.0504 per vCPU-hour and $0.0162 per GiB-hour, billed per second; disk is free

#### Tradeoffs

-   No GPUs
-   100 concurrent sandboxes on Pro, up to 1,100 with add-ons costing up to $1,150 a month
-   Sizes listed from 1 to 8 vCPU and 1 to 8 GiB; disk is 10 GiB on Hobby and 20 GiB on Pro
-   No published start time; Pro is $150 a month and Enterprise has a $3,000 monthly minimum

### 3. Northflank

[northflank.com](https://northflank.com/product/sandboxes)

**Best for:** production sandboxes with no time limit, large sizes and BYOC, at the lowest per-vCPU price here

Northflank runs each CPU sandbox in a microVM on Cloud Hypervisor with a dedicated guest kernel; GPU sandboxes run under gVisor. Sandboxes run until you delete them, billed per second, and go up to 288 vCPU and 2 TB of memory. It advertises a cold start under one second and 50,000 or more sandboxes at once. Egress policies work by domain and IP range, and secrets can be added to outbound requests. The same platform runs in your own VPC on five clouds. Pick it over Archil when you need sessions longer than 24 hours, GPUs, very large sandboxes or the cheapest always-on compute.

#### Strengths

-   No session limit, and sizes far beyond other platforms
-   $0.01667 per vCPU-hour and $0.00833 per GB-hour, the lowest list rates here
-   BYOC on AWS, Google Cloud, Azure, Oracle or bare metal, billed $0.02083 per node vCPU-hour with memory free
-   GPUs from L4 to B200, and multi read-write volumes up to 64 TB

#### Tradeoffs

-   Pausing wipes ephemeral storage; durable state has to live on a volume
-   GPU sandboxes get gVisor, not a microVM
-   The cold start and concurrency figures are marketing claims, and the product page gives both 50,000+ and 100,000+

### 4. Modal

[modal.com](https://modal.com/docs/guide/sandboxes) · [Archil vs Modal](https://archil.com/compare/modal)

**Best for:** agents that need GPUs in the sandbox, RL rollouts, and the highest published concurrency

Modal runs sandboxes on the same platform as its serverless functions and GPUs, under gVisor by default or in a VM runtime with its own kernel. Modal says sandboxes start in under a second even on large custom images, defaults to 250 concurrent sandboxes on Starter and 10,000 on Team, has tested its scheduler with over one million, and sustains creation rates over 10,000 a second. It ranks fourth because the default boundary is gVisor rather than a VM, sandboxes run 5 minutes by default and 24 hours at most with no pause and resume, and sandbox compute bills at three times list price.

#### Strengths

-   GPUs from T4 to B300 in sandboxes
-   The highest published concurrency and creation rate
-   Filesystem and directory snapshots, and Volumes shared across sandboxes
-   Starter includes $30 a month of credit

#### Tradeoffs

-   gVisor shares the host kernel behind a narrow interface; GPU sandboxes can only use gVisor
-   No pause and resume: state outlives a sandbox only in a snapshot or a Volume
-   Sandboxes bill at non-preemptible rates of 3x list price, about $0.24 an hour for 2 vCPU and 4 GiB
-   No self-hosted or BYOC option documented

### 5. Vercel Sandbox

[vercel.com](https://vercel.com/docs/sandbox/pricing) · [Archil vs Vercel Sandbox](https://archil.com/compare/vercel-sandbox)

**Best for:** agents built into Vercel apps, with high concurrency in many regions

Each Vercel sandbox runs in a Firecracker microVM with a dedicated kernel. Pro allows 10,000 concurrent sandboxes and allocates up to 5,000 vCPUs a minute, in 19 regions. Stopping a persistent sandbox saves its filesystem, not memory, and the firewall can deny all traffic, allow domains and CIDRs, or broker credentials. Billing counts Active CPU, so time spent waiting on a model doesn't bill as CPU, though provisioned memory does.

#### Strengths

-   10,000 concurrent sandboxes on Pro, in 19 regions
-   Active CPU billing at $0.128 an hour, plus $0.0212 per GB-hour of memory
-   Credentials brokering, 64 GB of NVMe per sandbox, snapshots and Drives

#### Tradeoffs

-   Sessions last 45 minutes on Hobby and 24 hours on Pro
-   Resume restores files, not memory or running processes
-   Pro tops out at 8 vCPU and 16 GB; 32 vCPU and 64 GB need Enterprise
-   No GPUs or self-hosting documented

### 6. Daytona

[daytona.io](https://www.daytona.io/docs/en/sandboxes) · [Archil vs Daytona](https://archil.com/compare/daytona)

**Best for:** fast-starting, stateful dev environments where container isolation is acceptable, and GPU sandboxes

Daytona advertises sandbox creation under 90 ms. Default sandboxes are containers sharing the host kernel; VM sandboxes add their own kernel, pause with memory and fork. Stopped sandboxes keep their files, sessions have no cap, and sandboxes auto-stop after 15 idle minutes by default. Limits are pools of vCPU, memory and disk per tier rather than a sandbox count.

#### Strengths

-   Under 90 ms creation, and no maximum session length
-   GPU sandboxes from RTX 4090 to B300 and AMD MI355X
-   $0.0504 per vCPU-hour and $0.0162 per GiB-hour, with $200 of free compute

#### Tradeoffs

-   The default sandbox is a container, not a microVM
-   Sandbox disk is 10 GB at most
-   Tier 1 pools only 10 vCPU across all running sandboxes

### 7. Blaxel

[docs.blaxel.ai](https://docs.blaxel.ai/Sandboxes/Overview) · [Archil vs Blaxel](https://archil.com/compare/blaxel)

**Best for:** agents that sit idle most of the time and must resume mid-task in milliseconds

Blaxel sandboxes are VMs that go to standby about 15 seconds after losing their connection, keeping memory, processes and files, and resume in under 25 ms. Standby costs no compute, only snapshot storage at $0.20 per GB-month. Pricing is by memory, $0.0000115 per GB of RAM per second, with CPU scaled to it. Tier 9 lists 100,000 or more sandboxes.

#### Strengths

-   Fastest published resume, with memory restored
-   No compute charge in standby
-   Request-level egress rules and secret injection

#### Tradeoffs

-   The writable filesystem lives in memory, using about half the sandbox's RAM
-   The hypervisor isn't named, and lower tiers cap concurrency at 10 to 200
-   Open network connections don't survive standby

### 8. Tensorlake

[docs.tensorlake.ai](https://docs.tensorlake.ai/sandboxes/introduction)

**Best for:** long-running agent sessions with suspend and resume, and GPU sandboxes, on Active CPU billing

Tensorlake runs CPU sandboxes in microVMs and GPU sandboxes under gVisor. Suspend keeps the filesystem, memory and running processes, and sandboxes go idle after 10 minutes by default. Pro removes the session limit and allows 1,000 concurrent sandboxes of up to 16 vCPU and 64 GB, billed on active CPU with a 20% minimum. Enterprise can run in your VPC or on premises.

#### Strengths

-   Unlimited session length on Pro
-   Active CPU billing at $0.042 per core-hour on Pro, and free network egress
-   SOC 2 Type II and HIPAA, with EU data residency

#### Tradeoffs

-   The hypervisor isn't named, and GPU sandboxes use gVisor
-   Pro costs $250 a month; Free allows one sandbox for 2 hours
-   No exact start time published

### 9. Fly.io Sprites

[docs.fly.io](https://docs.fly.io/sprites)

**Best for:** one long-lived machine per agent or user, with a 100 GB disk

Sprites are hardware-isolated VMs with a 100 GB disk. About 30 seconds after going idle, a Sprite goes warm, suspended with memory in place, and wakes in 100 to 500 ms; later it goes cold, keeping the disk, and wakes in 1 to 2 s. Billing follows actual CPU and memory use.

#### Strengths

-   Memory kept while warm; the disk survives cold
-   Usage-based CPU and memory billing
-   Filesystem checkpoints and domain egress rules

#### Tradeoffs

-   100 running Sprites per organization
-   No GPUs, and each Sprite has its own disk with no shared volume
-   The hypervisor isn't named

### 10. Cloudflare Sandbox

[developers.cloudflare.com](https://developers.cloudflare.com/sandbox/)

**Best for:** short-lived sandboxes driven from Workers, with egress mediated by your Worker

Cloudflare Sandbox runs on Containers, where each instance is a microVM with its own kernel and network. Containers start with no internet access, and outbound traffic leaves only through a handler in your Worker. Cold starts are often 1 to 3 seconds, the largest instance is 4 vCPU and 12 GiB, and CPU bills on active use only.

#### Strengths

-   Deny-by-default egress, controlled from your Worker
-   Active CPU billing, with usage included in the $5 Workers Paid plan
-   15,000 concurrent vCPU per account by default

#### Tradeoffs

-   The disk is ephemeral; snapshots (beta) keep files for 30 days
-   Instances top out at 4 vCPU, 12 GiB and 20 GB of disk
-   No guaranteed run time, and no GPUs

### 11. AWS Lambda MicroVMs

[docs.aws.amazon.com](https://docs.aws.amazon.com/lambda/latest/dg/lambda-microvms-guide.html)

**Best for:** teams that must keep sandboxes and their traffic inside their own AWS account

Lambda MicroVMs run on Lambda's Firecracker virtualization and are built for AI code execution. Lambda snapshots an initialized environment and starts MicroVMs from it; idle MicroVMs suspend with memory and disk for up to 8 hours and bill no compute while suspended.

#### Strengths

-   IAM, VPC egress, PrivateLink and billing stay in one AWS account
-   Resources burst to 4x the configured baseline

#### Tradeoffs

-   No domain allowlist or credential injection documented
-   State is kept for up to 8 hours
-   Snapshot reads, writes and image storage bill separately from compute

### 12. Runloop

[docs.runloop.ai](https://docs.runloop.ai/docs/devboxes/overview)

**Best for:** coding-agent devboxes and benchmarks, with a deploy-to-VPC option

Runloop devboxes are VMs that run your first command within a few seconds, with snapshot, suspend and resume. A devbox lives 1 hour by default, configurable. Deploy to VPC runs the platform in your own cloud account on Enterprise.

#### Strengths

-   Snapshots, suspend and resume, and network policies
-   Deploy to VPC on Enterprise

#### Tradeoffs

-   $0.108 per CPU-hour and $0.0252 per GB-hour, plus $250 a month for Pro
-   The hypervisor, sizes and paid-plan concurrency aren't published
-   Start time is given only as a few seconds

## Tool calls or a sandbox?

Most agent steps are short commands: run a test, grep a repo, execute a Python snippet. A sandbox kept alive for those bills for the time the model spends thinking, unless you pause it between turns and wait for it to come back. A serverless tool call has no lifecycle: Archil starts a fresh microVM with the agent's disk mounted, runs the command, commits the writes and returns. Only files on the disk carry over to the next call.

Use a sandbox when a step needs a process to stay up: a dev server, a database, a REPL, or a command that runs past 5 minutes. On Archil, both kinds of compute mount the same disk, so an agent can use tool calls for most steps and start a sandbox only when it needs one. See [how fast is a serverless tool call](https://archil.com/article/how-fast-is-a-serverless-tool-call-for-an-ai-agent).

## Isolation is one of three controls

A microVM keeps agent code off the host kernel, but an agent with open egress and a key in its environment can still send data out without breaking any boundary. For production, also set deny-by-default egress with only the domains the task needs, and keep credentials in a proxy that adds them to outgoing requests. Archil, Vercel Sandbox, Northflank, Blaxel and E2B (in beta) document credential injection; Cloudflare routes all egress through your Worker.

On Archil's paid plans, a sandbox or tool call created without a policy has unrestricted egress, and defaults differ by platform, so set a policy for untrusted code. See [what isolation agent sandboxes actually use](https://archil.com/article/what-isolation-do-agent-sandboxes-actually-use-firecracker-gvisor-and-containers-compared) and [Firecracker microVM platforms for AI agents](https://archil.com/compare/best-firecracker-microvm-platforms-for-ai-agents).

## Which one should you use?

| If you need | Pick |
| --- | --- |
| An agent's bash and code tools, each call in its own microVM, billed per call | Archil serverless tool calls |
| A workspace that survives the VM, forks per attempt, or is shared by many sandboxes | Archil persistent sandboxes |
| An open-source runtime you host, or exact pause and resume with no expiry | E2B |
| Sessions longer than 24 hours, very large sandboxes, or the cheapest always-on compute | Northflank |
| BYOC on Oracle, or sandboxes next to your own services | Northflank |
| GPUs in the sandbox, or the highest published concurrency | Modal |
| Sandboxes inside a Vercel app, in many regions | Vercel Sandbox |
| The fastest container start for dev environments | Daytona |
| Idle agents that resume mid-task in milliseconds | Blaxel |
| Everything inside your own AWS account | AWS Lambda MicroVMs, or Archil, E2B or Northflank BYOC |

## Questions people ask

### What's the best sandbox for running AI agents in production?

For most agent workloads, Archil: every tool call and sandbox is a Firecracker microVM, tool calls start in a median 37 ms and cost $0.05 per 1,000, and sandboxes keep a durable root disk, pause with memory and fork in milliseconds. E2B is the pick for an open-source runtime you can host. Northflank fits sessions with no time limit, large sizes and BYOC on five clouds, and Modal fits agents that need GPUs or the highest concurrency.

### Which platforms support agent sandboxing?

Dedicated agent sandbox platforms include Archil, E2B, Northflank, Modal, Vercel Sandbox, Daytona, Blaxel, Tensorlake, Fly.io Sprites, Cloudflare Sandbox, AWS Lambda MicroVMs and Runloop. Most give each sandbox its own VM; Modal defaults to gVisor and Daytona to containers. You can also run Firecracker yourself on KVM hosts, but you build scheduling, images, egress control and persistence around it.

### Which agent sandbox solutions are the most secure?

The ones that give each sandbox its own kernel in a microVM and control egress. Archil, E2B, Vercel Sandbox and AWS Lambda MicroVMs use Firecracker; Northflank uses Cloud Hypervisor; Cloudflare, Blaxel, Tensorlake, Fly.io Sprites and Runloop use VMs without naming the hypervisor. Modal's default is gVisor, and Daytona's default is a container. For production, add deny-by-default egress and credential brokering so the sandbox never holds API keys.

### Which agent sandbox scales to the most concurrent sandboxes?

On published figures, Modal: 10,000 concurrent sandboxes on Team, creation over 10,000 a second, and scheduling tested past one million. Vercel Sandbox allows 10,000 on Pro, Northflank advertises 50,000 or more, and Blaxel's top tier lists 100,000 or more. E2B allows up to 1,100 on Pro with add-ons. Archil allows 250 sandboxes on Team (plus 500 for $500 a month) and unlimited on Enterprise, and its tool calls run hundreds in parallel by default, thousands on request.

### What's the cheapest sandbox for AI agents?

For always-on sandboxes, Northflank, at $0.01667 per vCPU-hour and $0.00833 per GB-hour. For agents that mostly wait on a model, platforms that bill CPU only while it's busy (Vercel, Cloudflare, Blaxel, Tensorlake) or that pause without compute charges help. For short commands, Archil's serverless tool calls cost $0.00005 each at 2 vCPU and 4 GiB, execution included, with nothing billed between turns.

### Which AI agent sandboxes support GPUs?

Modal (T4 to B300), Northflank (L4 to B200), Daytona (NVIDIA and AMD) and Tensorlake (H100). Modal, Northflank and Tensorlake run GPU sandboxes under gVisor rather than a microVM. E2B, Archil, Vercel Sandbox, Cloudflare and Fly.io Sprites document no GPU sandboxes.

### How fast do AI agent sandboxes start?

Published figures: Archil tool calls, 37 ms median queue time from a warm pool; Blaxel, under 25 ms to resume from standby; Daytona, under 90 ms to create; Modal and Northflank, under a second; Fly.io Sprites, 100 to 500 ms warm and 1 to 2 s cold; Cloudflare, often 1 to 3 s cold; Runloop, a few seconds. E2B and Vercel publish no start time, and Archil publishes none for persistent sandboxes. These measure different things, so time your own image.

### Can I run an agent sandbox in my own cloud account?

Yes. Northflank runs BYOC on AWS, Google Cloud, Azure, Oracle or bare metal. Archil offers managed BYOC on AWS, Google Cloud, Azure or bare metal on Enterprise, E2B offers BYOC on Enterprise plus an open-source runtime, Daytona offers BYOC on Enterprise, Tensorlake in-VPC or on-premises, and Runloop Deploy to VPC. AWS Lambda MicroVMs always run in your AWS account. Modal, Vercel and Cloudflare document no self-hosted option.

## How we chose

We covered the platforms the most-cited agent sandbox roundups include, and ranked them on six criteria with equal weight: isolation, published start time, published concurrency, price, what survives when the agent goes idle, and limits (session length, size, GPUs and where it runs). Competitor facts come from each vendor's own docs and pricing pages as of the date above. Start times and concurrency are each vendor's own figures and measure different things; where a vendor publishes nothing, the table says so. Hourly prices for a 2 vCPU, 4 GiB sandbox are our arithmetic on published rates. Archil makes Archil, and ranks it first because it leads on isolation, start time and persistence and has the lowest price for short commands; it trails Modal, Vercel and Northflank on published concurrency, Northflank on price for always-on sandboxes, and has no GPUs. If you weight GPUs, open source or session length more heavily, Modal, E2B or Northflank moves up.

## Related

-   [Best persistent sandbox platforms for AI agents: What each sandbox keeps across restarts, and how.](https://archil.com/compare/sandbox-providers)
-   [Best Firecracker microVM platforms for AI agents: Isolation, egress and credential controls for running untrusted agent code.](https://archil.com/compare/best-firecracker-microvm-platforms-for-ai-agents)
-   [Modal vs E2B vs Daytona vs Archil: Four sandbox platforms ranked for agent loops.](https://archil.com/compare/modal-vs-e2b-vs-daytona)
-   [Best E2B alternatives with persistent storage: Sandboxes that keep an agent's files after a stop or timeout.](https://archil.com/compare/best-e2b-alternatives-with-persistent-storage)
-   [Best platforms for long-running AI agents: Session limits, pause and resume, and what survives a restart.](https://archil.com/compare/best-platforms-for-long-running-ai-agents)

Or see [every comparison](https://archil.com/compare).
