# kosa8 checkpoint

Save a restore point you can rewind to

## Usage

```
kosa8 checkpoint SANDBOX
```

Captures the sandbox exactly as it is — memory, running processes and disk —
and remembers it as a named restore point.

Take one before letting an agent do something you might regret. If it goes
wrong, `kosa8 rewind SANDBOX` puts the machine back, still mid-task.

Only the last 10 are kept per sandbox: each one costs a disk clone, so an
agent checkpointing on every step would otherwise fill the disk.

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--label` | string | why you took it, e.g. "before migration" |  |

## Example

```
  kosa8 checkpoint dev
  kosa8 checkpoint dev --label before-upgrade
```

## Subcommands

- [`kosa8 checkpoint ls`](https://docs.kosa8.com/reference/checkpoint-ls.md): List the restore points for a sandbox

---
Source: https://docs.kosa8.com/reference/checkpoint/
