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
Change hackathon notebook to use Docker
James Murdza8938b37ca70a
diff --git a/notebooks/hud_hackathon.ipynb b/notebooks/hud_hackathon.ipynbindex 31ac7fb34f..0f295b081e 100644--- a/notebooks/hud_hackathon.ipynb+++ b/notebooks/hud_hackathon.ipynb@@ -29,11 +29,11 @@"source": ["The easiest way to get started is by getting set up with the Cua development repository.\n","\n",- "First, clone the Cua repository:\n",+ "Install [Docker](https://www.docker.com/products/docker-desktop/) and [pdm](https://pdm-project.org/en/latest/#recommended-installation-method).\n","\n",- "`git clone https://github.com/trycua/cua`\n",+ "Clone the Cua repository:\n","\n",- "Install [pdm](https://pdm-project.org/en/latest/#recommended-installation-method).\n",+ "`git clone https://github.com/trycua/cua`\n","\n","Install the project dependencies:\n","\n",@@ -49,7 +49,7 @@"source": ["## ☁️ Connect to cloud services\n","\n",- "Create Cua and HUD accounts and load your API keys. "+ "Create a free HUD accounts and load your API keys. "]},{@@ -57,9 +57,7 @@"id": "47171dc3","metadata": {},"source": [- "1. Create a Cua account at https://www.trycua.com/\n",- "2. Start a small Cua container at https://www.trycua.com/dashboard/containers (If you need credits, ask us!)\n",- "3. Create a HUD account at https://www.hud.so/\n",+ "1. Create a HUD account at https://www.hud.so/\n","4. Create a .env file:"]},@@ -73,8 +71,6 @@"# Create a .env file if it doesn't exist\n","\n","ENV_TEMPLATE = \"\"\"# Required environment variables:\n",- "CUA_API_KEY=\n",- "CUA_CONTAINER_NAME=\n","HUD_API_KEY=\n","\n","# Any LLM provider will work:\n",@@ -109,8 +105,6 @@"from dotenv import load_dotenv\n","load_dotenv(dotenv_path='.env', override=True)\n","\n",- "assert os.getenv(\"CUA_API_KEY\")\n",- "assert os.getenv(\"CUA_CONTAINER_NAME\")\n","assert os.getenv(\"HUD_API_KEY\")"]},@@ -129,7 +123,7 @@"id": "54338496","metadata": {},"source": [- "Connect to your running Cua container using the Cua SDK and initialize an agent."+ "Make sure Docker is running and create a Docker-based agent."]},{@@ -140,7 +134,6 @@"outputs": [],"source": ["import logging\n",- "import os\n","from pathlib import Path\n","from agent import ComputerAgent\n","from computer import Computer, VMProviderType\n",@@ -148,11 +141,10 @@"# Connect to your existing cloud container\n","computer = Computer(\n"," os_type=\"linux\",\n",- " provider_type=VMProviderType.CLOUD,\n",- " api_key=os.getenv(\"CUA_API_KEY\"),\n",- " name=os.getenv(\"CUA_CONTAINER_NAME\"),\n",+ " provider_type=VMProviderType.DOCKER,\n"," verbosity=logging.INFO\n",")\n",+ "await computer.run()\n","\n","# Here you can set the model and tools for your agent.\n","# Computer use models: https://www.trycua.com/docs/agent-sdk/supported-agents/computer-use-agents\n",@@ -177,7 +169,7 @@"source": ["## 🖱️ Test your agent\n","\n",- "Run your agent on a test scenario in Cua Cloud."+ "Run your agent on a test scenario in a Docker container."]},{@@ -187,11 +179,9 @@"source": ["Try running the computer use agent on a simple task.\n","\n",- "Trajectories are saved in the format: `trajectories/YYYY-MM-DD_computer-use-pre_XXX`.\n",- "\n",- "To view a replay of the agent's actions, upload the trajectory to the [trajectory viewer](https://www.trycua.com/trajectory-viewer).\n",+ "You can view the VNC stream from the Docker container at `http://localhost:8006/`\n","\n",- "You can also connect to an agent through VNC on the [Cua Dashboard](https://www.trycua.com/dashboard)."+ "Trajectories are saved in the format: `trajectories/YYYY-MM-DD_computer-use-pre_XXX`."]},{