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

# Snapshots off and monitoring off

> Keep no snapshots of a sandbox, or keep no monitoring data, for one sandbox or for the whole account.

| Setting | What boat does not keep | Can you resume the sandbox? |
| - | - | - |
| [Snapshots off](#snapshots-off) | Any copy of the sandbox outside its machine | No. A stop erases it. |
| [Monitoring off](#monitoring-off) | Command and process output, the process list, CPU/RAM samples | Yes |

## Snapshots off

boat never captures a sandbox with snapshots off.

* Nothing of the sandbox is stored outside its machine.
* No background work runs on it.
* A stop erases it.
* You cannot resume it, fork it or save it as a saved snapshot.
* If its machine fails, there is no backup.
* If you create it from a saved snapshot or another sandbox, its snapshot list shows the snapshots of that source with `origin: "template"`. They are copies of the data of the source. boat did not capture them from this sandbox.

### Turn snapshots off for the whole account

Do one of these:

* On the [Account](https://boat.dev/dashboard?tab=account) tab, under **Data & privacy**, turn on **Snapshots off**.
* Send `PATCH /account/data-retention` with `{"snapshotsOff": true}`. This needs a browser sign-in session. An API key gets `403 session_required`.

Every sandbox that you create or fork after this has snapshots off, from any surface. Existing sandboxes keep their setting.

The setting covers the sandboxes that you create, also in an organization. It does not cover sandboxes of other members.

### Turn snapshots off for one sandbox

```bash CLI theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
boat new --no-snapshots
```

```bash curl theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl -sS -X POST "$BOAT_API_BASE/sandboxes" \
  -H "Authorization: Bearer $BOAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"snapshots":false}'
```

```ts TypeScript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
await sandbox.create({ snapshots: false });
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
from boat_sdk.models.create_sandbox_request import CreateSandboxRequest

sandbox.create(create_sandbox_request=CreateSandboxRequest(snapshots=False))
```

## Monitoring off

boat keeps no monitoring data for a sandbox with monitoring off.

| Not kept | Still works |
| - | - |
| [Command history](https://docs.boat.dev/long-running-tasks/command-history.md) and the output of every process | Live output of a running command (attach, read from an offset) |
| The process list | Abuse checks on the machine |
| CPU, RAM, disk and IO samples, and their graphs and [OpenTelemetry](https://docs.boat.dev/opentelemetry.md) metrics | Lifecycle events and webhooks |

* The sandbox runs no process tracer.
* Disk-full alerts need CPU/RAM samples. They are not available for this sandbox.
* The cause shown for a lost sandbox needs CPU/RAM samples. It is not available for this sandbox.
* Its history, processes and metrics calls return `409 monitoring_off`.

### Turn monitoring off for the whole account

Do one of these:

* On the [Account](https://boat.dev/dashboard?tab=account) tab, under **Data & privacy**, turn on **Monitoring off**.
* Send `PATCH /account/data-retention` with `{"monitoringOff": true}`. This needs a browser sign-in session. An API key gets `403 session_required`.

Every sandbox that you create or fork after this has monitoring off. Existing sandboxes keep their setting. The setting covers the sandboxes that you create, also in an organization.

While this setting is on, boat refuses a request with `monitoring: true`. The error is `409 monitoring_off_for_account`.

A fork of a sandbox with monitoring off also has monitoring off. To change this, send `monitoring: true` in the fork request.

### Turn monitoring off for one sandbox

```bash CLI theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
boat new --no-monitoring
```

```bash curl theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl -sS -X POST "$BOAT_API_BASE/sandboxes" \
  -H "Authorization: Bearer $BOAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"monitoring":false}'
```

```ts TypeScript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
await sandbox.create({ monitoring: false });
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
from boat_sdk.models.create_sandbox_request import CreateSandboxRequest

sandbox.create(create_sandbox_request=CreateSandboxRequest(monitoring=False))
```

The sandbox shows `"monitoring": false`.


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