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

# sandboxes

> floo sandboxes: list your org's running sandboxes by app and tag, read what one printed, tag it, and terminate it.

The sandboxes your programs started with the `floo-sandbox` SDK. The CLI finds
and ends them; it never creates one. How sandboxes work: [Sandboxes](https://getfloo.com/docs/guides/sandboxes.md).

```bash theme={null}
floo sandboxes list
floo sandboxes list --app agents --tag task=build --json
```

`list` shows each sandbox that has not finished, newest first: its id, app, name,
state (`running`, `paused` or `idle`), size and tags, then how many of your plan's
vCPUs are in use.

| Flag | Description |
| - | - |
| `--app APP` | Only this app's sandboxes, by name or UUID. Omitted, the whole org's |
| `--tag NAME=VALUE` | Only sandboxes with this tag. Repeat it: a sandbox must have every one |
| `--json` | Machine-readable response for agents |

## Logs

```bash theme={null}
floo sandboxes logs SANDBOX_ID
```

Prints the last 64 KiB a sandbox's own command printed (the command it was created
with), stdout to stdout and stderr to stderr, whether or not your program already
read it. Its host keeps them while the command runs and for a few minutes after it
ends, and only since the host last updated. A sandbox created without a command has
no logs; read an `exec`'s output from the process it returns.

## Tags

```bash theme={null}
floo sandboxes tag SANDBOX_ID task=build user=ada
floo sandboxes tag SANDBOX_ID --clear
```

The tags you give replace every tag the sandbox had, as the SDK's `set_tags` does.
A sandbox has 32 tags at most, each name 1 to 64 characters and each value 256 at most.

## Terminate

```bash theme={null}
floo sandboxes terminate SANDBOX_ID
floo sandboxes terminate SANDBOX_ID --yes-i-know-this-destroys-data --json
```

Ends the sandbox now: its commands stop and its files are deleted. You type its id
to confirm. In `--json`, CI or a pipe, pass `--yes-i-know-this-destroys-data`.
`--preflight` shows what would end and changes nothing.


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