Fork flow
The snapshot is captured once regardless of how many forks you request, so forking into many sandboxes costs the same single snapshot of the original.Fork a sandbox
You can fork a running sandbox instance. The method returns a list with one entry per requested fork.Create multiple forks
Usecount to boot several sandboxes from the same snapshot in one call. You can request up to 100 forks at once.
Handle failed forks
Each fork succeeds or fails independently. Instead of throwing on the first failure, the returned list contains a connected sandbox for each fork that started and an error value for each fork that didn’t — so a partial failure doesn’t throw away the successful forks.Fork timeout
ThetimeoutMs (JavaScript) / timeout (Python) option sets how long the new forked sandboxes live and defaults to 5 minutes, like Sandbox.create(). It applies to the forks only — the original sandbox’s expiration is not changed.
Forking vs. Snapshots
Forking is a one-call shortcut for the common snapshot pattern: capture a running sandbox and immediately boot new sandboxes from the capture.
Use forking when you want running copies right now. Use snapshots when you want a durable checkpoint to create sandboxes from later.