# Best Firecracker microVM platforms for AI agents (2026): Archil, E2B, Vercel Sandbox, AWS Lambda MicroVMs and more

Source: https://archil.com/compare/best-firecracker-microvm-platforms-for-ai-agents

Where to run untrusted code an AI agent writes: Archil, E2B, Vercel Sandbox, AWS Lambda MicroVMs, Fly.io, Northflank, Blaxel, Daytona, Modal and self-hosted Firecracker, ranked on the isolation each one documents, start time, egress and credential controls, what survives when the sandbox is idle, session limits and price.

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

# Best Firecracker microVM platforms for AI agents (2026)

For running an AI agent's code, Archil is the best default: every command runs in a Firecracker microVM with its own kernel, in one of two modes. Serverless tool calls run each bash or Python command in a fresh microVM with the agent's disk mounted, start from a warm pool in a median 37 ms, and bill per call, with no sandbox to manage. Persistent sandboxes cover long-running processes and services, and their root disk outlives the VM, forks in milliseconds and can be shared. Both sit behind an egress firewall with credential brokering. E2B is a strong second, and the better pick if you want an open-source runtime, plan to self-host it, or want its ecosystem: a paused E2B sandbox keeps its memory indefinitely. Vercel Sandbox fits apps already on Vercel, and AWS Lambda MicroVMs keep everything inside your AWS account. Modal isolates with gVisor or a VM runtime rather than Firecracker, and Daytona runs containers by default.

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

## The short list

