Features / Forks and templates
Fork a running VM, memory included.
Set up one sandbox: clone the repo, install the dependencies, fill the caches. Then fork it once per task, or save it as a template and start every new sandbox from it. On Cloud Hypervisor, the default engine, a fork copies the memory as well as the disk, so its processes and open browser tabs carry on; it runs about 2 s after you ask and answers on SSH at 2.9 s.
€10 of usage for 30 days · No credit card
curl -fsSL https://pols.so/install.sh | sh- From fork to a running copy, memory included
- 2.0 s
- Save it as a template
- 0.79 s
- From fork to SSH login
- 2.9 s
Times: medians on our sandbox host in Germany. Fork: 3 runs, 11 October 2026. Template and stop: 7 runs, 1 October 2026.
A copy press
The press copies a running block without stopping it. The ram comes down on the source, whose lamp stays lit: that is the snapshot. Then a second block slides out on its own rails with its own identity plate, a running about 2 s later with the source's memory. A template is a plate the bed passes into the rack, which has room for ten.
- The pressA fork starts with a ZFS snapshot of the source's disk and, if it runs on Cloud Hypervisor (the default), of its memory. A running source pauses for under a second and carries on; a stopped one stays as it was.
- Template rackSave a sandbox's disk as a template in 0.79 s and start new sandboxes from it. Ten slots: an org keeps up to 10 templates. Environment variables and vault entries are not kept.
- The forkThe fork runs about 2 s after you ask and answers on SSH at 2.9 s; on Cloud Hypervisor (the default) it has the source's memory, so its processes keep running. It has its own ID, machine ID and SSH host keys. Both disks share every block until one writes to it.
- The sourceA prepared sandbox: repository cloned, dependencies installed. It keeps running while you fork it.
- Bed and railsA fork lands on the same host as its source, with the same size, environment and egress policy unless you set another.
- The benchDisks, snapshots and templates stay on our servers in Germany.
Prepare once, fork per task
Each fork is an independent sandbox with its own ID, machine ID and SSH host keys. The source keeps running, so an agent can try two fixes side by side and you delete the one that failed.
# prepare one sandbox
$ pols new --name base
$ pols exec base -- git clone https://github.com/you/app
$ pols exec base -- bash -lc 'cd app && npm ci'
# one fork per task
$ pols fork base --name fix-login
$ pols fork base --name fix-search
# keep the prepared disk as a template
$ pols template save base app-ready
# new sandboxes start from it, gone after two hours
$ pols new --template app-ready --name pr-142 --ttl 2hHow a fork works
Snapshot
pols snapshots the source's ZFS disk and, if it runs on Cloud Hypervisor (the default), its memory. A running source pauses for under a second, then carries on; a stopped one is left as it was.
Clone
The snapshot is cloned copy-on-write. Both disks share every block until one of them writes to it, so nothing is copied up front.
Restore
The fork resumes from the copied memory with a new machine ID and new SSH host keys, so processes that ran in the source keep running in the fork. A fork of a stopped source, or of a sandbox on the older Incus engine, boots from its disk.
Fork, template or stop?
| Fork | Template | Stop and resume | |
|---|---|---|---|
| You get | A second running sandbox | A saved disk to start new sandboxes from | The same sandbox, later |
| Environment and vault secrets | Kept; add more with --secret | Not kept | Kept |
| Time (median) | About 2 s to running, 2.9 s to SSH | 0.79 s | Stop 0.76 s |
€10 of usage for 30 days · No credit card
Questions
How long until a fork can be used?
A fork of a running sandbox on Cloud Hypervisor (the default) keeps its memory, so processes and open browser tabs carry on in the fork. It runs about 2 s after the fork call and answers on SSH at 2.9 s (medians of 3 runs, 11 October 2026). The source pauses for under a second while its memory is copied. On the older Incus engine a fork copies the disk only.
Can a fork have a different size than its source?
A fork gets its source's size. Resize it with pols resize once it is made; the disk only grows, so a fork can get larger, not smaller.
Does every fork cost a full copy of the disk?
No. A fork is a copy-on-write ZFS clone that shares its source's blocks until one of them writes, so a new fork adds little disk at first. Disk is billed for the space each disk uses, above 10 GiB free per org.
How many forks can I run at once?
Each fork is a sandbox and counts against your org's quotas. Sandboxes in total and running sandboxes are unlimited unless an owner or admin sets a limit in my.pols.so or with pols org limit. Lifecycle calls such as create, fork, stop and resume are limited to 1 a second per org, with bursts of 10.
Does a fork keep its source's TTL?
No. A fork does not inherit its source's expiry. Give it its own with pols fork --ttl, from 1 minute to 30 days; an expiry cannot be changed afterwards.
Can I roll a sandbox back to an earlier state?
Not in place. pols keeps the last three snapshots taken when a sandbox stops, but they are not available through the API yet. To keep a state you can return to, fork the sandbox or save it as a template.
Is a fork of a running database consistent?
A fork of a running sandbox on Cloud Hypervisor (the default) copies its memory and disk at the same moment, while the source is paused, so a running database carries on in the fork where it was. A template keeps only the disk: for a clean template, stop the database or the whole sandbox first.
Start with one machine.
Install the CLI, sign up, and give your agent somewhere to work.
curl -fsSL https://pols.so/install.sh | sh€10 of usage for 30 days · No credit card