Configuration files
How every Holtdroid service is configured, and the api's options.
Every service reads one YAML file passed with --config (the Helm chart
renders them for you). Any key can be overridden by an environment variable:
HOLTDROID_ + the key path in upper case with __ between levels. Matching
is case-insensitive.
HOLTDROID_SESSIONS__IDLETIMEOUT=45mHOLTDROID_AUTH__PROVIDER=noneLogging is configured with flags or environment, not the file:
--log-level / HOLTDROID_LOG_LEVEL (debug, info, warn, error) and
--log-format / HOLTDROID_LOG_FORMAT (json, text).
Fields that hold credentials only accept secret references, never plain values — see Secrets.
Every service also reads two shared sections: telemetry (Prometheus
metrics on a separate port, OpenTelemetry tracing) and, in the api and the
ssh-gateway, audit (the audit log). Both are described in
Monitoring and audit.
telemetry: metrics: { listen: ":9090" } tracing: { enabled: true, endpoint: http://otel-collector:4318 }audit: stdout: truelisten: ":8080" # browser-facing: UI, /api, /s/{provider}/{id}internalListen: ":8081" # cluster-only: artifact downloads for agentspublicURL: https://android.example.cominternalURL: http://holtdroid-api-internal:8081 # how agents reach internalListen
auth: mode: anonymous # anonymous | password | oidc | header | none sessionKey: env:SESSION_KEY
sessions: idleTimeout: 30m maxTTL: 8h reapInterval: 30s
storage: type: filesystem # filesystem | s3 filesystem: dir: /var/cache/holtdroid
cache: maxSize: 20GiB warm: 10
database: type: memory
secrets: openbao: address: https://bao.example.com kubernetes: { role: holtdroid }
sources: - name: local type: filesystem filesystem: { dir: /var/lib/holtdroid/apks }uploads: enabled: true maxSize: 1GiB temporaryTTL: 168hdownloads: adminOnly: falseappData: enabled: falserecordings: enabled: falsepixelPerfect: enabled: trueadb: browser: true ownerOnly: trueproviders: - name: emulator url: http://holtdroid-provider-emulator:8080| Key | Default | Meaning |
|---|---|---|
listen |
:8080 |
Address for the UI, REST API and session proxy |
internalListen |
:8081 |
Address for endpoints only agents use; never expose it through the ingress |
publicURL |
– | External URL of the portal, used to build DevTools WebSocket URLs |
internalURL |
– | URL agents use to reach internalListen |
auth.* |
anonymous |
See Authentication |
secrets.openbao |
– | Enables openbao: references, see Secrets |
sessions.idleTimeout |
30m |
Delete a session after this long without activity |
sessions.maxTTL |
8h |
Delete a session after this long regardless of activity |
sessions.reapInterval |
30s |
How often the reaper runs |
sessions.maxPerUser |
0 |
Devices one user may run at once, 0 for no limit; per user in the users auth mode |
storage.* |
filesystem | See Artifact storage |
cache.maxSize |
20GiB |
Least recently used APKs are evicted beyond this |
cache.warm |
10 |
Newest uncached APKs per listing to download and keep in the background; older ones are only parsed |
cache.metadata |
the api’s | Where parsed APK metadata and icons are kept; give it an S3 prefix when storage is a cache volume, or every restart parses all APKs again |
database.* |
memory |
SQLite in RAM, or a file replicated to S3, see Database |
sources[] |
local |
Folders or S3 buckets with APKs, see Artifact sources |
uploads.* |
enabled | Uploads from the UI, see Artifact sources |
downloads.adminOnly |
false |
Only admins may download APKs, see Downloads |
appData.* |
off | Save app data between sessions, see App data |
recordings.* |
off | Record sessions on the server, see Recordings |
pixelPerfect.* |
on | Reference images for the Pixel perfect tab, see Pixel perfect |
media.* |
on, 5 GiB a user | Audio, video and image files for a session’s microphone and camera, see Microphone |
devTools.frontend |
Google’s host | Where the portal fetches the DevTools frontend from; empty lets the session’s agent serve it |
devTools.storage |
the api’s | Where crawled DevTools frontends are archived, one tar.gz per revision; give it an S3 prefix when storage is a cache volume, see DevTools |
apps.storage |
the api’s | Where app descriptions are kept; give it an S3 prefix when storage is a cache volume, or a restart loses them |
webview.storage |
off | The WebView catalog, see WebView versions |
webview.catalogs |
[] |
More WebView catalogs listed next to it, one per job that fills one (Google WebView) |
webview.defaultPackage |
com.android.webview |
The kind of WebView a launch starts on, when the catalog has builds of it; com.google.android.webview for Google WebView |
map.url |
OpenFreeMap | Tile server for the GPS map, proxied by the api; empty turns the map off, see below |
routing.url |
FOSSGIS Valhalla | Valhalla server for GPS routes along roads; empty draws straight lines, see below |
geoIP.country, geoIP.asn |
DB-IP Lite in the image | MaxMind-format databases that place servers in the Routes and DNS tabs; a missing file leaves its fields empty, see below |
webdriver.enabled |
false |
The WebDriver endpoint /wd/hub for Selenium tests, see below |
scripts.enabled |
true |
The Frida script library and the launch option; scripts.storage keeps them elsewhere than the api’s storage |
adb.browser |
true |
ADB tools on the session page, see ADB tools |
adb.ownerOnly |
true |
Only a session’s owner and admins may use its ADB tools |
providers[] |
[] |
Device providers: unique name and base url; Any in the launch dialog tries them in this order |
GPS map
Section titled “GPS map”The GPS panel of a session shows a map: click it or drag the marker to fake the device’s position there, or click points for it to walk, run or drive through. The tiles come from OpenFreeMap, which needs no API key, through the api: the browser only talks to the portal, and the tile server sees the api’s address and User-Agent, never the user’s cookies.
map: url: https://tiles.openfreemap.org # empty turns the map off style: styles/liberty # path of the MapLibre style under url darkStyle: styles/dark # for the portal's dark theme; defaults to styleAny server that keeps a MapLibre style, its TileJSON, tiles, sprites and
glyphs under one base URL works, a self-hosted one included: the api rewrites
map.url in JSON responses to its own proxy path. The api needs outbound
HTTPS to it; nothing is stored, browsers cache the tiles.
GPS routes along roads come from a Valhalla
server, through the api as well: by default the public FOSSGIS one, free
and keyless under fair use. Walking and running use its pedestrian
profile, driving auto; a route takes up to 18 clicked points.
routing: url: https://valhalla1.openstreetmap.de # empty: straight lines onlyA self-hosted Valhalla works the same; run your own if many people plan long routes, since the public server limits the rate and the distance.
IP geolocation
Section titled “IP geolocation”The Routes and DNS tabs show the country and network of each server. The api looks them up in two MaxMind-format databases, which the image ships: this month’s DB-IP Lite country and ASN databases (CC BY 4.0), taken when the image was built.
geoIP: country: /usr/share/holtdroid/geoip/dbip-country-lite.mmdb asn: /usr/share/holtdroid/geoip/dbip-asn-lite.mmdbPoint them at other files to use newer databases or MaxMind’s GeoLite2
(GeoLite2-Country.mmdb, GeoLite2-ASN.mmdb), for example from a volume
that geoipupdate refreshes; the api reads them at start. A file that
isn’t there leaves its fields empty, which is what holtdroid dev gets
unless you download them. Lookups stay inside the api; no address is sent
anywhere.
WebDriver
Section titled “WebDriver”Selenium and Selenide suites can run on Holtdroid devices through a W3C
WebDriver endpoint at /wd/hub; WebDriver (Selenium)
describes what tests can do and how to integrate them. It needs the users
sign-in mode, since tests authenticate with an
access token that has the
webdriver scope, and auth.sessionKey for Selenium DevTools.
webdriver: enabled: true startTimeout: 5m # how long a new session may wait for a slot and the device chromeSource: chromium # the source with Chromium builds, picked by their milestone and channel tags webviewSource: github # the source with Holtdroid WebView releases for target webview # chromedriver: a JSON index in Chrome for Testing's # latest-versions-per-milestone-with-downloads format, Google's by defaultThe api downloads chromedriver for each Chromium milestone once, from
Chrome for Testing,
and keeps it in its storage; agents fetch it from the api. Point
webdriver.chromedriver at a mirror of that index where the api has no
internet access. WebDriver sessions run only on providers whose agents run
chromedriver (the emulator provider, not phones yet).
MCP server
Section titled “MCP server”The progressive-discovery MCP server at /api/v1/mcp is on by
default (mcp.enabled: true, mcp.allowADB: true). In users mode, agents
authenticate with an access token
holding the mcp scope or through the local holtdroid mcp connect bridge.
mcp: enabled: true # expose /api/v1/mcp (on by default) allowEval: true # allow JavaScript evaluation in web.run allowFrida: true # allow live Frida scripts via scripts.run allowADB: true # allow direct adb shell commands via adb.run maxOutputBytes: 24576 # truncate oversized tool outputs cleanly