Skip to content

About

Self-hosted Android device farm with web control and mediated ADB

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

81 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote Device Farm

Run Android emulators on your own Linux/KVM servers and use them from a browser, CI or an AI assistant. The interface supports 12 languages, including English and Russian.

Alpha. APIs and deployment settings may change. See the verification matrix.

What the service offers

Feature What it provides
MCP for AI assistants Request a device, install and open an APK, inspect screenshots, UI trees and Logcat, find or tap elements, wait for UI changes and release it through a local stdio MCP package.
Browser device control Android screen, tap/swipe/text input, APK installation, screenshots, recording and device settings. Sessions
Session workspace Side-by-side by default, with a full-page Desk for moving and resizing windows, detaching tools, panning, zooming and saving arrangements. Workspace guide
ADB and session sharing Connect local development tools using personal ADB keys; share a session for viewing or control with expiration and revocation. Access guide
CI integrations and Gradle Reusable packages for seven CI platforms, a Gradle plugin, and Maestro/Appium examples. Setup and validation
Managed Appium (experimental) A session-scoped WebDriver API with a pinned Linux worker image; live automation remains under validation. Status and limits
Virtual camera Upload an image to a compatible emulator's virtual scene for camera tests. Requirements and verification
Device pool and automation API Multiple worker nodes, resource limits, queues, explicit leases, team profile access and per-member quotas. API
GPU acceleration Software rendering or GPU modes using NVIDIA/CUDA and DRI, according to node capabilities. Agent and GPU
Own image registry Build emulator images from the SDK catalog; manage versions, node caches, retention policies and cleanup from the UI. Images
Application library and diagnostics Store APKs and APK sets, select compatible .apks parts, inspect Logcat and WebViews, capture HTTP/HTTPS connection metadata, export HAR and retain startup/stop diagnostics. Guides
Access administration Custom roles and permissions, users, personal API tokens and configurable authentication providers. Security
Per-session network policy Separate management and egress networks. The Linux node firewall permits agent-initiated control and blocks container-initiated access to the agent, host and other sessions. Requires the node policy and default container restrictions; verification limits.
Self-hosted deployment Docker Compose for a single host or separate server and Linux/KVM agents, with HTTPS and backup/restore tooling. Deployment

MCP ships from source as a local stdio adapter. CI packages also ship from source; external client/controller validation is incomplete. GPU and authentication-provider verification depends on the environment. Tested and Not tested scenarios.

CI and test automation

Use a shared device pool for Android tests across projects. Native reusable integrations are included for TeamCity, GitHub Actions, GitLab CI, Jenkins, Azure Pipelines, CircleCI and Bitbucket Pipelines. A Gradle plugin and Maestro/Appium examples support application test workflows.

The Bash CLI queues device requests, connects ADB, renews the lease during tests and releases the device after completion or cancellation. The examples include artifact collection. The packages share the CLI lifecycle and are available from source; live CI and Android plugin validation is still incomplete. Setup and verification status.

Desk with a large emulator, console and detached Logcat

Desk examples · Screenshot gallery

Quick start

One Linux host requires Docker Engine 28+, Compose 2.30+ with BuildKit, Node.js 22+, OpenSSL and access to /dev/kvm. Each Android image requires several GB of disk space.

git clone https://github.com/kavabunga6/remote-device-farm.git
cd remote-device-farm
node scripts/init-local.mjs
sudo modprobe br_netfilter
sudo sysctl -w net.bridge.bridge-nf-call-iptables=1
sudo sh deploy/firewall/rdf-egress-firewall.sh apply
docker compose -f compose.yaml -f compose.agent.yaml -f compose.override.yaml up -d --build

Open http://localhost:8088. Sign in as admin with LOCAL_ADMIN_PASSWORD from the generated .env file.

  1. In Nodes, check that the agent is online. Set slot resources; recent phone/tablet profiles require 4 CPU / 6 GB per slot.
  2. Review the Android SDK/package terms. In Device profiles → Image catalog, select an Android image and start a build. A single eligible node is selected as builder automatically.
  3. After build validation and registry upload, enable the profile and create a session.

Initial image downloads and builds take several minutes. Later sessions use cached images.

Install the persistent Linux node firewall before allocating devices. New management networks disable Docker inter-container communication; the policy enables agent-initiated control. The agent archive includes the firewall scripts and matching policy resource. When upgrading, install the policy first, update both agent and agent-control, then recreate older sessions; legacy management networks are rejected.

Warning: prebuilt emulator images. Third-party images, including vendor-published images, may disable ADB authentication or ignore supplied keys. A successful boot, a pinned digest or an ADB key environment variable does not establish that authentication is enforced. Before enabling a profile, verify that the emulator itself accepts a trusted key and rejects an independent untrusted client. Keep ADB, gRPC and emulator console endpoints isolated behind the service's access controls. Image security requirements.

HTTP and registry ports bind to loopback. Remote access and additional nodes require a reachable HTTPS address and trusted certificates. ADB access uses the authenticated server proxy. Backups must include PostgreSQL, app_store and registry_data; store SECRETS_KEY separately.

Additional Linux nodes can download the agent archive directly without signing in. Issue a separate token in Nodes → Connect a node, then set the server address and token on that node.

Verification

Scope Status
Linux single-host installation, server/agent connection, backup and restore Tested
Google APIs / API 36.1 phone and tablet boot, ADB authentication; NVIDIA on phone Tested
Sign-in in all 12 languages and both themes; selected administration screens, language switching, API and lifecycle checks Tested
Two-account access isolation, screen sharing, revocation and expiration Tested
Team profile access, per-member quotas, queue assignment and explicit leases Tested
Bounded image builder: small image, export/import and cleanup Tested; full SDK builds incomplete
UI-tree MCP, WebView inspection, signed APK sets and virtual-camera QR Tested on one Android 16 Google APIs phone image
HTTP/CONNECT metadata, HAR, proxy restoration and agent recovery Tested on the same image
PCAP packet capture Not ready — known limits
Additional deployment scenarios Not tested — verification matrix

Verification details and limitations. Physical-device rental requires a validated full reset/reprovisioning procedure for each model. Boot snapshots and privileged emulator containers are not available.

Documentation

Server, HTTPS and backups · Agent and GPU · Registry · Profiles · Sessions · API · OpenAPI · CI integrations · Development

All documentation · Server configuration · Agent configuration

Contributing · Security · Apache-2.0 · Third-party terms

About

Self-hosted Android device farm with web control and mediated ADB

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages