On this page · 12 min
Why teams want a VM per agent workload
Teams want a VM per workload because the boundary decides what an escape takes, and agent code is code nobody reviewed. Picture a coding agent fixing a bug from a GitHub issue. The issue asks it to install a package first, and the package's install script carries an exploit for a Linux kernel bug. Whether that script reaches the host, and the other customers' sandboxes on it, depends on what sits between it and the host's kernel. (What it can send out over the network is a separate control, covered below.)
Every program asks the operating system's kernel for everything it does: opening files, starting processes, opening connections. A container uses kernel features called namespaces to give the code its own view of files, processes and network, but the host's kernel still answers all of those requests, so a bug in that kernel, or in the container runtime that sets it up, is a path out. A virtual machine (VM) gives the code its own kernel on virtual hardware. Code that breaks that kernel still has to break the hypervisor, the layer that runs the VMs, before it reaches the host.
A microVM is a small VM that leaves out the hardware a server doesn't need, so it boots fast enough to give every task its own. On Linux, microVMs use KVM, the virtualization built into the kernel. KVM needs hardware support, which means a bare-metal server or a cloud VM with nested virtualization switched on, so many ordinary cloud VMs can't run them at all.
For code you wrote and trust, a container is fine and lighter to run. For LLM-written or user-submitted code that runs behind your API, give each workload its own kernel.
boxd vs the Daytona sandbox: where the VM sits
The deciding difference is where the VM sits in each product. boxd runs every machine as a KVM microVM with its own kernel from the first boot. The Daytona sandbox gives you both kinds of boundary, but the default is a container, and the VM is the path with more conditions. Most of the other differences follow from that, and from how long each product expects a sandbox to live.
How the Daytona sandbox works today
You create a sandbox from the SDK or the API, run commands and code in it, and stop or delete it when you're done. Daytona's isolation docs describe the default as an "isolated container with dedicated namespaces and enforced resource limits", and its Linux VM and Windows sandboxes as a "full virtual machine with its own kernel".
Before you plan around the VM path, know how it differs:
- VM sandboxes start from snapshots. Daytona's VM sandbox docs say they "can currently only be created from existing VM snapshots": Daytona's own, or a Linux VM snapshot you create. Windows comes as Daytona's snapshots only, and declarative image builds work for containers only. Running VMs inside a VM sandbox (nested KVM) has to be enabled for your organization.
- Memory survives only on VMs. Stopping any sandbox clears its memory and keeps its files. Pause, which keeps memory and running processes, works on VM sandboxes only, and so do fork and hot snapshots (snapshots that include memory).
Sizes are capped on both paths. Each non-GPU sandbox gets at most 4 vCPUs, 8 GB of RAM and 10 GB of disk, and the default is 1 vCPU, 1 GB and 3 GiB.
Check the lifecycle defaults before you run long agent tasks. A container sandbox stops after 15 minutes without activity unless you change it, and setting the auto-stop interval to 0 lets it run indefinitely; VM sandboxes pause after 60 minutes instead. GPU sandboxes are deleted when they stop.
Is Daytona open source?
It was, and the old code still is. The Daytona GitHub repository was archived on 3 October 2026, and its README says core development moved to a private codebase in June 2026. The public code stays usable under its licence as it is, without updates or fixes. Older comparison pages still describe Daytona as open source under the AGPL, so if open source is why you chose it, check what you'd be relying on.
The differences that decide it
Most rows below favor one side clearly. Network and key controls are the exception, because both products take the same approach. You can give a sandbox an egress allowlist, the list of hosts it may connect to, or block outbound traffic entirely. Secrets stay outside the sandbox, which sees only a placeholder that a proxy swaps for the real key on requests to the hosts you name. So a misled agent can't print or send a real key, and if those controls are why you were looking at alternatives, Daytona already has them.
| boxd | Daytona | |
|---|---|---|
| Default boundary | microVM with its own kernel (KVM) | Container with its own namespaces |
| How you get a VM | Every machine is a VM | From an existing VM snapshot |
| Largest standard non-GPU size | 8 vCPUs, 32 GiB RAM, 100 GB copy-on-write disk | 4 vCPUs, 8 GB RAM, 10 GB disk |
| What survives a pause | Memory, processes and open connections, every machine | Memory and processes, VM sandboxes only |
| How long it can run | No session cap | Containers: indefinitely with auto-stop set to 0; VMs auto-pause after 60 minutes by default |
| Network and keys | Per-machine egress allowlist; secrets held as placeholders, swapped in for the hosts you name | Domain and IP allow lists (custom lists on higher tiers); secrets held as placeholders, swapped in for allowed hosts |
| Where it can run | Frankfurt and New York, or self-hosted, control plane included | Shared US and EU regions, dedicated regions, or your compute (BYOC) on Daytona's control plane |
| GPUs, Windows, macOS | No | Yes |
| SDKs | TypeScript and Python | Python, TypeScript, Ruby, Go, Java |
Other ways to get a VM per workload
E2B also runs every sandbox as a Firecracker microVM and publishes its infrastructure code under Apache-2.0. Its lifetime docs cap continuous runtime by plan, 24 hours on Pro, with pause and resume resetting the clock. If you'd rather own everything, Firecracker or Kata Containers run microVMs on your own servers, provided those servers can run KVM, and then the scheduling, images, networking and cleanup are yours to build.
Where boxd falls short and Daytona is the better choice
boxd falls short where your workload needs hardware or operating systems it doesn't offer, and there Daytona is the better choice. It runs GPU sandboxes with up to 8 GPUs, where each GPU adds up to 16 vCPUs, 192 GB of RAM and 512 GB of disk. It has Windows VM sandboxes and lists macOS sandboxes. If your agent trains or runs models on the GPU, drives a Windows desktop or tests on macOS, stay on Daytona.
It also covers more languages. Daytona lists client libraries for Python, TypeScript, Ruby, Go and Java, plus an API and a CLI; boxd has two SDKs. A Go or Java backend can call Daytona directly and would call boxd through its API.
Daytona's regions go further for teams with their own hardware. Custom regions run on compute you provide, which Daytona calls bring your own compute (BYOC), with no cap on concurrent use beyond what you attach. A team with spare capacity can scale sandboxes on it while Daytona runs the control plane, the service that creates, schedules and tracks sandboxes. Container sandboxes can also be built from a declarative image spec, which is convenient when every task needs a slightly different image. Daytona is also quick to reattach. In the published results of the open-source aisandboxbench harness, Daytona had the fastest reconnect of the providers measured there, which matters when an agent reattaches to its sandbox often.
Where boxd is the better choice
boxd is the better choice when the code is untrusted and the task is long, because the VM boundary and the long lifetime come by default. Three facts carry most of the decision.
Every machine has its own kernel. You don't pick a VM class or start from a VM snapshot, because every boxd machine is a KVM microVM. For a product that runs code from many users, that removes a decision someone can get wrong. Sandboxes with a hardware boundary explains the design in more depth.
Long tasks keep their state. Machine runtime is unlimited, with no session cap. A machine in standby keeps its memory, processes and open connections and resumes in under a millisecond, so an agent that waits an hour for a person's approval resumes with its memory and processes as it left them. Calls it had open to outside services may have timed out by then, so agents should retry those as they would after any network drop. The suspend and resume guide covers pausing by hand and automatically. On Daytona, only VM sandboxes can pause; container sandboxes stop when idle, and a stop clears memory.
Disk and memory have room for large repositories. The largest standard size is 8 vCPUs and 32 GiB of RAM, and each machine gets a 100 GB copy-on-write disk that only grows as data is written. Daytona's limit of 10 GB of disk is tight once an agent clones a large repository and installs its dependencies.
Two more facts matter in specific situations. If data has to stay on your servers, you can self-host boxd as one binary, control plane included, with no Kubernetes to run. Daytona's BYOC puts the compute on your servers but keeps the control plane on Daytona's side. If start time worries you about a VM per task, we measured it. We ran the open-source aisandboxbench harness on our own machines in November 2026, 100 runs per test, taking medians from a caller near each region (Frankfurt and New York). A new boxd machine ran its first command in a median 0.36 s, and starting a machine from a snapshot took 0.46 s in Frankfurt. We set those medians against the published results for the other providers. boxd ranked first of nine on cold start and on running a command. It also ranked first on pause and resume, starting a dev server and 100 agent tool calls. Our numbers come from our own run rather than the published one, so treat the ranking as our measurement and rerun the harness against your shortlist.
Which should you pick?
Two separate questions decide it: whose code runs, and what the workload needs from the machine. The first tells you if you need a VM at all, and the second tells you which one.
- Pick boxd if you run LLM-written or user code behind an API and tasks run for hours, since every machine gets its own kernel and keeps its memory while idle. It's also the pick if you need more than Daytona's size limit or the control plane on your own servers.
- Switch to Daytona VM sandboxes if you're already on Daytona, your environment fits a VM snapshot, and 4 vCPUs, 8 GB of RAM and 10 GB of disk are enough. It's the smallest change.
- Stay on Daytona entirely if you need GPUs, Windows or macOS, or your backend is Ruby, Go or Java and you want a native SDK.
- Stay on Daytona containers if the code is yours or reviewed, tasks are short, or you depend on declarative image builds. A container is a fine boundary for trusted code.
- Pick E2B if you want a VM per sandbox and infrastructure code you can read under Apache-2.0, and your tasks fit a plan's continuous runtime or pause often.
- Run Firecracker or Kata yourself if you have bare-metal servers, a platform team, and a requirement no hosted service meets.
Try boxd with one machine
Install the boxd CLI:
curl -fsSL https://boxd.sh/downloads/install.sh | shThen create a machine for untrusted code. --isolated keeps it off the default network and away from other isolated machines, and leaves out the in-machine boxd CLI, integrations, agent logins and git credentials:
boxd machine new agent-task-1 --isolatedLimit where it can connect. This replaces the machine's egress allowlist, so it can reach PyPI and GitHub and nothing else; the egress control guide covers wildcards, none and host-bound secrets:
boxd machine egress agent-task-1 pypi.org,files.pythonhosted.org,github.com,*.github.com,*.githubusercontent.comWhen the machine is set up the way you want each task to start, and before any agent process runs on it, save it as a snapshot and start every new task from it. Machines started from the snapshot are isolated too, because isolation is fixed at creation and carried over. Give each new machine its allowlist as well, before you hand it a task:
boxd snapshots save agent-task-1 agent-base
boxd machine new agent-task-2 --from-snapshot agent-base
boxd machine egress agent-task-2 pypi.org,files.pythonhosted.org,github.com,*.github.com,*.githubusercontent.comThe commands reference lists every flag. Start with one machine and one agent task, and compare it with what you run on Daytona today.
Frequently asked
- How does the Daytona sandbox work?
- You create a sandbox from Daytona's SDK, API or CLI, run code and commands in it, and stop or delete it when you're done. By default each sandbox is a Linux container with its own namespaces and resource limits. Linux and Windows VM sandboxes, with their own kernel, are also available but are created from existing VM snapshots.
- Is Daytona open source?
- Not any more for new development. Daytona's GitHub repository was archived on 3 October 2026, and its README says core development moved to a private codebase in June 2026. The archived code stays public and usable under its licence, without updates or fixes.
- Is the Daytona sandbox safe for untrusted code?
- Its default container keeps code apart with namespaces and resource limits, but containers rely on the host's kernel, so a kernel or runtime bug can be a way out. For LLM-written or user-submitted code, use a sandbox with its own kernel: Daytona's VM sandboxes, or a platform where every sandbox is a VM.
- What are the limits of a Daytona sandbox?
- Daytona's docs give organizations a maximum of 4 vCPUs, 8 GB of RAM and 10 GB of disk per non-GPU sandbox, with a default of 1 vCPU, 1 GB and 3 GiB. GPU sandboxes go up to 8 GPUs. Container sandboxes stop after 15 minutes of inactivity unless you change the auto-stop interval.
- When is Daytona the better choice?
- When you need GPU sandboxes, Windows or macOS sandboxes, or a native SDK in Ruby, Go or Java, or want custom regions on your own compute managed by Daytona's control plane. For trusted code and short tasks, its default containers are fine.



