All comparisons

Modal vs E2B vs Daytona vs Archil for AI agent sandboxes (2026)

For agent workloads, rank on five things: isolation, what survives between steps, forking and sharing a workspace, how fast a command starts, and price when the agent is idle most of the time. On those, Archil comes first: a serverless tool call runs each command in a fresh Firecracker microVM with the agent's disk mounted, starting in 37 ms at the median, for $0.05 per 1,000 calls, and its persistent sandboxes boot from a durable disk that forks in milliseconds. E2B is the best general default for many teams, with Firecracker isolation, pause that keeps memory indefinitely, an open-source runtime and the widest adoption. Daytona suits fast-starting, stateful dev environments. Modal is first for GPU workloads.

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

The short list

  1. Archil: Best for agent loops: a bash or Python tool that starts in tens of milliseconds and costs nothing between turns, plus durable sandboxes that fork
  2. E2B: Best for a general-purpose agent sandbox with microVM isolation, exact pause and resume, and an open-source runtime
  3. Daytona: Best for fast-starting, stateful dev environments that stop when idle and come back with their files
  4. Modal: Best for agents that need GPUs, Python-heavy workloads, and very high concurrency

Side by side

PlatformIsolationPublished start timeWhat survives between stepsForking and sharingTime limitsPricingGPUsSDKsSelf-hosting
ArchilFirecracker microVM, own kernel, for tool calls and sandboxesServerless tool call: 37 ms median queue time from a warm pool (default image and size), 82 ms end to end from a laptop. No boot time published for persistent sandboxesTool calls: every file on the disk, committed before the call returns. Sandboxes: files and packages on stop, memory and processes on pause, mounted disks after deletionDisk checkpoint 13 ms, branch 33 ms (p50) at any size; sandbox forks; one disk read-write on up to 5,000 clients, in any provider5 minutes per tool call; sandbox sessions pause after 24 hours (30 minutes on Free)Tool calls $0.05 per 1,000, execution included; sandboxes $0.055 per vCPU-hour, $0.020 per GiB-hour while running; Developer $10 a month minimumNo; x86-64, up to 32 vCPU and 64 GiBTypeScript, Python, disk CLI, RESTManaged BYOC on AWS, Google Cloud, Azure or bare metal (Enterprise); not open source
E2BFirecracker microVM, own kernelNot publishedPause keeps files and memory indefinitely; the default 5-minute timeout kills the sandbox and its filesSnapshots spawn many sandboxes; live fork with processes; Volumes in private beta1 hour continuous on Hobby, 24 hours on Pro; pausing resets itPer second while running: $0.0504 per vCPU-hour, $0.0162 per GiB-hour; Pro $150 a monthNo, CPU onlyJavaScript/TypeScript, PythonApache-2.0 runtime; E2B Embed on one machine; managed BYOC (Enterprise)
DaytonaContainers sharing the host kernel by default; Linux VM sandboxes with their own kernelUnder 90 ms for a container sandboxStop keeps the filesystem; VM sandboxes pause with memory; stopped containers archive after 7 days by defaultVM sandboxes fork with memory; containers snapshot files only; free Volumes shared read-write, last write winsNo cap; auto-stop after 15 idle minutes by defaultPer second: $0.0504 per vCPU-hour, $0.0162 per GiB-hour, storage after 5 GiB free; $200 free computeYes, up to 8 NVIDIA or AMD GPUs; GPU sandboxes are ephemeralPython, TypeScript, Go, Java, RubyBring Your Own Compute: your runners, Daytona's control plane
ModalgVisor by default; VM runtime with its own kernelUnder one second, including large custom imagesNo pause and resume; state survives only in snapshots (30-day default expiry) or VolumesFilesystem, directory and memory (alpha) snapshots; Volumes shared, readers reload, last write wins5 minutes by default, 24 hours maxPer second at max(request, use): $0.1419 per physical core-hour (2 vCPU), $0.0240 per GiB-hour; Team $250 a monthYes, T4 to B300, on the gVisor runtimePython, JavaScript, GoNone documented

