Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

added docker to docs

Dillon DuPontf88e52050e93
diff --git a/docs/content/docs/computer-sdk/computers.mdx b/docs/content/docs/computer-sdk/computers.mdx
index 470e8a6597..336f687f66 100644
--- a/docs/content/docs/computer-sdk/computers.mdx
+++ b/docs/content/docs/computer-sdk/computers.mdx
@@ -45,34 +45,90 @@ This is a cloud container running the Computer Server. This is the easiest & saf
## cua local containers
-cua provides local containers. This can be done using either the Lume CLI (macOS) or Docker CLI (Linux, Windows).
+cua provides local containers using different providers depending on your host operating system:
-### Lume (macOS Only):
+<Tabs items={['Lume (macOS Only)', 'Windows Sandbox (Windows Only)', 'Docker (macOS, Windows, Linux)']}>
+ <Tab value="Lume (macOS Only)">
+
+ 1. Install lume cli
-1. Install lume cli
-
-```bash
-/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"
-```
+ ```bash
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"
+ ```
-2. Start a local cua container
+ 2. Start a local cua container
-```bash
-lume run macos-sequoia-cua:latest
-```
+ ```bash
+ lume run macos-sequoia-cua:latest
+ ```
-3. Connect with Computer
+ 3. Connect with Computer
-<Tabs items={['Python']}>
- <Tab value="Python">
```python
+ from computer import Computer
+
computer = Computer(
os_type="macos",
provider_type="lume",
name="macos-sequoia-cua:latest"
)
- await computer.run() # Connect to the container
+ await computer.run() # Launch & connect to the container
+ ```
+
+ </Tab>
+ <Tab value="Windows Sandbox (Windows Only)">
+
+ 1. Enable Windows Sandbox (requires Windows 10 Pro/Enterprise or Windows 11)
+ 2. Install pywinsandbox dependency
+
+ ```bash
+ pip install -U git+git://github.com/karkason/pywinsandbox.git
+ ```
+
+ 3. Windows Sandbox will be automatically configured when you run the CLI
+
+ ```python
+ from computer import Computer
+
+ computer = Computer(
+ os_type="windows",
+ provider_type="winsandbox",
+ ephemeral=True # Windows Sandbox is always ephemeral
+ )
+
+ await computer.run() # Launch & connect to Windows Sandbox
+ ```
+
+ </Tab>
+ <Tab value="Docker (macOS, Windows, Linux)">
+
+ 1. Install Docker Desktop or Docker Engine
+
+ 2. Build or pull the CUA Ubuntu container
+
+ ```bash
+ # Option 1: Pull from Docker Hub
+ docker pull trycua/cua-ubuntu:latest
+
+ # Option 2: Build locally
+ cd libs/kasm
+ docker build -t cua-ubuntu:latest .
+ ```
+
+ 3. Connect with Computer
+
+ ```python
+ from computer import Computer
+
+ computer = Computer(
+ os_type="linux",
+ provider_type="docker",
+ image="trycua/cua-ubuntu:latest",
+ name="my-cua-container"
+ )
+
+ await computer.run() # Launch & connect to Docker container
```
</Tab>
@@ -93,8 +149,8 @@ Connect with:
<Tab value="Python">
```python
- computer = Computer(use_host_computer_server=True) await
- computer.run() # Connect to the host desktop
+ computer = Computer(use_host_computer_server=True)
+ await computer.run() # Connect to the host desktop
```
diff --git a/docs/content/docs/quickstart-cli.mdx b/docs/content/docs/quickstart-cli.mdx
index ac11c7269b..dd385c625f 100644
--- a/docs/content/docs/quickstart-cli.mdx
+++ b/docs/content/docs/quickstart-cli.mdx
@@ -21,12 +21,62 @@ cua combines Computer (interface) + Agent (AI) for automating desktop apps. The
<Step>
-## Create Your First cua Container
+## Set Up Your Computer Environment
-1. Go to [trycua.com/signin](https://www.trycua.com/signin)
-2. Navigate to **Dashboard > Containers > Create Instance**
-3. Create a **Medium, Ubuntu 22** container
-4. Note your container name and API key
+Choose how you want to run your cua computer. **Cloud containers are recommended** for the easiest setup:
+
+<Tabs items={['☁️ Cloud (Recommended)', 'Lume (macOS Only)', 'Windows Sandbox (Windows Only)', 'Docker (Cross-Platform)']}>
+ <Tab value="☁️ Cloud (Recommended)">
+
+ **Easiest & safest way to get started**
+
+ 1. Go to [trycua.com/signin](https://www.trycua.com/signin)
+ 2. Navigate to **Dashboard > Containers > Create Instance**
+ 3. Create a **Medium, Ubuntu 22** container
+ 4. Note your container name and API key
+
+ Your cloud container will be automatically configured and ready to use.
+
+ </Tab>
+ <Tab value="Lume (macOS Only)">
+
+ 1. Install lume cli
+
+ ```bash
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"
+ ```
+
+ 2. Start a local cua container
+
+ ```bash
+ lume run macos-sequoia-cua:latest
+ ```
+
+ </Tab>
+ <Tab value="Windows Sandbox (Windows Only)">
+
+ 1. Enable Windows Sandbox (requires Windows 10 Pro/Enterprise or Windows 11)
+ 2. Install pywinsandbox dependency
+
+ ```bash
+ pip install -U git+git://github.com/karkason/pywinsandbox.git
+ ```
+
+ 3. Windows Sandbox will be automatically configured when you run the CLI
+
+ </Tab>
+ <Tab value="Docker (Cross-Platform)">
+
+ 1. Install Docker Desktop or Docker Engine
+
+ 2. Pull the CUA Ubuntu container
+
+ ```bash
+ docker pull trycua/cua-ubuntu:latest
+ ```
+
+ </Tab>
+</Tabs>
</Step>
diff --git a/docs/content/docs/quickstart-devs.mdx b/docs/content/docs/quickstart-devs.mdx
index cd002746dc..ea3ef2fa24 100644
--- a/docs/content/docs/quickstart-devs.mdx
+++ b/docs/content/docs/quickstart-devs.mdx
@@ -20,12 +20,62 @@ cua combines Computer (interface) + Agent (AI) for automating desktop apps. Comp
<Step>
-## Create Your First cua Container
+## Set Up Your Computer Environment
+
+Choose how you want to run your cua computer. **Cloud containers are recommended** for the easiest setup:
+
+<Tabs items={['☁️ Cloud (Recommended)', 'Lume (macOS Only)', 'Windows Sandbox (Windows Only)', 'Docker (Cross-Platform)']}>
+ <Tab value="☁️ Cloud (Recommended)">
+
+ **Easiest & safest way to get started**
+
+ 1. Go to [trycua.com/signin](https://www.trycua.com/signin)
+ 2. Navigate to **Dashboard > Containers > Create Instance**
+ 3. Create a **Medium, Ubuntu 22** container
+ 4. Note your container name and API key
+
+ Your cloud container will be automatically configured and ready to use.
-1. Go to [trycua.com/signin](https://www.trycua.com/signin)
-2. Navigate to **Dashboard > Containers > Create Instance**
-3. Create a **Medium, Ubuntu 22** container
-4. Note your container name and API key
+ </Tab>
+ <Tab value="Lume (macOS Only)">
+
+ 1. Install lume cli
+
+ ```bash
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"
+ ```
+
+ 2. Start a local cua container
+
+ ```bash
+ lume run macos-sequoia-cua:latest
+ ```
+
+ </Tab>
+ <Tab value="Windows Sandbox (Windows Only)">
+
+ 1. Enable Windows Sandbox (requires Windows 10 Pro/Enterprise or Windows 11)
+ 2. Install pywinsandbox dependency
+
+ ```bash
+ pip install -U git+git://github.com/karkason/pywinsandbox.git
+ ```
+
+ 3. Windows Sandbox will be automatically configured when you run the CLI
+
+ </Tab>
+ <Tab value="Docker (Cross-Platform)">
+
+ 1. Install Docker Desktop or Docker Engine
+
+ 2. Pull the CUA Ubuntu container
+
+ ```bash
+ docker pull trycua/cua-ubuntu:latest
+ ```
+
+ </Tab>
+</Tabs>
</Step>
diff --git a/docs/content/docs/quickstart-ui.mdx b/docs/content/docs/quickstart-ui.mdx
index fb7a2b0d72..ad6ea39649 100644
--- a/docs/content/docs/quickstart-ui.mdx
+++ b/docs/content/docs/quickstart-ui.mdx
@@ -21,12 +21,62 @@ cua combines Computer (interface) + Agent (AI) for automating desktop apps. The
<Step>
-## Create Your First cua Container
+## Set Up Your Computer Environment
-1. Go to [trycua.com/signin](https://www.trycua.com/signin)
-2. Navigate to **Dashboard > Containers > Create Instance**
-3. Create a **Medium, Ubuntu 22** container
-4. Note your container name and API key
+Choose how you want to run your cua computer. **Cloud containers are recommended** for the easiest setup:
+
+<Tabs items={['☁️ Cloud (Recommended)', 'Lume (macOS Only)', 'Windows Sandbox (Windows Only)', 'Docker (Cross-Platform)']}>
+ <Tab value="☁️ Cloud (Recommended)">
+
+ **Easiest & safest way to get started**
+
+ 1. Go to [trycua.com/signin](https://www.trycua.com/signin)
+ 2. Navigate to **Dashboard > Containers > Create Instance**
+ 3. Create a **Medium, Ubuntu 22** container
+ 4. Note your container name and API key
+
+ Your cloud container will be automatically configured and ready to use.
+
+ </Tab>
+ <Tab value="Lume (macOS Only)">
+
+ 1. Install lume cli
+
+ ```bash
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"
+ ```
+
+ 2. Start a local cua container
+
+ ```bash
+ lume run macos-sequoia-cua:latest
+ ```
+
+ </Tab>
+ <Tab value="Windows Sandbox (Windows Only)">
+
+ 1. Enable Windows Sandbox (requires Windows 10 Pro/Enterprise or Windows 11)
+ 2. Install pywinsandbox dependency
+
+ ```bash
+ pip install -U git+git://github.com/karkason/pywinsandbox.git
+ ```
+
+ 3. Windows Sandbox will be automatically configured when you run the CLI
+
+ </Tab>
+ <Tab value="Docker (Cross-Platform)">
+
+ 1. Install Docker Desktop or Docker Engine
+
+ 2. Pull the CUA Ubuntu container
+
+ ```bash
+ docker pull trycua/cua-ubuntu:latest
+ ```
+
+ </Tab>
+</Tabs>
</Step>