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

# Introduction

> Run code, applications, and agents in isolated cloud environments.

Hyperbrowser sandboxes are isolated cloud environments for running code, applications, and agents.

Choose a sandbox for your workload:

* **CPU sandboxes** run Linux applications and support startup times of less than 50 ms.
* **[GPU sandboxes](https://hyperbrowser.ai/docs/sandboxes/gpu.md)** run CUDA workloads with one or more GPUs. Contact us for access.
* **[macOS sandboxes (Beta)](https://hyperbrowser.ai/docs/sandboxes/macos.md)** provide a Mac desktop and persistent disk. Access is enabled on request.

The example below creates a CPU sandbox. GPU and macOS sandboxes have their own setup steps and can take several minutes to start.

## Prerequisites

Install the SDK for your language or the `hx` CLI, then configure your API key. See [Install](https://hyperbrowser.ai/docs/sandboxes/install.md) for the full Node.js, Python, macOS, Linux, and Windows instructions.

## Quick Example

```typescript Node.js theme={null}
const sandbox = await client.sandboxes.create({
  imageName: "node",
  timeoutMinutes: 30,
});

const result = await sandbox.exec("node -e 'console.log(\"hello world\")'");
console.log(result.stdout);
```

```python Python 1.0+ theme={null}
sandbox = client.sandboxes.create(
    {
        "image_name": "python",
        "timeout_minutes": 30,
    }
)

result = sandbox.exec("""python3 -c 'print("hello world")'""")
print(result.stdout)
```

```python Python (legacy) theme={null}
from hyperbrowser.models import CreateSandboxParams

sandbox = client.sandboxes.create(
    CreateSandboxParams(
        image_name="python",
        timeout_minutes=30,
    )
)

result = sandbox.exec("""python3 -c 'print("hello world")'""")
print(result.stdout)
```

```bash CLI theme={null}
sandbox_id=$(hx --json vm create node | jq -r '.data.id')
hx vm exec "$sandbox_id" 'node -e "console.log(\"hello world\")"'
hx vm stop "$sandbox_id"
```

## Start Here

> [card] [Creating Sandboxes](https://hyperbrowser.ai/docs/sandboxes/create.md)
>
> Create your first sandbox with Node, Python or CLI.

> [card] [GPU sandboxes](https://hyperbrowser.ai/docs/sandboxes/gpu.md)
>
> Build a GPU image and run a CUDA workload.

> [card] [Base Images](https://hyperbrowser.ai/docs/sandboxes/base-images.md)
>
> Choose from a list of base images and get started.

> [card] [Custom Images](https://hyperbrowser.ai/docs/sandboxes/custom-images.md)
>
> Build and upload your own Docker based runtime image with the CLI.

> [card] [Local Filesystem](https://hyperbrowser.ai/docs/sandboxes/filesystem/overview.md)
>
> Learn how to access your sandbox's local filesystem and stream data.

> [card] [Volumes](https://hyperbrowser.ai/docs/sandboxes/volumes.md)
>
> Create persistent volumes and mount them into sandboxes at launch.


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