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
Initial dev container
Dillon DuPontc5701c95f3fb
diff --git a/.devcontainers/README.md b/.devcontainers/README.mdnew file mode 100644index 0000000000..be1b651231--- /dev/null+++ b/.devcontainers/README.md@@ -0,0 +1,60 @@+# Dev Container Setup++This repository includes a Dev Container configuration that simplifies the development setup to just 3 steps:++## Quick Start++1. **Install Dev Containers extension** in VS Code+2. **Clone and open in container**:+ - Press `Ctrl+Shift+P` (or `Cmd+Shift+P` on Mac)+ - Type "Dev Containers: Clone Repository in Container Volume"+ - Paste the repository URL: `https://github.com/trycua/cua.git`+3. **Hit play**: Once the container builds, you're ready to develop!++## What's Included++The dev container automatically:++- ✅ Sets up Python 3.11 environment+- ✅ Installs all system dependencies (build tools, OpenGL, etc.)+- ✅ Configures Python paths for all packages+- ✅ Installs Python extensions (Black, Ruff, Pylance)+- ✅ Forwards port 7860 for the Gradio web UI+- ✅ Mounts your source code for live editing+- ✅ Creates the required `.env.local` file++## Running Examples++After the container is built, you can run examples directly:++```bash+# Run the agent UI (Gradio web interface)+python examples/agent_ui_examples.py++# Run computer examples+python examples/computer_examples.py++# Run computer UI examples+python examples/computer_ui_examples.py+```++The Gradio UI will be available at `http://localhost:7860` and will automatically forward to your host machine.++## Environment Variables++You'll need to add your API keys to `.env.local`:++```bash+# Required for Anthropic provider+ANTHROPIC_API_KEY=your_anthropic_key_here++# Required for OpenAI provider+OPENAI_API_KEY=your_openai_key_here+```++## Notes++- The container connects to `host.docker.internal:7777` for Lume server communication+- All Python packages are pre-installed and configured+- Source code changes are reflected immediately (no rebuild needed)+- The container uses the same Dockerfile as the regular Docker development environmentdiff --git a/.devcontainers/devcontainer.json b/.devcontainers/devcontainer.jsonnew file mode 100644index 0000000000..89cb275436--- /dev/null+++ b/.devcontainers/devcontainer.json@@ -0,0 +1,54 @@+{+ "name": "C/ua - OSS",+ "build": {+ "dockerfile": "../Dockerfile"+ },+ "containerEnv": {+ "DISPLAY": "",+ "PYTHONPATH": "/app/libs/core:/app/libs/computer:/app/libs/agent:/app/libs/som:/app/libs/pylume:/app/libs/computer-server:/app/libs/mcp-server",+ "PYLUME_HOST": "host.docker.internal"+ },+ "forwardPorts": [7860],+ "portsAttributes": {+ "7860": {+ "label": "C/ua web client (Gradio)",+ "onAutoForward": "silent"+ }+ },+ "postCreateCommand": "echo 'PYTHON_BIN=python' > /app/.env.local",+ "customizations": {+ "vscode": {+ "extensions": [+ "ms-python.python",+ "ms-python.black-formatter",+ "charliermarsh.ruff",+ "ms-python.vscode-pylance"+ ],+ "settings": {+ "python.defaultInterpreterPath": "/usr/local/bin/python",+ "python.terminal.activateEnvironment": false,+ "[python]": {+ "editor.formatOnSave": true,+ "editor.defaultFormatter": "ms-python.black-formatter",+ "editor.codeActionsOnSave": {+ "source.organizeImports": "explicit"+ }+ },+ "python.linting.enabled": true,+ "python.linting.ruffEnabled": true,+ "python.formatting.provider": "black",+ "files.watcherExclude": {+ "**/.venv/**": true,+ "**/node_modules/**": true,+ "**/__pycache__/**": true,+ "**/.pytest_cache/**": true+ }+ }+ }+ },+ "mounts": [+ "source=${localWorkspaceFolder},target=/app,type=bind,consistency=cached"+ ],+ "workspaceFolder": "/app",+ "shutdownAction": "stopContainer"+}