What to look for

  • Isolation

    Agents run code a model wrote, so the boundary matters. E2B and Archil run every sandbox in a Firecracker microVM with its own kernel. Modal uses gVisor by default and offers a VM runtime. Daytona's default container sandboxes share the host kernel; its Linux VM sandboxes get their own.

  • What survives between steps

    An agent's next step needs the files it wrote, the packages it installed, and sometimes the processes it left running. Check what a timeout, a stop, a pause and a deleted sandbox each keep, because the defaults differ: E2B's default timeout kills the sandbox and its files, Modal keeps nothing without a snapshot or Volume, and Archil keeps files on a disk that outlives the sandbox.

  • Forking and sharing a workspace

    Parallel attempts need copies of one starting state, and multi-agent setups need several sandboxes on the same files. Look at how a platform forks (memory, files, or both), how long it takes, and whether shared storage mounts read-write in many sandboxes at once, including other providers'.

  • Time to start a command

    An agent loop runs many short commands, so per-command start time adds up. Archil publishes a 37 ms median queue time for a serverless tool call from a warm pool, Daytona under 90 ms for a container sandbox, and Modal under one second. E2B publishes no figure. These measure different things, so time your own workload.

  • Price for bursty agent loops

    Agents think more than they run. A sandbox bills per second while it's up, so idle time between turns costs money unless you pause or stop it. Archil's serverless tool calls bill per call with execution included: a default-size call (2 vCPU, 4 GiB) costs $0.00005 whether it runs for a second or five minutes. The same size sandbox costs $0.1656 an hour on E2B or Daytona while running.

  • Secondary: GPUs

    Modal and Daytona run GPU sandboxes; E2B and Archil are CPU-only. If an agent trains, fine-tunes or profiles CUDA code inside the sandbox, this criterion decides on its own, and Modal comes first.

  • Secondary: open source and self-hosting

    E2B's runtime is Apache-2.0, and E2B Embed runs it on one machine you operate. Daytona's Bring Your Own Compute attaches your runners to its control plane, and its open-source repository is no longer maintained. Archil and E2B offer managed BYOC on Enterprise. Modal documents no self-hosted option.

Each option in detail

Best for: agent loops: a bash or Python tool that starts in tens of milliseconds and costs nothing between turns, plus durable sandboxes that fork

Archil is two products on one disk. Serverless tool calls run each command in a fresh Firecracker microVM with the agent's disk mounted, with no sandbox lifecycle to manage: the median queue time is 37 ms from a pool of ready microVMs, and 82 ms end to end from a laptop including about 40 ms of internet round trip (the first call on a new disk took 331 ms). Each disk runs many commands at once, writes are committed before the call returns, and nothing sits idle between turns, which makes it the natural fit for an agent's bash or Python tool. For long-running processes and services, persistent sandboxes are Firecracker microVMs whose root filesystem is a durable Archil disk: stop keeps files and packages, pause keeps memory and processes, and a fork branches the root disk.

Strengths

  • Tool calls start in 37 ms at the median and cost $0.05 per 1,000, execution included, with no CPU or memory charge between turns
  • Every call and every sandbox is a Firecracker microVM with its own kernel; sandboxes get an egress firewall and credential brokering that keeps API keys out of the sandbox, and tool calls take the same egress rules (Developer plan and above)
  • The workspace is a durable disk: a write is durable when fsync returns, and deleting a sandbox keeps its mounted disks
  • Checkpoint a disk in 13 ms and branch it in 33 ms (p50), at any size; a sandbox without mounted disks forks while running, memory included
  • One disk mounts read-write on up to 5,000 clients, including E2B, Daytona and Modal sandboxes, and is readable over an S3-compatible API
  • Sandboxes cost $0.055 per vCPU-hour and $0.020 per GiB-hour while running; stopped and paused sandboxes don't accrue compute

Tradeoffs

  • A tool call stops after 5 minutes, and each call starts fresh: only files on the disk carry over, not processes or memory
  • Non-default images and sizes boot on demand, so their queue time is higher than 37 ms; no boot time is published for persistent sandboxes
  • No GPUs, x86-64 only, up to 32 vCPU and 64 GiB per sandbox or call
  • Sandbox sessions pause after 24 hours (30 minutes on Free); resuming starts a new session
  • Public compute runs in three AWS regions (us-east-1, us-west-2, eu-west-1); other clouds only through BYOC on Enterprise
  • 250 concurrent sandboxes on Team (plus 500 for $500 a month), below Modal's published limits; not open source

Best for: a general-purpose agent sandbox with microVM isolation, exact pause and resume, and an open-source runtime

For many teams E2B is the best general default. It's the most widely used agent sandbox SDK: its site reports more than 15 million monthly SDK downloads and over 3 billion sandboxes started. Every sandbox is a Firecracker microVM. A paused sandbox keeps its filesystem and memory with no time limit and doesn't count toward concurrency or bill for compute. The catch is the default: a sandbox times out after 5 minutes and is killed with its files unless you set it to pause on timeout.

Strengths

  • Firecracker microVM per sandbox, on every plan
  • Pause keeps memory and files indefinitely; snapshots spawn many sandboxes, and a fork copies a live one with its processes
  • Apache-2.0 runtime you can run yourself with E2B Embed, or managed BYOC in your AWS, GCP or Azure account
  • $0.0504 per vCPU-hour and $0.0162 per GiB-hour, billed per second while running

