---
title: Snapshots · Sandboxes docs
description: Save a copy of a sandbox's files and start new sandboxes from it.
url: https://www.quietrobot.ai/docs/sandboxes/snapshots
---

# Snapshots

Save a copy of a sandbox's files and start new sandboxes from it.

> [!NOTE]
> Sandboxes is in early access. It is free to try, some parts are still in testing, and details may change.

> [!PREVIEW]
> Snapshots are built and work in our tests. They are still in testing and not in the product yet.

A snapshot is a saved copy of a sandbox's files: everything in the home folder, `/home/sandbox`, including packages installed there (for example a Python virtual environment or `node_modules`). Use it to set something up once and start many sandboxes from it.

A snapshot holds files only. Memory and running processes aren't saved; for those, use [pause and resume](https://www.quietrobot.ai/docs/sandboxes/pause-and-resume).

## Save one

```bash
curl -s -X POST "$QR_BASE_URL/api/v1/sandboxes/$SBX/snapshots" \
  -H "Authorization: Bearer $QR_API_KEY" -H "Content-Type: application/json" \
  -d '{"name":"python-deps"}'
```

The sandbox keeps running. The call returns when the snapshot is ready:

```json
{ "id": "snp_4c1e7a9b2d3f5e", "name": "python-deps", "status": "ready", "sizeBytes": 48211337, "sourceSandboxId": "sbx_7f3a9c2e1b4d6a", "createdAt": "…" }
```

## Start from one

Pass `snapshotId` when you create a sandbox. It starts with those files in its home folder. Everything else (size, region, network rule, timeout) is set as usual.

```ts
const snap = await sbx.snapshot("python-deps");
const worker = await qr.create({ snapshotId: snap.id, timeoutSec: 600 });
```

The new sandbox's `fromSnapshotId` says where it came from.

## List and delete

| Call | |
|---|---|
| `GET /api/v1/snapshots` | Every snapshot in your organization, newest first. |
| `GET /api/v1/sandboxes/{id}/snapshots` | Snapshots taken from one sandbox. |
| `GET /api/v1/snapshots/{id}` | One snapshot. |
| `DELETE /api/v1/snapshots/{id}` | Delete it. |

Snapshots are kept until you delete them, even after the sandbox they came from is gone.

## Limits

| Plan | Snapshots kept | Largest snapshot (compressed) |
|---|---|---|
| Free | 3 | 1 GB |
| Team | 100 | 5 GB |
| Enterprise | 1,000 | 10 GB |

Over the count you get `403 plan_limit`; delete one first. Over the size you get `413 too_large`.
