Sandboxes

Sandbox Setup

Sandboxes are available on Hatchet Cloud only.

Sandboxes are a Labs feature and may change in future releases. In the dashboard, open Settings, go to Labs Preview and turn on Sandboxes.

Turn sandboxes on

Open your tenant settings, go to Labs Preview and turn on Sandboxes. You need to be a tenant owner or admin to do this, and tenants on the free plan are asked to upgrade first. A Sandboxes menu entry will appear in the sidebar.

Add a provider

Under Sandboxes, choose Connect provider and pick a vendor. Give it a name, which is what your code passes as provider, and paste the vendor's API key.

The optional fields are

FieldWhat it does
Default templateThe image, template or snapshot new sandboxes start from when create does not name one.
Max idle time (seconds)How long a sandbox with no calls stays running before the vendor stops it.
Provider configJSON for vendor-specific settings. See Providers.
LabelsFree-form tags for your own bookkeeping, passed to the vendor and saved as additional metadata in Hatchet tasks.

Wait for the connection to be healthy

The provider page shows the credential check and an event log.

Snapshots

A snapshot is what connect resumes from and what create({ from }) forks from. The snapshotEveryTurn key in Provider config picks when they are taken. It applies to every provider.

On kill only (default)After every change ("snapshotEveryTurn": true)
When a snapshot is takenWhen you call killAfter kill and after every exec, files.write and other call that changes files
What you can fork fromThe state at the last killThe state after any call that changes the workspace, via the snapshotId on its result
CostOne snapshot per sandbox sessionOne snapshot per changing call

Last updated on November 9, 2026

On this page