Automatic and saved snapshots
Save a saved snapshot
- Create a sandbox. Install everything: runtimes, packages, your app.
- Save it with
boat snapshot <id> <name>. This saves the disk as it is now, under the name. - Start each new sandbox with
boat new --from <name>.
$BOAT_API_BASE is https://boat.dev/api/v1. In Python, from is a reserved word, so the field is var_from.
currentworks only in a terminal that has the boat shell integration. In scripts, pass the sandbox id.- If the sandbox runs, the save takes a new snapshot of its disk. The call returns at once with status
saving. The capture runs after that, in the background. A file that is on the disk when you run the command is in the save. - A write after the call can also land in the save. To save an exact state, wait until
getSavedSnapshotshowsreadybefore you write again. - If the sandbox is stopped, the save uses its last snapshot.
- The save does not run your pre-stop command.
boat snapshotsshows the size of each saved snapshot.
A saved snapshot does not depend on its sandbox
A saved snapshot is a full copy. The source sandbox can change, stop or be deleted. The name still deploys the exact disk that you saved. A saved snapshot does not expire.Make many copies
To start many sandboxes with the same disk, save a saved snapshot one time. Then start each sandbox with--from. Do not fork a running sandbox again and again: each fork gets a slightly different disk.
Each start counts against your start limits. Above a limit, the start fails with 429 rate_limited.
The example below paces for the $20 plan. Change the wait for your plan.
- To get an answer at once when no machine is free, add
--fail-fast. Read Fail fast when no machine is free. - To retry a create safely, send an
Idempotency-Keyheader. A retry with the same key returns the same sandbox. - During the free trial, you can run 2 sandboxes at once. Read Free trial.
Update a saved snapshot
Save the same name again:- Resume the sandbox, or use any sandbox that has the setup you want.
- Update your tools.
- Run
boat snapshot <id> <name>with the same name.
web-stack-v2.
Saved snapshots and environments
A saved snapshot holds the disk. An environment holds the settings. Most setups use both.
A simple rule: what you put in a Dockerfile goes in a saved snapshot. What you put in a
.env file goes in an environment. Use both together:
Saved snapshot pricing
Each account and each organization has included saved snapshots: 10 for every $20 of plan per seat, and never fewer than 10. A $100 plan includes 50. You cannot save a snapshot during the free trial. Saved snapshots that you already have stay free. You can keep more. Each saved snapshot above the included count costs $0.056 a day ($1.68 for 30 days).- boat takes this cost each day from your wallet. The plan’s included VM time does not pay it.
- When you remove a saved snapshot, it stops costing from the next day.
- A save goes to your active organization, or to the one that you pass with
--org. All members of an organization share its included saved snapshots. See Team images. - If a member leaves an organization, the organization keeps the saved snapshots that the member saved for it.
- To save a new saved snapshot above the included count, the wallet needs money. With an empty wallet, the save fails with
credit_required. - With zero data retention on, you cannot save a saved snapshot.
boat snapshots shows how many saved snapshots you keep and their monthly cost. The API gives the same numbers in allowance on GET /saved-snapshots.
When your wallet is empty
- Your sandboxes get the usual grace period. Read Why did my sandbox stop?.
- Your saved snapshots above the included count get 7 days.
- boat sends you an email. It lists these saved snapshots and the date that boat deletes them. boat sends a reminder one day before.
- If your wallet is still empty on that date, boat deletes them.
boat wallet pay 20. You can also remove saved snapshots until you are at or below the included count.
Team images: saved snapshots of an organization
A saved snapshot that you save under an organization belongs to the organization. Every member sees it inboat snapshots and starts sandboxes from it. No share code is necessary.
- The name counts on the organization’s allowance, not on yours.
- Any member can save the name again to update it.
- The member who saved it, or an owner or admin of the organization, can remove it or make a share code.
- It holds the disk of the member who saved it. If that member turns on zero data retention or deletes their account, boat deletes it. If the member only leaves the organization, the organization keeps it.
- A sandbox that a teammate deploys gets none of your logins. Before it opens, boat removes your Claude, Codex and GitHub logins, your SSH keys and your environment secret files from its disk. The teammate’s own environment then applies. Files that you cloned yourself stay.
- Saved snapshots that you saved before 2026-10-22 under
--orgstay personal. Save them again under--orgto make them team images.
Share a saved snapshot with another account
A share code lets another boat account deploy one of your saved snapshots. The other account runsboat new --from <code>. The new sandbox is in their account, and they pay for it.
A share has two values:
- Create the source sandbox.
- Install your tools and save them:
boat snapshot <id> <name>. - Make a code:
boat snapshot share <name>. Give thebsh_...code to the other account.
- boat shows the code one time only, when you make it. boat keeps only a hash of the code.
- If you lose a code, revoke it and make a new one.
- A code has 256 random bits. Nobody can guess it.
- A sandbox in their account, which they pay for.
- None of your per-sandbox variables. Their own environment applies, as with any
boat new. To use no environment, they sendnoEnv: true(--no-env).
A wrong or revoked code fails with
404 snapshot_not_found.
API keys need these scopes: