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

# anona-compute timeout

> Set how long a sandbox lives from now

> [!NOTE]
>
> `extend` is an alias of `timeout`. It replaces the deadline rather than adding to it, and `never` removes it. See [Extend a sandbox](/docs/concepts/lifecycle.md#extend-a-sandbox).

```text
Set the sandbox timeout (POST /sandboxes/{id}/timeout). The sandbox ends
DURATION from now; each call replaces the previous value. DURATION is a
positive number of seconds or a duration (600, 10m, 2h), or "never" for no
time limit at all (the API's timeout -1, also accepted as "-- -1"). "never"
is refused when your team has a maximum sandbox lifetime.
```

## Usage

```text
anona-compute timeout SANDBOX_ID DURATION [flags]
```

**Aliases:** `timeout`, `extend`

## Flags

| Flag | Type | Description |
| - | - | - |
| `--help`, `-h` | | help for timeout |

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.