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

# Sandbox limits

> How many sandbox vCPUs each floo plan runs at once, sandbox sizes, timeouts, disk and workspace limits, what happens at a limit, and how to run more.

Each floo plan runs a number of sandbox vCPUs at once. Every other sandbox limit is the same on every plan. To run more at once than your plan does, email [team@getfloo.com](mailto:team@getfloo.com).

## vCPUs at once, by plan

Your organization's sandboxes that have a VM attached run as many vCPUs at once as its plan allows. A small sandbox counts 1 vCPU, a medium 2 and a large 4.

| | Starter | Pro | Team | Enterprise |
| - | - | - | - | - |
| Sandbox vCPUs at once | 4 | 16 | 64 | Set in your contract |
| As small sandboxes | 4 | 16 | 64 | |
| As large sandboxes | 1 | 4 | 16 | |

An organization still on Pay as you go runs 16.

Only a sandbox with a VM attached counts, and those are the same seconds that bill. `Sandbox.create` boots nothing, so it never counts. A sandbox whose VM stopped after `keep_warm`, or that is paused, counts nothing, and its file calls still answer from its workspace. A worker and its children count like any other sandbox of your organization.

## What happens at the limit

A call that needs a VM, such as a sandbox's first command, a command after its VM stopped, a resume, or a resize to more vCPUs, raises `ResourceExhaustedError` right away when it would take your organization past its plan. The error says how many vCPUs your sandboxes run and how many your plan allows. Nothing waits and nothing bills.

```python theme={null}
try:
    sb.exec("pytest").wait()
except floo.exception.ResourceExhaustedError:
    ...  # terminate a sandbox you no longer need, or try again once one pauses
```

To get room back, terminate a sandbox you no longer need, or let one pause or stop at `keep_warm`. To run more at once, [upgrade your plan](https://getfloo.com/docs/guides/limits.md#plans) or email [team@getfloo.com](mailto:team@getfloo.com).

## When floo is busy

Your plan's number is the most your organization runs. When floo has no machine free right away, a call that needs a VM waits in line for one, up to 5 minutes, then raises `ResourceExhaustedError`. An organization that holds half of a host's room waits behind one that holds less, so one busy organization cannot take a host from the rest.

## Limits on every plan

| Limit | Value |
| - | - |
| Sizes | Small: 1 vCPU, 512 MiB memory, 4 GiB disk. Medium: 2 vCPUs, 2 GiB, 8 GiB. Large: 4 vCPUs, 4 GiB, 16 GiB. `cpu` and `memory` round up to a size ([details](https://getfloo.com/docs/guides/sandboxes.md#size-a-sandbox)). |
| Run time | `timeout` is 300 seconds unless set, 24 hours at most. A worker alone may set `timeout=None`. |
| Persistent sandbox | Lives until it is terminated, 24 hours at most. |
| Sandboxes an organization keeps | 32 that have not finished, paused ones included. Past that, `Sandbox.create` raises `ResourceExhaustedError` until one finishes or is terminated. |
| Children per worker | 16 at once. |
| Workspace | 64 MiB of file content per sandbox. Larger content lives on the sandbox's disk and needs a VM to read. |
| Disk | What a sandbox's commands write, beside its image, up to its size's disk. A write past that fails with "No space left on device". |
| Wait for a free machine | Up to 5 minutes, then `ResourceExhaustedError`. |

## Run more at once

Email [team@getfloo.com](mailto:team@getfloo.com) with the sizes you run, how many at once, and for how long. An Enterprise contract sets your organization's own number.

## Next steps

> [card] [Sandboxes](https://getfloo.com/docs/guides/sandboxes.md)
>
> Create a sandbox, size it, and run an agent as a worker.

> [card] [Sandbox performance and state](https://getfloo.com/docs/guides/sandbox-performance.md)
>
> Create, boot and resume times measured in production.


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