Is your organization AI ready? Take the 3-minute test

All articles

Nov 20, 2026

AI Agent Sandboxes: Warm Pools vs Snapshots

When to use a warm pool, snapshot restore or both to cut cold start for AI agent fleets, what CreateOS Sandbox does today, and when you need neither.

CCreateOS

AI Agent Sandboxes: Warm Pools vs Snapshots
On this page

AI Agent Sandboxes: Warm Pools vs Snapshots

Short answer: a warm pool keeps already-booted, generic sandboxes waiting so an agent gets one immediately; a snapshot saves one sandbox's exact state so you can restore it, or fork it, instead of starting from a blank image. Use a warm pool when agents need any fresh environment fast, snapshot restore when they need a specific prior state back, and both when your fleet does both.

CreateOS Sandbox runs agent-written or untrusted code in Firecracker micro-VMs, one per sandbox, each with its own kernel. It is built for teams running fleets of coding agents, computer-use agents or other agent workloads that create and tear down many isolated environments. This post is for engineers deciding how to cut cold start for that kind of fleet.

Key takeaways

  • Cold start is a fleet problem: it hurts when many agents need an environment at once, not when one agent runs occasionally.
  • A warm pool trades idle cost for instant availability. A snapshot trades setup time for a fast return to one known state.
  • CreateOS Sandbox supports pause, resume and fork. Pausing snapshots the full guest state, resume restores that machine, and fork branches a paused sandbox into parallel runs.
  • Pausing stops vCPU billing only. Memory and storage still bill while a sandbox is paused.
  • Outbound network access is open until you set at least one egress rule, then it is deny-by-default. Inbound is closed by default.
  • If your agents run rarely and one at a time, booting on demand is simpler than either technique.

What is agent fleet cold start?

Cold start is the time between "an agent needs to run code" and "an isolated environment is ready to run it." For one agent running a few times a day, the wait is a minor cost. For a fleet, such as a coding agent working many pull requests at once or a queue of computer-use agents, the wait repeats for every concurrent task. The bottleneck is provisioning an isolated, configured machine, not the CPU once it exists.

What is a warm pool for AI agent sandboxes?

A warm pool is a standing set of sandboxes that are already booted, with the base image and runtime loaded, waiting to be assigned. The orchestrator hands an agent a sandbox that already exists instead of booting one on demand. The cost is that you pay to keep those sandboxes running whether or not an agent needs one at that moment. The benefit is near-instant assignment when demand is spiky and a user is waiting.

How does snapshot restore work in CreateOS Sandbox?

Every CreateOS sandbox is a Firecracker micro-VM with its own guest kernel, not a container. Pausing a sandbox writes a Firecracker snapshot of the full guest state, including memory and running processes, and stops vCPU billing; memory and storage keep billing while it is paused. Resuming restores that exact machine from the snapshot instead of booting a new one from a blank image. Forking branches a paused sandbox's state so you can run several variations in parallel from the same starting point and keep the best result. The fork and pause walkthrough shows the full flow.

A snapshot restore returns one specific prior state quickly. It is not a pool of interchangeable sandboxes ready to assign, which is why the two techniques are often combined.

Warm pool or snapshot: which one fixes your cold start?

Decide by what your agents need back:

  • Any fresh, isolated environment, fast: a warm pool of generic sandboxes is the direct fix.
  • The exact state of one earlier session, or several branches of it: snapshot restore and fork are the tools.
  • Both: run a small warm pool for new work and snapshot restore for resuming sessions.

Check the network posture either way. A sandbox's outbound access is open until at least one egress rule is set, then it is deny-by-default; inbound is closed by default. Check the egress rules on a resumed or forked sandbox before it starts making outbound calls. Firecracker also documents that network connections are not guaranteed to survive a resume, so agents should reconnect rather than assume an open socket is still there.

What are the limits of snapshot-based warm starts?

  • A snapshot restores one specific prior state. It does not produce a pool of generic, unused sandboxes; that is what a warm pool is for.
  • Pausing stops vCPU billing only. Memory and storage still bill while a sandbox is paused, so a large inventory of paused sandboxes has a running cost. See sandbox pricing for the per-second rates.
  • Fork branches the same saved state into parallel runs. It does not create unrelated fresh environments.
  • Open network connections may drop across a resume, as noted above.

When do you not need warm pools or snapshots?

If you run one agent, or a few agents that start occasionally rather than at the same time, booting a sandbox on demand is simpler and cheaper than maintaining a pool or a snapshot library. The same holds when each task is one-off: there is no prior state worth restoring. Add a warm pool when you can point to a queue of agent runs waiting for environments, and snapshot restore when agents repeatedly need to resume the same session.

FAQ

What is the difference between a warm pool and a sandbox snapshot? A warm pool is a standing set of already-booted, generic sandboxes ready to assign. A snapshot is a saved copy of one sandbox's exact state, used to restore or branch that session later.

Does pausing a CreateOS sandbox stop all billing? No. Pausing stops vCPU billing only. Memory and storage continue to bill while the sandbox is paused.

Can I run several agents from one snapshot at the same time? Yes, with fork. Forking a paused sandbox branches its saved state so you can run parallel variations from the same starting point, for example several rollouts of one agent task.

Is network access open after a sandbox resumes from a snapshot? Outbound access is open until at least one egress rule is set on the sandbox, then it is deny-by-default. Inbound is closed by default. Check the rules on a resumed or forked sandbox before it makes outbound calls.

Do open network connections survive a resume? Not reliably. Firecracker documents that network connectivity is not guaranteed to be preserved after a resume, so agents should reconnect after restore.

When should I not bother with a warm pool? When agent traffic is low volume or arrives one task at a time. Booting on demand is then simpler and cheaper than keeping capacity standing by.

About CreateOS

CreateOS runs AI agents and the code they write. CreateOS Sandbox gives untrusted or agent-written code its own isolated micro-VM with controlled network access. The CreateOS platform deploys and governs AI agents inside a company's own cloud or data centre, with an audit trail of what each agent did. Start at createos.sh.

Next step

See pause, resume and fork on CreateOS Sandbox, or check per-second rates on sandbox pricing.

Keep reading

All articles

Bring us one stuck workflow.

We take it to governed production with you, on your systems, in weeks, not quarters.