# Clone the repositorygit clone https://github.com/droidrun/droidrun.gitcd droidrun# Create a virtual environment (highly recommended)python -m venv .venv# Activate the virtual environment# On Windows:.venv\Scripts\activate# On macOS/Linux:source .venv/bin/activate# Install dependencies and the package in development modepip install -e .
Using a virtual environment helps isolate DroidRunβs dependencies from your global Python environment, preventing potential conflicts with other packages.
Alternatively, you can use ADB to install it manually:
Copy
Ask AI
adb install -r /path/to/droidrun-portal.apk
After installation, ensure the DroidRun Portal app is running on your device. The app provides the necessary interface for DroidRun to control your Android device through natural language commands.
# Using OpenAI (default)droidrun "Open the settings app"# Using Geminidroidrun "Open the calculator app" --provider gemini --model gemini-2.0-flash# Using Anthropicdroidrun "Check the battery level" --provider anthropic --model claude-3-sonnet-20240229# With vision capabilities enableddroidrun "Take a screenshot and describe what's on the screen" --vision
# Specify a devicedroidrun "Open Chrome" --device your_device_serial# Set maximum stepsdroidrun "Open settings" --steps 20# Enable vision capabilitiesdroidrun "Analyze the current screen" --vision