> ## Documentation Index
> Fetch the complete documentation index at: https://vetta.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Snapshots & volumes

> Checkpoint a running VM and fork new computers from it. Persistent volumes are not available.

State on a [computer](https://vetta.sh/docs/computer/index.md) is ephemeral by default — a [destroy](https://vetta.sh/docs/computer/sandbox.md#auto-destroy) tears it down. A checkpoint is the way to make disk state outlive a single computer.

## Checkpoints

A **checkpoint** is a durable snapshot taken **without stopping the VM**. The computer keeps running while its disk state is captured, so you can mark a known-good baseline mid-task and return to it later.

```bash CLI theme={"system"}
naive computer snapshot cmp_...
```

```typescript TypeScript theme={"system"}
const checkpoint = await naive.computers.snapshot(computer.id);
// { snapshot_id: "snp_…", computer_id: "cmp_…", created_at: "…" }
```

```bash cURL theme={"system"}
curl -X POST https://api.vetta.sh/v1/computers/$COMPUTER_ID/snapshot \
  -H "Authorization: Bearer $NAIVE_API_KEY"
```

A checkpoint has no name: its handle is the returned `snapshot_id`. List them with `GET /v1/snapshots` (`naive computer snapshots`, `computers.listSnapshots()`) and delete one with `DELETE /v1/snapshots/{id}` (`naive computer delete-snapshot`, `computers.deleteSnapshot(id)`) — refused while a live computer was restored from it.

## Forks

A **fork** creates a **new computer from a checkpoint**. The fork is an independent computer with its own lifecycle — and it is **billed like a fresh create**: there is no creation fee, just the [10-minute blocks](https://vetta.sh/docs/computer/limits-and-billing.md#the-compute-meter) it is billed while it runs.

```bash CLI theme={"system"}
naive computer create --name box-2 --snapshot snp_0368aa449de84e308959ca72744a3bd5
```

```typescript TypeScript theme={"system"}
const fork = await naive.computers.create({
  name: "box-2",
  snapshot_id: checkpoint.snapshot_id,
});
```

> [!TIP]
>
> Use a checkpoint + fork to explore branches from a common setup: prepare a baseline once, then fork several computers to try different approaches in parallel.

## Persistent volumes

> [!WARNING]
>
> **Not available.** A persistent volume separate from the boot disk is not supported: `volume` on create is refused with `400 validation_failed`, and the CLI has no `--volume` flag. A paused computer already keeps its disk; size it with `disk_gb`, and take a [checkpoint](#checkpoints) to keep state past a destroy. Promote anything you must keep permanently to [Files](https://vetta.sh/docs/capabilities/files.md).

## Pause & resume

Pause and resume map directly onto the runtime's **wake/sleep cycle**. A paused computer keeps its disk and resumes with state intact — and while paused it **bills nothing**. Pausing a computer you created does not refund the rest of its 10-minute block already paid, and any exec, fs, snapshot or execStream call on a paused computer resumes it, so billing restarts. This is the same mechanism the [durable runtime](https://vetta.sh/docs/concepts/runtime.md#idle-costs-storage-not-compute) uses between turns.

```bash CLI theme={"system"}
naive computer pause cmp_...     # stop it; bills nothing while paused
naive computer resume cmp_...    # start it again with state intact
```

| Concept | Stops the VM? | Cost while idle | Survives destroy? |
| - | - | - | - |
| **Checkpoint** | No | Nothing | Yes — it's a separate artifact |
| **Fork** | N/A (new computer) | Per its own lifecycle | It is its own computer |
| **Pause / resume** | Yes (paused) | Nothing | No |

> [card] [Next: networking](https://vetta.sh/docs/computer/networking.md)
>
> Outbound access, HTTP preview URLs, and the coming egress pinning.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.