Tradeoffs

  • No GPUs, including in BYOC
  • Continuous runtime is 1 hour on Hobby and 24 hours on Pro before you must pause
  • Disk is 10 GiB on Hobby and 20 GiB on Pro; Volumes that outlive a sandbox are in private beta, with locking and stale-handle caveats
  • Pro is $150 a month before usage; Hobby gets a one-time $100 credit

Best for: fast-starting, stateful dev environments that stop when idle and come back with their files

Daytona's container sandboxes start in under 90 ms by its own figure, keep their filesystem when stopped, and have no session cap. Linux VM sandboxes add their own kernel, pause with memory, and fork. Daytona also has the widest SDK set here and GPU sandboxes with up to 8 NVIDIA or AMD GPUs. Volumes are free, S3-backed FUSE mounts that many sandboxes share. It ranks below E2B for agent code because the default container sandboxes share the host kernel and can't pause or fork.

Strengths

  • Under 90 ms container starts, and no maximum session length
  • Stopped sandboxes keep their files; VM sandboxes pause with memory and fork
  • GPU sandboxes, on-demand or preemptible, from RTX 4090 to B300 and AMD MI355X
  • SDKs for Python, TypeScript, Go, Java and Ruby; Volumes included at no extra cost

Tradeoffs

  • Default container sandboxes share the host kernel; container sandboxes can't pause or fork
  • Sandbox disk is 3 GiB by default, 10 GB at most; stopped containers archive after 7 days by default
  • Volumes are slower than local disk and not for database files; up to 100 per organization
  • GPU sandboxes are ephemeral; Daytona's open-source repository is no longer maintained

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 or stop 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. Files and installed binaries written to the disk carry over to the next call; nothing else does.

Use a sandbox when a step needs a process to stay up: a dev server, a database, a language server, a REPL, or a command that runs past 5 minutes. Archil's persistent sandboxes, E2B, Daytona and Modal all cover that. 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.

If persistence is the deciding factor

Each of E2B, Daytona and Modal keeps state in its own way, and none of them keeps it outside its own platform. E2B's pause is the most faithful, keeping memory and files indefinitely, but a sandbox killed at its timeout loses both. Daytona keeps files on stop, though stopped containers archive after 7 days. Modal keeps nothing past the sandbox except snapshots and Volumes. Volumes on Daytona and Modal outlive a sandbox, but they mount only in that provider's sandboxes and are last-write-wins.

If the workspace has to survive deletion, be shared by several sandboxes at once, or fork per attempt, put it on an Archil disk. Run the agent on Archil's tool calls or sandboxes, where the disk is the workspace, or keep your current provider and mount an Archil disk inside it.

Mounting works in all three. In E2B, install the client in a template and mount over FUSE as root (guide). In Daytona, it mounts in a default sandbox with no privileged mode (guide). In Modal, mount it in a VM sandbox (runtime="vm"); Functions and sandboxes on the default runtime, GPU sandboxes included, can't mount FUSE, so they read and write the disk through the Archil Python SDK instead (guide). There's also a Vercel Sandbox guide. E2B's and Daytona's own docs list Archil as a storage option.

Two limits apply. Only files written under the mount persist; packages installed on the provider's own root filesystem still go when that sandbox does. And mounting a disk outside Archil needs a paid plan: Free doesn't include external mounts. Writes to a mounted disk are durable when fsync returns, and the disk can be checkpointed and branched on Archil-managed disks on every plan. Branches can't be deleted yet, and there's no merge back into the parent.

Running agents at scale

On published limits, Modal scales furthest: 250 concurrent sandboxes on Starter, 10,000 on Team, creation rates over 10,000 a second, and scheduling tested past one million concurrent sandboxes. E2B allows 10 concurrent sandboxes on Hobby and 100 on Pro, expandable to 1,100 with add-ons, and creates up to 5 a second on Pro. Daytona sizes each organization by a pool of CPU, memory and disk rather than a sandbox count, with 300 to 600 creations a minute by tier, and its custom regions have no concurrency limits.

Archil runs hundreds of serverless tool calls in parallel by default, and raises that to thousands on request; each disk runs many commands at once. Persistent sandboxes are limited to 20 concurrent on Developer and 250 on Team, plus 500 for $500 a month, and unlimited on Enterprise. Paused sandboxes don't count toward E2B's concurrency limit, and stopped or paused sandboxes free Daytona's CPU and memory pool, so agents that sit idle between turns cost less concurrency than their total count suggests.

