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
docs(quickstart): add Android on Docker setup and usage
[email protected]353c6ad446ed
diff --git a/docs/content/docs/get-started/quickstart.mdx b/docs/content/docs/get-started/quickstart.mdxindex b5dcd3fe4c..398d53b95a 100644--- a/docs/content/docs/get-started/quickstart.mdx+++ b/docs/content/docs/get-started/quickstart.mdx@@ -25,7 +25,7 @@ Choose how you want to run your Cua computer. This will be the environment whereYou can run your Cua computer in the cloud (recommended for easiest setup), locally on macOS with Lume, locally on Windows with a Windows Sandbox, or in a Docker container on any platform. Choose the option that matches your system and needs.-<Tabs items={['Cloud Sandbox', 'Linux on Docker', 'QEMU Docker', 'macOS Sandbox', 'Windows Sandbox']}>+<Tabs items={['Cloud Sandbox', 'Linux on Docker', 'QEMU Docker', 'macOS Sandbox', 'Windows Sandbox', 'Android on Docker']}><Tab value="Cloud Sandbox">Create and manage cloud sandboxes that run Linux (Ubuntu), Windows, or macOS.@@ -194,6 +194,19 @@ You can run your Cua computer in the cloud (recommended for easiest setup), loca3. Windows Sandbox will be automatically configured when you run the CLI</Tab>+ <Tab value="Android on Docker">++ Run Android 11 emulator inside Docker containers on any platform.++ 1. Install Docker Desktop or Docker Engine++ 2. Pull the Android image:++ ```bash+ docker pull trycua/cua-droid:latest+ ```++ </Tab></Tabs>---@@ -221,7 +234,7 @@ Connect to your Cua computer and perform basic interactions, such as taking screThen, connect to your desired computer environment:- <Tabs items={['Cloud Sandbox', 'Linux on Docker', 'QEMU Docker', 'macOS Sandbox', 'Windows Sandbox', 'Your host desktop']}>+ <Tabs items={['Cloud Sandbox', 'Linux on Docker', 'QEMU Docker', 'macOS Sandbox', 'Windows Sandbox', 'Android on Docker', 'Your host desktop']}><Tab value="Cloud Sandbox">Set your CUA API key (same key used for model inference) and connect to your sandbox:```python@@ -423,6 +436,40 @@ Connect to your Cua computer and perform basic interactions, such as taking screasyncio.run(main())```</Tab>+ <Tab value="Android on Docker">+ ```python+ from computer import Computer+ import asyncio++ computer = Computer(+ os_type="android",+ provider_type="docker",+ image="trycua/cua-droid:latest",+ timeout=150, # Emulator needs more time to boot+ run_opts={+ "devices": ["/dev/kvm"], # Required for Android emulator+ "env": {+ "EMULATOR_DEVICE": "Samsung Galaxy S10",+ },+ },+ )++ async def main():+ await computer.run() # Launch & connect to Android emulator++ try:+ # Take a screenshot of the Android screen+ screenshot = await computer.interface.screenshot()+ # Simulate a left-click at coordinates (100, 100)+ await computer.interface.left_click(100, 100)+ # Type "Hello!" into the active application+ await computer.interface.type_text("Hello!")+ finally:+ await computer.disconnect()++ asyncio.run(main())+ ```+ </Tab><Tab value="Your host desktop">Install and run `cua-computer-server`:```bash