Skip to main content
A saved snapshot is a copy of a sandbox disk that you save under a name. Each new sandbox that you start from it gets the same disk. Use a saved snapshot as a template: install your tools one time, then start many sandboxes from it.

Automatic and saved snapshots

Save a saved snapshot

  1. Create a sandbox. Install everything: runtimes, packages, your app.
  2. Save it with boat snapshot <id> <name>. This saves the disk as it is now, under the name.
  3. Start each new sandbox with boat new --from <name>.
Each deploy is ready in a few seconds. The time and the cost stay about the same, whatever the saved snapshot holds.
$BOAT_API_BASE is https://boat.dev/api/v1. In Python, from is a reserved word, so the field is var_from.
  • current works 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 getSavedSnapshot shows ready before you write again.
  • If the sandbox is stopped, the save uses its last snapshot.
  • The save does not run your pre-stop command.
  • boat snapshots shows the size of each saved snapshot.
Docker containers and every tagged Docker image are in a saved snapshot. The build cache is not. Read Docker.

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-Key header. 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:
  1. Resume the sandbox, or use any sandbox that has the setup you want.
  2. Update your tools.
  3. Run boat snapshot <id> <name> with the same name.
The name now deploys the new disk. boat removes the old copy. Sandboxes that you already deployed do not change. If the new save fails, the name keeps the last good save. To keep the old version too, save under a new name, for example 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:
This sandbox starts with your tools installed, none of your logins, and one variable of its own.
A deploy from a saved snapshot does not get the environment of the source sandbox. It gets the environment from --environment, or your default environment. So a saved snapshot that you saved while logged in to your GitHub does not give that access to its deploys.A deploy does get the per-sandbox variables of the source, the same as a fork. Each --env KEY=VALUE that you gave the source is set on every deploy, unless the deploy sends its own env. Do not put a secret in --env on a sandbox that you will save as a saved snapshot.

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

  1. Your sandboxes get the usual grace period. Read Why did my sandbox stop?.
  2. Your saved snapshots above the included count get 7 days.
  3. boat sends you an email. It lists these saved snapshots and the date that boat deletes them. boat sends a reminder one day before.
  4. If your wallet is still empty on that date, boat deletes them.
boat never deletes your most recent saved snapshots, up to the included count. To cancel the deletion, add money to the wallet: 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 in boat 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 --org stay personal. Save them again under --org to 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 runs boat new --from <code>. The new sandbox is in their account, and they pay for it. A share has two values:
  1. Create the source sandbox.
  2. Install your tools and save them: boat snapshot <id> <name>.
  3. Make a code: boat snapshot share <name>. Give the bsh_... 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.
Before the other account can use its sandbox, boat removes these from the disk: your logins and API keys, the secret files of your environment, your repository clones, and your SSH authorized keys.boat shares everything else on the disk. This includes secrets that you wrote into files yourself.
The other account gets:
  • 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 send noEnv: true (--no-env).
What happens to a code over time: A wrong or revoked code fails with 404 snapshot_not_found. API keys need these scopes: