Build your own agent sandbox infrastructure

E2B-style computers for agents: lifecycle, bin packing, copy-on-write snapshots, egress rules and warm pools.

E2B, Daytona, Modal Sandboxes, Morph and the runtimes behind Codex and Claude Code on the web give each agent its own throwaway machine (often a Firecracker microVM) that starts in under a second, can be snapshotted and forked, and cannot reach what it shouldn’t.

About 780 minutes across 6 stages. Skills: State machines, Bin packing, Copy-on-write, Network policy, Capacity planning.

The guides are part of licode Club.

Stages

  1. The sandbox lifecycle.
  2. Place sandboxes on hosts.
  3. Layered filesystems with snapshots and forks.
  4. Decide network access.
  5. Timeouts and output caps.
  6. Warm pools and idle reaping.