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.

Fix computer[all] docs

f-trycua58c1e8a453dc
diff --git a/README.md b/README.md
index 3231f1568d..b3bb0da679 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,7 @@ The macOS CUA image contains the default Mac apps and the Computer Server for ea
### Step 3: Install Python SDK
```bash
-pip install cua-computer "cua-agent[all]"
+pip install "cua-computer[all]" "cua-agent[all]"
```
Alternatively, see the [Developer Guide](./docs/Developer-Guide.md) for building from source.
@@ -162,8 +162,8 @@ docker run -it --rm \
|--------|-------------|---------------|
| [**Lume**](./libs/lume/README.md) | VM management for macOS/Linux using Apple's Virtualization.Framework | `curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh \| bash` |
| [**Lumier**](./libs/lumier/README.md) | Docker interface for macOS and Linux VMs | `docker pull trycua/lumier:latest` |
-| [**Computer**](./libs/computer/README.md) | Interface for controlling virtual machines | `pip install cua-computer` |
-| [**Agent**](./libs/agent/README.md) | AI agent framework for automating tasks | `pip install cua-agent` |
+| [**Computer**](./libs/computer/README.md) | Interface for controlling virtual machines | `pip install "cua-computer[all]"` |
+| [**Agent**](./libs/agent/README.md) | AI agent framework for automating tasks | `pip install "cua-agent[all]"` |
| [**MCP Server**](./libs/mcp-server/README.md) | MCP server for using CUA with Claude Desktop | `pip install cua-mcp-server` |
| [**SOM**](./libs/som/README.md) | Self-of-Mark library for Agent | `pip install cua-som` |
| [**PyLume**](./libs/pylume/README.md) | Python bindings for Lume | `pip install pylume` |
diff --git a/libs/computer/README.md b/libs/computer/README.md
index c817c8cd28..33d4c0e3c5 100644
--- a/libs/computer/README.md
+++ b/libs/computer/README.md
@@ -54,7 +54,7 @@ finally:
To install the Computer-Use Interface (CUI):
```bash
-pip install cua-computer
+pip install "cua-computer[all]"
```
The `cua-computer` PyPi package pulls automatically the latest executable version of Lume through [pylume](https://github.com/trycua/pylume).
diff --git a/notebooks/agent_nb.ipynb b/notebooks/agent_nb.ipynb
index 925810bee6..cdc466165c 100644
--- a/notebooks/agent_nb.ipynb
+++ b/notebooks/agent_nb.ipynb
@@ -77,13 +77,13 @@
"metadata": {},
"outputs": [],
"source": [
- "from computer import Computer\n",
+ "from computer import Computer, VMProviderType\n",
"from agent import ComputerAgent, LLM, AgentLoop, LLMProvider"
]
},
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
@@ -120,7 +120,7 @@
"import logging\n",
"from pathlib import Path\n",
"\n",
- "computer = Computer(verbosity=logging.INFO)\n",
+ "computer = Computer(verbosity=logging.INFO, provider_type=VMProviderType.LUME)\n",
"\n",
"# Create agent with Anthropic loop and provider\n",
"agent = ComputerAgent(\n",
@@ -241,7 +241,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "cua313",
+ "display_name": "cua312",
"language": "python",
"name": "python3"
},
@@ -255,7 +255,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.13.2"
+ "version": "3.12.9"
}
},
"nbformat": 4,
diff --git a/notebooks/blog/build-your-own-operator-on-macos-1.ipynb b/notebooks/blog/build-your-own-operator-on-macos-1.ipynb
index e39ce336a3..da7245e645 100644
--- a/notebooks/blog/build-your-own-operator-on-macos-1.ipynb
+++ b/notebooks/blog/build-your-own-operator-on-macos-1.ipynb
@@ -54,7 +54,7 @@
"metadata": {},
"outputs": [],
"source": [
- "!pip install cua-computer"
+ "!pip install \"cua-computer[all]\""
]
},
{
diff --git a/notebooks/computer_nb.ipynb b/notebooks/computer_nb.ipynb
index 542c6c4b95..ec460de5f7 100644
--- a/notebooks/computer_nb.ipynb
+++ b/notebooks/computer_nb.ipynb
@@ -31,7 +31,7 @@
"metadata": {},
"outputs": [],
"source": [
- "!pip install cua-computer"
+ "!pip install \"cua-computer[all]\""
]
},
{
@@ -155,11 +155,11 @@
},
{
"cell_type": "code",
- "execution_count": 3,
+ "execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
- "from computer import Computer"
+ "from computer import Computer, VMProviderType"
]
},
{
@@ -187,7 +187,8 @@
" display=\"1024x768\",\n",
" memory=\"8GB\",\n",
" cpu=\"4\",\n",
- " os_type=\"macos\"\n",
+ " os_type=\"macos\",\n",
+ " provider_type=VMProviderType.LUME,\n",
") as computer:\n",
" await computer.run()\n",
" # ... do something with the computer interface"
@@ -460,7 +461,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "cua313",
+ "display_name": "cua312",
"language": "python",
"name": "python3"
},
@@ -474,7 +475,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.13.2"
+ "version": "3.12.9"
}
},
"nbformat": 4,