What’s included
A snapshot captures:- Filesystem: the full disk state of the box at the time of the snapshot.
- Agent configuration: the agent harness, model, and API key settings.
Snapshots are the best way to preserve cloned repositories, installed dependencies, and prepared workspaces. If your box already has a repo checked out, restoring from a snapshot is usually faster than cloning it again.
API
Create a snapshot
Callsnapshot() on a running or paused box. The returned Snapshot object contains the ID you need to restore later.
Snapshots are independent of the source box. Deleting the original box does not delete its snapshots. They remain available for restore at any time.
List snapshots
Retrieve all snapshots belonging to a box.Delete a snapshot
Remove a snapshot by ID.Restore from a snapshot
Box.fromSnapshot() provisions a new box with the exact state from the snapshot. The original box is unaffected. You can branch into multiple boxes from the same checkpoint.