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

# anona-compute idle-pause

> Pause a sandbox once nothing has used it for a while

```text
Set a sandbox's idle-pause time (PUT /v1/sandboxes/{id}/auto-pause).
The sandbox pauses once nothing has used it for DURATION, however much time its
timeout has left. DURATION is a whole number of minutes (15m, 1h, up to 7 days);
"off" turns idle pausing off.

This is not --auto-pause, which decides what happens when the TIMEOUT runs out.
A sandbox can have both.

What counts as use, restarting the clock: a request to any of the sandbox's
ports (except envd's /health), an open terminal, live view, SSH session or byte
pipe, and any process envd started that is still running. CPU the guest burns on
its own does not count, so a sandbox busy on work it started itself still pauses.

Resume it with "anona-compute resume SANDBOX_ID".
```

## Usage

```text
anona-compute idle-pause SANDBOX_ID DURATION [flags]
```

## Flags

| Flag | Type | Description |
| - | - | - |
| `--help`, `-h` | | help for idle-pause |

Global flags (`--api-key`, `--api-url`, `--json`, `--output`, `--profile`, `--request-timeout`, `--verbose`) work on every command; see [anona-compute](/docs/cli/reference/anona-compute.md).


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