Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
Cleanup docs
f-trycua5fd6c937e88c
diff --git a/docs/content/docs/agent-sdk/agent-loops.mdx b/docs/content/docs/agent-sdk/agent-loops.mdxindex 6cd8daefb6..67fa966d36 100644--- a/docs/content/docs/agent-sdk/agent-loops.mdx+++ b/docs/content/docs/agent-sdk/agent-loops.mdx@@ -23,8 +23,8 @@ async def take_screenshot():async with Computer(os_type="linux",provider_type="cloud",- name="m-linux-h3sj2qbz2a",- api_key=""+ name="your-container-name",+ api_key="your-api-key") as computer:agent = ComputerAgent(diff --git a/docs/content/docs/computer-sdk/computers.mdx b/docs/content/docs/computer-sdk/computers.mdxindex 2a653f46a8..fe9155cec2 100644--- a/docs/content/docs/computer-sdk/computers.mdx+++ b/docs/content/docs/computer-sdk/computers.mdx@@ -9,9 +9,11 @@ Before we can automate apps using AI, we need to first connect to a Computer SerCua Computers are preconfigured virtual machines running the Computer Server. They can be either macOS, Linux, or Windows. They're found in either a cloud-native container, or on your host desktop.-## Cua Cloud Sandbox+## Cloud Sandbox-This is a Cloud Sandbox running the Computer Server. This is the easiest & safest way to get a cua computer, and can be done by going on the trycua.com website.+**Easiest & safest way to get started - works on any host OS**++This is a Cloud Sandbox running the Computer Server. Get a container at [trycua.com](https://www.trycua.com/).<Tabs items={['Python', 'TypeScript']}><Tab value="Python">@@ -45,24 +47,23 @@ This is a Cloud Sandbox running the Computer Server. This is the easiest & safes</Tab></Tabs>-## Cua Local Sandbox+## Linux on Docker++**Run Linux desktop locally on macOS, Windows, or Linux hosts**-Cua provides local sandboxes using different providers depending on your host operating system:+Cua provides two Docker images for running Linux desktops:-<Tabs items={['KASM on Docker (macOS, Windows, Linux)', 'Windows Sandbox (Windows Only)', 'macOS VM (with Lume CLI)']}>- <Tab value="KASM on Docker (macOS, Windows, Linux)">+<Tabs items={['XFCE (Lightweight)', 'KASM (Full-Featured)']}>+ <Tab value="XFCE (Lightweight)">++ **Recommended for most use cases** - lightweight XFCE desktop with Firefox1. Install Docker Desktop or Docker Engine- 2. Build or pull the CUA Ubuntu sandbox+ 2. Pull the CUA XFCE image```bash- # Option 1: Pull from Docker Hub- docker pull --platform=linux/amd64 trycua/cua-ubuntu:latest-- # Option 2: Build locally- cd libs/kasm- docker build -t cua-ubuntu:latest .+ docker pull --platform=linux/amd64 trycua/cua-xfce:latest```3. Connect with Computer@@ -73,68 +74,103 @@ Cua provides local sandboxes using different providers depending on your host opcomputer = Computer(os_type="linux",provider_type="docker",- image="trycua/cua-ubuntu:latest",- name="my-cua-container"+ image="trycua/cua-xfce:latest",+ name="my-xfce-container")await computer.run() # Launch & connect to Docker sandbox```</Tab>- <Tab value="Windows Sandbox (Windows Only)">+ <Tab value="KASM (Full-Featured)">- 1. Enable Windows Sandbox (requires Windows 10 Pro/Enterprise or Windows 11)- 2. Install pywinsandbox dependency+ **Full-featured Ubuntu desktop** with additional applications++ 1. Install Docker Desktop or Docker Engine++ 2. Build or pull the CUA KASM image```bash- pip install -U git+git://github.com/karkason/pywinsandbox.git+ # Option 1: Pull from Docker Hub+ docker pull --platform=linux/amd64 trycua/cua-ubuntu:latest++ # Option 2: Build locally+ cd libs/kasm+ docker build -t cua-ubuntu:latest .```- 3. Windows Sandbox will be automatically configured when you run the CLI+ 3. Connect with Computer```pythonfrom computer import Computercomputer = Computer(- os_type="windows",- provider_type="winsandbox",- ephemeral=True # Windows Sandbox is always ephemeral+ os_type="linux",+ provider_type="docker",+ image="trycua/cua-ubuntu:latest",+ name="my-kasm-container")- await computer.run() # Launch & connect to Windows Sandbox+ await computer.run() # Launch & connect to Docker sandbox```</Tab>- <Tab value="macOS VM (with Lume CLI)">+</Tabs>- 1. Install lume cli+## Windows Sandbox- ```bash- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"- ```+**Windows hosts only - requires Windows 10 Pro/Enterprise or Windows 11**- 2. Start a local cua sandbox+1. Enable Windows Sandbox+2. Install pywinsandbox dependency- ```bash- lume run macos-sequoia-cua:latest- ```+```bash+pip install -U git+git://github.com/karkason/pywinsandbox.git+```- 3. Connect with Computer+3. Connect with Computer- ```python- from computer import Computer+```python+from computer import Computer- computer = Computer(- os_type="macos",- provider_type="lume",- name="macos-sequoia-cua:latest"- )+computer = Computer(+ os_type="windows",+ provider_type="winsandbox",+ ephemeral=True # Windows Sandbox is always ephemeral+)- await computer.run() # Launch & connect to the sandbox- ```+await computer.run() # Launch & connect to Windows Sandbox+```- </Tab>-</Tabs>+## macOS VM++**macOS hosts only - requires Lume CLI**++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 macOS VM++```bash+lume run macos-sequoia-cua:latest+```++3. Connect with Computer++```python+from computer import Computer++computer = Computer(+ os_type="macos",+ provider_type="lume",+ name="macos-sequoia-cua:latest"+)++await computer.run() # Launch & connect to the sandbox+```## Your host desktopdiff --git a/docs/content/docs/quickstart-cli.mdx b/docs/content/docs/quickstart-cli.mdxindex a22907ce7a..88d5e893d5 100644--- a/docs/content/docs/quickstart-cli.mdx+++ b/docs/content/docs/quickstart-cli.mdx@@ -23,39 +23,45 @@ cua combines Computer (interface) + Agent (AI) for automating desktop apps. The## Set Up Your Computer Environment-Choose how you want to run your cua computer. **Cloud containers are recommended** for the easiest setup:+Choose how you want to run your cua computer. **Cloud Sandbox is recommended** for the easiest setup:++<Tabs items={['☁️ Cloud Sandbox (Recommended)', 'Linux on Docker', 'Windows Sandbox', 'macOS VM']}>+ <Tab value="☁️ Cloud Sandbox (Recommended)">++ **Easiest & safest way to get started - works on any host OS**-<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** container4. 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+ <Tab value="Linux on Docker">++ **Run Linux desktop locally on macOS, Windows, or Linux hosts**++ 1. Install Docker Desktop or Docker Engine++ 2. Pull the CUA XFCE container (lightweight desktop)```bash- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"+ docker pull --platform=linux/amd64 trycua/cua-xfce:latest```- 2. Start a local cua container+ Or use KASM for a full-featured desktop:```bash- lume run macos-sequoia-cua:latest+ docker pull --platform=linux/amd64 trycua/cua-ubuntu:latest```</Tab>- <Tab value="Windows Sandbox (Windows Only)">-- 1. Enable Windows Sandbox (requires Windows 10 Pro/Enterprise or Windows 11)+ <Tab value="Windows Sandbox">++ **Windows hosts only - requires Windows 10 Pro/Enterprise or Windows 11**++ 1. Enable Windows Sandbox2. Install pywinsandbox dependency```bash@@ -65,14 +71,20 @@ Choose how you want to run your cua computer. **Cloud containers are recommended3. Windows Sandbox will be automatically configured when you run the CLI</Tab>- <Tab value="Docker (Cross-Platform)">-- 1. Install Docker Desktop or Docker Engine+ <Tab value="macOS VM">++ **macOS hosts only - requires Lume CLI**- 2. Pull the CUA Ubuntu container+ 1. Install lume cli```bash- docker pull --platform=linux/amd64 trycua/cua-ubuntu:latest+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"+ ```++ 2. Start a local cua macOS VM++ ```bash+ lume run macos-sequoia-cua:latest```</Tab>