Which one should you use?

If you needPick
A bash or Python tool for an agent loop, with no sandbox to keep warmArchil serverless tool calls
Workspaces that survive deletion, are shared by many sandboxes, or fork per attemptArchil, or an Archil disk mounted in E2B, Daytona or Modal
A general-purpose agent sandbox with microVM isolation and exact pause and resumeE2B
Self-hosting an open-source runtimeE2B (E2B Embed)
Fast-starting dev environments that keep their files when stoppedDaytona
The most SDK languages (Go, Java, Ruby)Daytona
GPUs in the sandbox, or Python-heavy workloads next to training and inferenceModal
The highest published concurrencyModal

Questions people ask

Which is best for AI agents: Modal, E2B, Daytona or Archil?

For agent loops, Archil: tool calls start in 37 ms at the median, cost $0.05 per 1,000, and run on a disk that keeps, shares and forks the workspace. E2B is the best general default for many teams, with Firecracker isolation, indefinite pause and an open-source runtime. Daytona is best for stateful dev environments that start fast. Modal is best when agents need GPUs or very high concurrency.

What's the fastest way to run an agent's bash tool?

A serverless tool call. On Archil, each call runs in a fresh Firecracker microVM with the agent's disk mounted; the median queue time is 37 ms from a pool of ready microVMs, and 82 ms end to end from a laptop including about 40 ms of internet round trip. There's no sandbox to create, keep warm or pause between turns. Each call starts fresh, so only files on the disk carry over, and a call stops after 5 minutes. If the tool needs a process to stay running between calls, run commands in a persistent sandbox instead.

Which agent sandbox keeps files between sessions?

E2B keeps a paused sandbox's files and memory indefinitely, but kills the sandbox and its files at timeout by default. Daytona keeps files when a sandbox stops. Modal keeps state only in snapshots or Volumes. Archil keeps files on a disk that survives stop, pause and deleting the sandbox, and the same disk mounts in the other three.

Which one is cheapest for an agent that's idle most of the time?

Archil's serverless tool calls bill only for calls: $0.05 per 1,000, execution included, with nothing billed between turns. Sandboxes bill per second while running on all four platforms; E2B, Daytona and Archil stop compute charges when a sandbox is paused or stopped, and Modal sandboxes have no pause.

Do Modal, E2B, Daytona and Archil support GPUs?

Modal and Daytona do. Modal offers GPUs from T4 to B300 on its gVisor runtime; Daytona's GPU sandboxes take up to 8 NVIDIA or AMD GPUs and are ephemeral. E2B and Archil are CPU-only.

How long can a sandbox run on each platform?

Modal: 5 minutes by default, 24 hours at most. E2B: 1 hour of continuous runtime on Hobby and 24 hours on Pro, reset by pausing. Daytona: no cap, but it stops after 15 idle minutes by default. Archil: sandbox sessions pause after 24 hours with their processes intact; a serverless tool call stops after 5 minutes.

Which one starts fastest?

Archil publishes a 37 ms median queue time for a serverless tool call from a warm pool, Daytona under 90 ms for a container sandbox, and Modal under one second, including large custom images. E2B publishes no figure, and Archil publishes no boot time for persistent sandboxes. These measure different things, so time your own workload.

Can I self-host Modal, E2B, Daytona or Archil?

E2B, yes: its runtime is Apache-2.0, and E2B Embed runs on one machine you operate; E2B also offers managed BYOC for Enterprise. Daytona's Bring Your Own Compute runs sandboxes on your runners under Daytona's control plane. Archil offers BYOC on Enterprise, managed by Archil, and isn't open source. Modal's docs describe no self-hosted option.

Can I use an Archil disk with Modal, E2B or Daytona?

Yes. It mounts over FUSE in E2B and Daytona sandboxes and in Modal VM sandboxes; from Modal's default runtime, use the Archil Python SDK. See the guides for E2B, Daytona and Modal.

How we chose

We ranked the four on what agent workloads need: isolation, what survives between steps, forking and sharing a workspace across sandboxes, time to start a command, and price for bursty loops where the agent is idle between turns. GPUs and open source were secondary criteria, which is why Modal ranks last overall but first for GPU workloads, and why E2B's open-source runtime counts in its favor without deciding the order. Facts come from each vendor's own docs and pricing pages as of the date above; start times are each vendor's own figures and measure different things, and where a vendor publishes nothing, the table says so. Archil makes Archil, and ranks it first on these criteria because its serverless tool calls start fast and bill per call, and its disks keep, share and fork the workspace. If you weight GPUs, adoption or self-hosting more heavily, the order changes.