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

# Cloudflare Container

> Run captured programs in a Cloudflare Container, from its Durable Object or from anywhere through a relay.

What to install and a runnable Python example. The settings, how the workspace connects and the notes are on [Cloudflare Container](https://docs.mirage.strukto.ai/home/setup/machine/cloudflare_container.md), shared by both SDKs.

## Install

```bash theme={null}
pip install 'mirage-ai[ssh]'
```

## Usage through a relay

```python theme={null}
from mirage import RAMVFS, MountMode, Workspace

ws = Workspace(
    {"/data": RAMVFS()},
    mode=MountMode.EXEC,
    machines={
        "box": {
            "provider": "cloudflare_container",
            "url": "https://mirage-relay.example.workers.dev/box",
            "token": "relay-token",
            "mount_type": "ssh",
            "captures": ["@python", "@external"],
        }
    },
)
await ws.shell("python3 -c 'print(1 + 1)'")
```


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