1.  [Archil](#archil): Best for running an AI agent's code: per-call microVMs for its tools, and persistent sandboxes whose workspace outlives the VM
2.  [E2B](#e2b): Best for teams that want an open-source runtime, plan to self-host, or want E2B's ecosystem and pause that keeps memory indefinitely
3.  [Vercel Sandbox](#vercel-sandbox): Best for agents built into a Vercel app, with sandboxes in many regions
4.  [AWS Lambda MicroVMs](#aws-lambda-microvms): Best for teams that must keep sandboxes and their traffic inside their own AWS account
5.  [Fly.io Machines and Sprites](#fly-io-machines-and-sprites): Best for one long-lived machine per agent or user, close to users in many regions
6.  [Northflank](#northflank): Best for sandboxes with no time limit next to your services, in Northflank's cloud or your own
7.  [Blaxel](#blaxel): Best for agents that sit idle most of the time and must resume mid-task quickly
8.  [Daytona](#daytona): Best for development environments for trusted or semi-trusted code, with VM sandboxes when you need a kernel boundary
9.  [Modal](#modal): Best for agents that need GPUs in the sandbox, where gVisor's boundary is acceptable
10.  [Firecracker, self-hosted](#firecracker-self-hosted): Best for platform teams with bare-metal capacity who need full control of the sandbox stack

## Side by side

| Platform | Isolation | Published start time | Egress controls | Secrets outside the sandbox | When idle | Session limit | Size | Compute price |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Archil | Firecracker microVM with its own kernel, isolated by KVM: a fresh one per tool call, or one per persistent sandbox | Tool calls: 37 ms median queue time from a warm pool (default image and size). Persistent sandbox boot time: not published | Domain and CIDR rules from default deny, for sandboxes and tool calls (Developer and up); sandboxes on Free use a managed allowlist | Credential brokering (Developer and up) | Tool calls leave nothing running; files stay on the disk. Sandboxes: pause keeps memory and disk, and mounted disks survive deletion | Tool calls: 5 minutes per command. Sandboxes: 24 hours, then they pause (30 minutes on Free) | 1 to 32 vCPU and up to 64 GiB, x86-64 | Tool calls: $0.05 per 1,000, execution included, at 2 vCPU and 4 GiB. Sandboxes: $0.055 per vCPU-hour, $0.020 per GiB-hour while running |
| E2B | Firecracker microVM with its own guest kernel, on KVM | No start figure published; resume takes about 1 s | No internet, or allow and deny lists by CIDR; domain rules on ports 80 and 443 | Header injection from stored secrets (public beta) | Pause keeps memory and files, with no time limit | 1 hour (Hobby), 24 hours (Pro) of continuous runtime; pausing resets it | 1 to 8 vCPU and 1 to 8 GiB listed; 10 GiB disk (Hobby), 20 GiB (Pro) | $0.000014 per vCPU-second, $0.0000045 per GiB-second; Pro is $150 a month plus usage |
| Vercel Sandbox | Firecracker microVM with a dedicated kernel | No figure published | Deny all, or domain and CIDR rules | Credentials brokering | Filesystem saved on stop; memory not documented | 45 minutes (Hobby), 24 hours (Pro) | 8 vCPU and 16 GB on Pro, 32 vCPU and 64 GB on Enterprise; 64 GB disk | $0.128 per Active CPU hour, $0.0212 per GB-hour (iad1) |
| AWS Lambda MicroVMs | Firecracker microVM | No figure published; AWS says it starts near-instantly | Public internet by default, or through your VPC under its security groups and network ACLs | Not documented | Suspend keeps memory and disk | Memory and disk state kept for up to 8 hours | Scales up to 4x its baseline at peak | $0.0000276944 per vCPU-second, $0.0000036667 per GB-second in AWS's US East Graviton example |
| Fly.io Machines and Sprites | Machines: Firecracker microVM. Sprites: hardware-isolated microVM | Machines boot in about 300 ms; warm Sprites wake in 100 to 500 ms, cold ones in 1 to 2 s | Sprites: domain allow and deny rules | Sprites connectors keep credentials out of the Sprite | Machines suspend with memory (recommended at 2 GB or less); warm Sprites keep memory, cold ones keep the disk | None documented | Sprites: 8 vCPU, 100 GB disk | Sprites: $0.0385 per CPU-hour, $0.021875 per GB-hour |
| Northflank | Cloud Hypervisor microVM with its own kernel; gVisor for GPU sandboxes | Cold start under 1 s, advertised | Policies by domain name and IP range | Secrets added at egress | Pause wipes ephemeral storage; volumes kept | None | Volumes up to 64 TB | $0.01667 per vCPU-hour, $0.00833 per GB-hour |
| Blaxel | MicroVM with no shared kernel; hypervisor not named in its docs | Resume from standby under 25 ms; boot and connect under 1 s | Rules by domain, HTTP method and path | Managed egress proxy injects secrets | Standby keeps memory and files; resumes in under 25 ms | Not documented | Filesystem's writable layer lives in RAM | Not listed on the pages we read |
| Daytona | Containers by default; VM sandboxes with their own kernel | No labeled figure published | Block all, or allowlists of up to 10 CIDRs and 100 domains; restricted on Tiers 1 and 2 | Not documented | Stop keeps files; VM sandboxes pause with memory | Auto-stops after 15 idle minutes by default | Sandbox disk 10 GB at most | $0.0504 per vCPU-hour, $0.0162 per GiB-hour |
| Modal | gVisor, or a VM runtime with its own kernel | No figure published | Block all, CIDR allowlist, domain allowlist (beta) | Not documented | Lost unless snapshotted or written to a Volume | 5 minutes by default, 24 hours at most | 512 GiB root filesystem on the VM runtime; GPUs on gVisor only | $0.00003942 per physical core-second (2 vCPU), $0.00000667 per GiB-second |
| Firecracker, self-hosted | Firecracker on your own KVM hosts | Under 125 ms boot, per Firecracker's site | Whatever you build | Whatever you build | Snapshots through its API; you orchestrate them | None | Your hardware | Free software (Apache 2.0); you pay for the hosts |

## What to look for

-   ### A kernel per sandbox
    
    In a Firecracker microVM, agent code runs on its own guest kernel, and escaping takes a guest kernel exploit followed by a hypervisor escape. gVisor intercepts system calls in a user-space kernel; standard containers share the host kernel. For code an LLM or a user wrote, a microVM is the safer default.
    
-   ### Egress and credentials
    
    Isolation doesn't stop an agent from sending data out over an allowed network path, or leaking an API key it can read. Look for deny-by-default egress with domain rules, and a proxy that adds credentials to outgoing requests so the sandbox never holds them.
    
-   ### What survives when the agent goes idle
    
    Agents wait on models and people. Some platforms pause with memory intact, some keep only files on stop, and some keep nothing unless you took a snapshot or attached a volume. Check how long saved state lasts, too.
    
-   ### Session and size limits
    
    Session caps range from 45 minutes (Vercel Hobby) to none at all (Northflank). Sizes range from a few vCPUs to 32 vCPU and 64 GiB per sandbox. Pick limits that fit your longest task and your heaviest build.
    
-   ### Start time
    
    An agent loop makes many short tool calls, so per-call start time adds up. Vendors publish different things: Firecracker's own boot figure, a queue time from a warm pool, a resume-from-standby time, an advertised cold start, or nothing at all. Archil publishes the queue time for serverless tool calls but no boot time for persistent sandboxes. Measure on your own image before you design around a number.
    
-   ### Where it runs
    
    Some platforms run only in the vendor's cloud; others offer bring-your-own-cloud deployments or an open-source runtime you host. Running Firecracker yourself gives full control and needs KVM hosts and a team to operate them.
    

## Each option in detail

### 1. Archil

[docs.archil.com](https://docs.archil.com/compute/serverless-execution)

**Best for:** running an AI agent's code: per-call microVMs for its tools, and persistent sandboxes whose workspace outlives the VM

Archil runs agent code in Firecracker microVMs, each with its own Linux kernel and isolated by KVM, in two modes on the same runtime. [Serverless tool calls](https://archil.com/product/tool-calling) run each bash, Python or Node command in a fresh microVM with the agent's disk mounted, so there's no sandbox to create, stop or delete, and each disk runs many commands concurrently. From a pool of ready microVMs, the median `queueMs` (request arrival to command start, including boot and mount) 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; the first call on a new disk took 331 ms at the median. A call costs $0.05 per 1,000, with execution included. For long-running processes and services, [persistent sandboxes](https://archil.com/product/sandboxes) keep their root filesystem on a durable Archil disk: files and installed packages survive stop and pause, 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, and credential brokering adds API keys to outgoing requests so code in the sandbox never sees them.

#### Strengths

-   A published start figure for tool calls: 37 ms median queue time from a warm pool, billed per call with nothing left running
-   The workspace outlives the VM: a disk mounts in tool calls, sandboxes, `archil mount`, the SDKs and the S3 API, and survives deleting a sandbox
-   Sandbox forks branch the root disk in milliseconds at any size, and a disk can be shared across sandboxes
-   Sandboxes can't reach each other, private networks or cloud metadata, and ports stay private until you expose them
-   Docker, cgroup v2 and FUSE work inside a sandbox
-   Sandboxes cost $0.055 per vCPU-hour and $0.020 per GiB-hour while running; a 1 vCPU, 2 GiB sandbox costs $0.095 an hour, and paused or stopped sandboxes accrue no compute charges

#### Tradeoffs

-   A tool call stops after 5 minutes; longer work belongs in a persistent sandbox
-   A sandbox session pauses after 24 hours (30 minutes on Free), and no setting moves that cap; resuming starts a new session
-   The 37 ms figure is for the default image and size; a custom image or size boots on demand and starts slower, and Archil publishes no persistent sandbox boot time
-   On paid plans, sandboxes and tool calls have unrestricted egress unless you set a policy; set one for untrusted code
-   No GPUs, no nested virtualization, and x86-64 only
-   Public regions are three AWS regions (us-east-1, us-west-2, eu-west-1); elsewhere, BYOC
-   A sandbox with mounted disks must be stopped before it can be forked

### 2. E2B

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

**Best for:** teams that want an open-source runtime, plan to self-host, or want E2B's ecosystem and pause that keeps memory indefinitely

E2B runs every agent session in its own Firecracker microVM with its own guest kernel on KVM. Pausing saves the filesystem and memory, including running processes, and a paused sandbox is kept indefinitely; resuming takes about a second. Egress can be turned off or limited to allow and deny lists, and stored secrets can be injected into outgoing HTTPS requests by the egress proxy (in public beta). SDKs cover Python and JavaScript, and E2B works with the OpenAI Agents SDK and LangChain; E2B says more than three billion sandboxes have been started. Pick E2B over Archil when you want an open-source runtime, when you will run the sandboxes yourself, or when your stack is already built on its ecosystem.

#### Strengths

-   Pause with memory and no expiry, plus snapshots and forks
-   Run in E2B's cloud or in your own AWS or GCP account (BYOC in production on both)
-   E2B Embed, a single-node package under Apache 2.0, runs Firecracker sandboxes on one Linux x86-64 machine with KVM
-   No monthly fee on Hobby, with a one-time $100 credit

#### Tradeoffs

-   Continuous runtime is capped at 1 hour on Hobby and 24 hours on Pro; a sandbox that times out is killed with its files unless you set it to pause
-   Disk is 10 GiB on Hobby and 20 GiB on Pro
-   Pro is $150 a month plus usage; Hobby allows 10 concurrent sandboxes and Pro 100
-   Pausing takes about 4 seconds per GiB of RAM
-   No GPU sandboxes

### 3. Vercel Sandbox

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

**Best for:** agents built into a Vercel app, with sandboxes in many regions

Each Vercel sandbox runs in its own Firecracker microVM with a dedicated kernel. Sandboxes are persistent by default: stopping one snapshots its filesystem, and the next call resumes from it. The firewall offers allow-all, deny-all or user-defined rules by domain and CIDR, and can broker credentials, proxy requests to your own server, or answer requests directly. Billing counts Active CPU, so time spent waiting on a model isn't billed as CPU.

#### Strengths

-   Credentials brokering, request proxying and live policy updates
-   19 regions, and up to 10,000 concurrent sandboxes on Pro
-   64 GB of NVMe per sandbox, snapshots and Drives

#### Tradeoffs

-   Sessions last 45 minutes on Hobby and 24 hours on Pro
-   Resume restores the filesystem, not memory or running processes
-   Pro sandboxes top out at 8 vCPU and 16 GB; 32 vCPU and 64 GB need Enterprise
-   Domain rules match the TLS SNI only, so Vercel's docs warn about domain fronting unless you use transform or proxy rules

### 4. 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 the same Firecracker virtualization as Lambda functions and are built for AI code execution and interactive environments. You upload code and a Dockerfile, Lambda snapshots the initialized environment, and `run-microvm` starts a MicroVM from that snapshot. Idle MicroVMs suspend with memory and disk and resume when traffic arrives; AWS says state is kept for up to 8 hours. Each MicroVM gets its own HTTPS endpoint with JWE tokens scoped to ports.

#### Strengths

-   IAM, VPC egress, PrivateLink and billing stay in one AWS account
-   Suspended MicroVMs incur no compute charges
-   Resources can burst to 4x the configured baseline

#### Tradeoffs

-   Outbound traffic is public internet or your VPC; no domain allowlist or credential injection is documented, so you build those with VPC controls
-   State is kept for up to 8 hours
-   Snapshot reads, snapshot writes and image storage bill separately from compute
-   Network connectors can't be changed while a MicroVM runs

### 5. Fly.io Machines and Sprites

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

**Best for:** one long-lived machine per agent or user, close to users in many regions

Fly Machines are Firecracker VMs that boot in about 300 ms, and Fly's docs say they are built to run hostile user code. Suspend snapshots the whole VM, memory included, and resumes in a few hundred milliseconds; Fly recommends it for Machines with 2 GB of memory or less. Sprites are Fly's agent sandboxes: hardware-isolated microVMs with a 100 GB disk that go warm (memory kept, 100 to 500 ms to wake) about 30 seconds after going idle, and later cold (disk kept, 1 to 2 s to wake).

#### Strengths

-   A mature VM platform with no stated run limit
-   Sprites: 100 GB disk billed for bytes written, filesystem checkpoints, and domain egress rules
-   Sprites connectors reach APIs such as GitHub without the credential entering the Sprite

#### Tradeoffs

-   Sprites' docs don't name the hypervisor
-   Suspend is recommended only for Machines with 2 GB of memory or less
-   Each Sprite has its own disk; there's no shared volume

### 6. Northflank

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

**Best for:** sandboxes with no time limit next to your services, in Northflank's cloud or your own

Northflank runs each CPU sandbox in a microVM on Cloud Hypervisor, not Firecracker, with its own guest kernel; GPU sandboxes run under gVisor. Sandboxes run until you delete them, billed per second. Network policies control egress by domain name and IP range, and secrets can be added to outbound requests so they never enter the sandbox.

#### Strengths

-   No session limit
-   BYOC on AWS, Google Cloud, Azure, Oracle or bare metal
-   GPUs, and multi read-write volumes

#### Tradeoffs

-   Pausing wipes ephemeral storage; durable state goes on a volume
-   GPU sandboxes get gVisor, not a microVM
-   The advertised cold start is under 1 s, shown as an example rather than a guarantee

### 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 quickly

Every Blaxel sandbox runs in its own microVM with no shared kernel; the docs don't name the hypervisor. Idle sandboxes go to standby after about 15 seconds without a connection, keeping memory, files and running processes, and resume in under 25 ms. Egress can be restricted by domain, HTTP method and path, and a managed egress proxy injects secrets.

#### Strengths

-   Fast resume from standby, with memory restored
-   Request-level egress rules and secret injection
-   US and Europe regions

#### Tradeoffs

-   The writable filesystem layer lives in memory
-   Rates aren't published on the product page
-   An open network connection doesn't survive standby

### 8. Daytona

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

**Best for:** development environments for trusted or semi-trusted code, with VM sandboxes when you need a kernel boundary

Daytona sandboxes are Linux containers by default, with their own namespaces and enforced resource limits. VM sandboxes add their own kernel and enable pause, resume and fork, but can currently be created only from existing VM snapshots, and the docs don't name the hypervisor. Egress is restricted on Tiers 1 and 2; from Tier 3, you can block all traffic or allow up to 10 CIDRs and 100 domains.

#### Strengths

-   Files kept on stop, and free volumes shared across sandboxes
-   GPU sandboxes, and Windows VM sandboxes
-   Billed per second

#### Tradeoffs

-   The default sandbox is a container, not a microVM
-   No documented credential injection
-   Sandbox disk is 10 GB at most

### 9. 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, where gVisor's boundary is acceptable

Modal doesn't use Firecracker. Sandboxes run under gVisor, a user-space kernel that intercepts system calls, or in a VM runtime with its own Linux kernel; GPU sandboxes require gVisor. Outbound traffic can be blocked, limited to CIDR ranges, or limited to domains (beta, port 443 only).

#### Strengths

-   GPUs in sandboxes
-   Volumes and filesystem snapshots for state
-   Starter plan includes $30 a month of credit

#### Tradeoffs

-   gVisor shares the host kernel behind a narrow interface; it isn't a hardware boundary
-   Sandboxes run 5 minutes by default and 24 hours at most, and nothing survives the end without a snapshot or Volume
-   Sandboxes bill at non-preemptible rates, 3x list price

### 10. Firecracker, self-hosted

[firecracker-microvm.github.io](https://firecracker-microvm.github.io/)

**Best for:** platform teams with bare-metal capacity who need full control of the sandbox stack

Firecracker is open-source virtualization built at AWS for Lambda and Fargate, under the Apache 2.0 license. Its site claims boot in under 125 ms, under 5 MiB of overhead per VM, and up to 150 microVMs per second per host. You supply an uncompressed Linux kernel and an ext4 root filesystem image, wire up networking, and run it under the jailer in production. Everything around it, from scheduling to images, egress policy and snapshot storage, is yours to build.

#### Strengths

-   No vendor; the same VMM the managed platforms use
-   Runs anywhere you have KVM, including on-premises
-   Full control over kernel, images, network and patch policy

#### Tradeoffs

-   Needs read/write access to `/dev/kvm`; on EC2 that means `.metal` instance types
-   No orchestration, image pipeline, egress proxy or persistence comes with it
-   You own patching the host, the guest kernel and Firecracker itself

## Firecracker, other microVMs, gVisor and containers

Firecracker is one virtual machine monitor among several. Northflank uses Cloud Hypervisor, and Kata Containers can run on several hypervisors behind a container API. What matters for agent code is the boundary: each microVM boots its own kernel on KVM, so code running as root in the sandbox still never runs on the host kernel. gVisor narrows the path to the host kernel without removing it, and plain containers share it.

Isolation is one of three controls. An agent with open egress and a key in its environment can send data out without breaking any boundary, so set a deny-by-default egress policy and keep credentials in a proxy outside the sandbox. See [what isolation agent sandboxes actually use](https://archil.com/article/what-isolation-do-agent-sandboxes-actually-use-firecracker-gvisor-and-containers-compared).

## 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 outlives the VM, forked per attempt or shared | Archil persistent sandboxes |
| An open-source runtime, self-hosting, or E2B's ecosystem | E2B |
| Pause that keeps memory with no expiry | E2B |
| Sandboxes inside a Vercel app, in many regions | Vercel Sandbox |
| Everything inside your own AWS account | AWS Lambda MicroVMs |
| One long-lived machine per agent, near users | Fly.io Machines or Sprites |
| No session limit, or BYOC with GPUs | Northflank |
| Idle agents that resume mid-task in milliseconds | Blaxel |
| GPUs inside the sandbox | Modal or Northflank (under gVisor), or Daytona (containers) |
| Full control on your own hardware | Firecracker, self-hosted, or E2B Embed |

## Questions people ask

### Which AI agent sandbox platforms use Firecracker?

E2B, Archil, Vercel Sandbox, Fly.io Machines and AWS Lambda MicroVMs document Firecracker. Northflank uses Cloud Hypervisor microVMs. Blaxel, Daytona's VM sandboxes and Fly.io Sprites run microVMs without naming the hypervisor in their docs. Modal uses gVisor or a VM runtime, and Daytona's default sandboxes are containers.

### What's the best way to run untrusted code generated by an AI agent?

Run it in a microVM with its own kernel, not a container on your own hosts. Start the sandbox with deny-by-default egress and allow only the domains the task needs, keep API keys in an egress proxy that adds them to requests, and keep the sandbox private unless you expose a port. Write results somewhere that outlives the sandbox.

### What's the fastest way to run an agent's bash tool in a microVM?

Run each command in a fresh microVM taken from a pool of ready ones, with the agent's workspace on a disk the microVM mounts, so there's no boot or setup on the hot path and nothing to clean up after. Archil's serverless tool calls work this way: `disk.exec` returned a trivial command in 82 ms at the median end to end from a laptop, including about 40 ms of internet round trip, with a median queue time of 37 ms. A custom image or size boots on demand and takes longer, and a command can run for up to 5 minutes. When the tool needs shell state or a running server between calls, use a persistent sandbox instead. See [how fast is a serverless tool call](https://archil.com/article/how-fast-is-a-serverless-tool-call-for-an-ai-agent).

### Do Archil sandboxes use Firecracker?

Yes. Each persistent sandbox is a dedicated Firecracker microVM with its own Linux kernel, isolated by KVM, and its root filesystem is a durable Archil disk. Serverless tool calls run on the same Firecracker runtime, one fresh microVM per call. See the [sandbox docs](https://docs.archil.com/compute/sandboxes/introduction).

### How fast do Archil tool calls and sandboxes start?

A serverless tool call at the default image and size starts from a pool of ready microVMs: the median `queueMs`, from request arrival to command start, was 37 ms, and the first call on a new disk took 331 ms at the median. Archil doesn't publish a boot time for persistent sandboxes. Forking one checkpoints and branches its disk, about 13 ms and 33 ms at p50. See [serverless execution](https://docs.archil.com/compute/serverless-execution#latency) and [Limits](https://docs.archil.com/reference/limits#latency).

### Is gVisor as safe as a Firecracker microVM?

They protect differently. gVisor handles system calls in a user-space kernel, so the host kernel stays shared behind a narrow interface. A Firecracker microVM boots its own kernel on KVM, so an attacker needs a guest kernel exploit and then a hypervisor escape. gVisor needs no KVM, which is why it runs where hardware virtualization isn't available.

### Can I run Firecracker myself?

Yes. It's Apache 2.0 and needs Linux with read/write access to `/dev/kvm`; on EC2 that means `.metal` instances. You supply the kernel, root filesystem and networking, and build scheduling, images, egress control and persistence around it. E2B Embed packages Firecracker sandboxes for a single machine.

## How we chose

We compared platforms teams use to run agent-written code, and ranked them first on whether they put each sandbox in a microVM, then on how well they fit an agent's mix of short tool calls and longer sessions, egress and credential controls, what survives when the agent is idle, limits and maturity. Competitor facts come from each vendor's own docs and pricing pages as of the date above; where a vendor doesn't say, the table says so. Archil makes Archil, and ranks it first for running agents' code: per-call microVMs for tools and persistent sandboxes on a durable disk cover both halves of an agent loop. E2B is the better pick when you want an open-source runtime, self-hosting or its ecosystem.

## Related

-   [How fast is a serverless tool call for an AI agent?: Measured queue and end-to-end times for a tool call in a fresh microVM.](https://archil.com/article/how-fast-is-a-serverless-tool-call-for-an-ai-agent)
-   [What isolation do agent sandboxes actually use?: Firecracker, gVisor and containers, and what each protects against.](https://archil.com/article/what-isolation-do-agent-sandboxes-actually-use-firecracker-gvisor-and-containers-compared)
-   [Best persistent sandbox platforms for AI agents: What each sandbox keeps across restarts, and how.](https://archil.com/compare/sandbox-providers)
-   [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)

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