droid template with Droid already installed.
CLI
Create a sandbox with the E2B CLI.Run headless
Usedroid exec for non-interactive mode and --auto low to let Droid make safe file edits and run non-destructive commands inside the isolated sandbox. Droid authenticates with an API key from Factory settings via the FACTORY_API_KEY environment variable.
Example: work on a cloned repository
Build a custom template
If you need to customize the environment (e.g. pre-install dependencies, add config files), build your own template on top of the pre-builtdroid template.
Related guides
Sandbox persistence
Auto-pause, resume, and manage sandbox lifecycle
Git integration
Clone repos, manage branches, and push changes
SSH access
Connect to the sandbox via SSH for interactive sessions