Snapshots
Snapshots capture the state of a running sandbox, including the filesystem and installed packages. Use snapshots to skip setup time on subsequent runs.
- Faster startups: Skip dependency installation by snapshotting after setup.
- Checkpointing: Save progress on long-running tasks.
- Sharing environments: Give teammates an identical starting point.
Call snapshot() on a running sandbox:
Once you create a snapshot, the sandbox shuts down automatically and becomes unreachable. You don't need to stop it afterwards.
Pass the snapshot ID when creating a new sandbox:
View all snapshots for your project:
Look up a snapshot by ID:
Remove snapshots you no longer need:
- Snapshots expire after 7 days
- See Pricing and Limits for storage costs and limits
Was this helpful?