> ## 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.

# Sandbox & lifecycle

> Execution modes, provisioned resources, and the creating → running → paused → destroyed lifecycle of a computer.

Every [computer](https://vetta.sh/docs/computer/index.md) is a real Linux micro-VM provisioned by Naive Managed Agents' compute layer with a fixed slice of vCPU, memory, and disk. This page covers how much you get, how to override it, and the states a computer moves through over its life.

> [!NOTE]
>
> A fully virtualized **V8-isolate** mode (`mode: "isolate"`) is **coming soon**. Today every computer is a micro-VM; everything below describes it.

## Resources

A computer is provisioned with an explicit slice of **vCPU, memory, and disk** — there are no fixed instance classes. Defaults match the platform default (**2 vCPU / 4 GiB**); raise them per workload up to the ceilings below. Resources are set at create time and priced on what you provisioned while the computer runs.

| Resource | Default | Range |
| - | - | - |
| vCPU | `2` | `1`–`16` |
| Memory | `4096` MiB (4 GiB) | `128`–`65536` MiB |
| Disk | service default | whole GiB, up to `100` |

```bash CLI theme={"system"}
naive computer create --name box --vcpu 4 --memory-mb 8192 --disk-gb 40
```

```typescript TypeScript theme={"system"}
const computer = await naive.computers.create({
  name: "box",
  vcpu: 4,
  memory_mb: 8192,
  disk_gb: 40,
});
```

```bash cURL theme={"system"}
curl https://api.vetta.sh/v1/computers \
  -H "Authorization: Bearer $NAIVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "box", "vcpu": 4, "memory_mb": 8192, "disk_gb": 40 }'
```

## What it costs

There is **no creation fee**, and disk is not metered. A computer you create is billed **ahead, in 10-minute blocks** on its provisioned vCPU and memory: the first block is charged at create, so a computer that runs for 30 seconds pays for up to ten minutes. Create and resume need a balance that covers one block (`402 insufficient_credits` otherwise). A paused computer bills nothing. Rates and the block rules are on [Limits & billing](https://vetta.sh/docs/computer/limits-and-billing.md#the-compute-meter).

## Lifecycle

A computer's `status` is one of five values. Only **running** is billed.

| Status | Meaning |
| - | - |
| `creating` | Provisioning; not yet usable. Poll the computer until it reads `running`. |
| `running` | The VM is live and billed on its provisioned resources. |
| `paused` | Stopped with its disk kept. It bills nothing. |
| `failed` | Provisioning failed; the computer never became usable. Terminal. |
| `destroyed` | Disk and memory are torn down. Terminal. See [Snapshots & volumes](https://vetta.sh/docs/computer/snapshots-and-volumes.md) to keep state past a destroy. |

A paused computer is **not locked**. A command, a file operation or a snapshot on it resumes it first, and it stays `running` — and billed — afterwards. For a computer you created, that resume needs a balance that covers ten minutes of it, like an explicit `resume` (`402 insufficient_credits` otherwise). A `creating`, `failed` or `destroyed` computer refuses work with `409 computer_unavailable`.

> [!TIP]
>
> You rarely pause an agent's computer by hand: it is paused after a few idle minutes and resumed when a session needs it. See [Runtime & durability](https://vetta.sh/docs/concepts/runtime.md).

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

## Auto-destroy

A computer is **automatically destroyed** when it exceeds its **max runtime** of **12 hours**. The limit is fixed; there is no per-computer override.

Running out of money does **not** destroy a computer. When the balance cannot pay its next 10-minute block, or the organization's plan has lapsed, the computer is **paused** with its disk kept, and it can be resumed once the balance covers a block. See [Limits & billing](https://vetta.sh/docs/computer/limits-and-billing.md#the-compute-meter).

> [!WARNING]
>
> Auto-destroy is irreversible and tears down sandbox disk. Anything the agent should keep must be promoted with `publish_file` to [Files](https://vetta.sh/docs/capabilities/files.md) or captured as a [checkpoint](https://vetta.sh/docs/computer/snapshots-and-volumes.md#checkpoints) beforehand.

## Concurrency

There is **no cap on how many computers** an organization runs; only the balance bounds it. Each create needs a balance that covers ten minutes of the new computer at its size (`402 insufficient_credits` otherwise). See [Limits & billing](https://vetta.sh/docs/computer/limits-and-billing.md#concurrency).

## Configuration reference

Fields accepted by `create`:

**vcpu** `integer` (default: 2)

Provisioned vCPU. Range **1–16**.

**memory\_mb** `integer` (default: 4096)

Provisioned memory in **MiB**. Range **128–65536** (0.125–64 GiB).

**disk\_gb** `integer`

Root disk size in whole **GiB**, up to **100**.

**browser** `object | null` (default: null)

Attach a managed browser with its [options](https://vetta.sh/docs/computer/browser.md#configuration-reference); `{}` alone attaches one with the defaults. `true` is refused. See [Browser](https://vetta.sh/docs/computer/browser.md).

**snapshot\_id** `string`

Boot from a [checkpoint](https://vetta.sh/docs/computer/snapshots-and-volumes.md#checkpoints) instead of a clean image.

Any other body field (for example `allow_outbound`, `env`, `metadata`) is rejected with `400 unknown body field`.

> [card] [Next: filesystem](https://vetta.sh/docs/computer/filesystem.md)
>
> Read, write, list, and manage files on the sandbox disk.


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