You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,6 +236,8 @@ Flags:
236
236
-`--activity <component>` (Android app launch only; package/Activity or package/.Activity; not for URL opens)
237
237
-`--session <name>`
238
238
-`--state-dir <path>` daemon state directory override (default: `~/.agent-device`)
239
+
-`--daemon-base-url <url>` explicit remote HTTP daemon base URL; skips local daemon discovery/startup
240
+
-`--daemon-auth-token <token>` remote HTTP daemon auth token; sent in both the JSON-RPC request token and HTTP auth headers (`Authorization: Bearer` and `x-agent-device-token`)
239
241
-`--daemon-transport auto|socket|http` daemon client transport preference
240
242
-`--daemon-server-mode socket|http|dual` daemon server mode (`http` and `dual` expose JSON-RPC over HTTP at `/rpc`)
241
243
-`--tenant <id>` tenant identifier used with session isolation
-`AGENT_DEVICE_DAEMON_TIMEOUT_MS=<ms>` to override daemon request timeout (default `90000`). Increase for slow physical-device setup (for example `120000`).
516
518
-`AGENT_DEVICE_STATE_DIR=<path>` override daemon state directory (metadata, logs, session artifacts).
519
+
-`AGENT_DEVICE_DAEMON_BASE_URL=http(s)://host:port[/base-path]` connect directly to a remote HTTP daemon and skip local daemon metadata/startup.
520
+
-`AGENT_DEVICE_DAEMON_AUTH_TOKEN=<token>` auth token for remote HTTP daemon mode; sent in both the JSON-RPC request token and HTTP auth headers (`Authorization: Bearer` and `x-agent-device-token`).
517
521
-`AGENT_DEVICE_DAEMON_SERVER_MODE=socket|http|dual` daemon server mode. `http` and `dual` expose JSON-RPC 2.0 at `POST /rpc` (`GET /health` available for liveness).
518
522
-`AGENT_DEVICE_DAEMON_TRANSPORT=auto|socket|http` client preference when connecting to daemon metadata.
519
523
-`AGENT_DEVICE_HTTP_AUTH_HOOK=<module-path>` optional HTTP auth hook module path for JSON-RPC server mode.
- Remote multi-tenant run: allocate lease -> run commands with tenant isolation flags -> heartbeat/release lease
28
+
- Remote multi-tenant run: allocate lease -> point client at remote daemon base URL -> run commands with tenant isolation flags -> heartbeat/release lease
29
29
- Device-scope isolation run: set iOS simulator set / Android allowlist -> run selectors within scope only
- For explicit remote client mode, prefer `AGENT_DEVICE_DAEMON_BASE_URL` / `--daemon-base-url` instead of relying on local daemon metadata or loopback-only ports.
211
221
212
222
## Security and Trust Notes
213
223
214
224
- Prefer a preinstalled `agent-device` binary over on-demand package execution.
215
225
- If install is required, pin an exact version (for example: `npx --yes agent-device@<exact-version> --help`).
216
226
- Signing/provisioning environment variables are optional, sensitive, and only for iOS physical-device setup.
217
227
- Logs/artifacts are written under `~/.agent-device`; replay scripts write to explicit paths you provide.
218
-
- For remote daemon mode, prefer `AGENT_DEVICE_DAEMON_SERVER_MODE=http|dual` with `AGENT_DEVICE_HTTP_AUTH_HOOK` and tenant-scoped lease admission.
228
+
- For remote daemon mode, prefer `AGENT_DEVICE_DAEMON_SERVER_MODE=http|dual`on the host plus client-side `AGENT_DEVICE_DAEMON_BASE_URL`, with `AGENT_DEVICE_HTTP_AUTH_HOOK` and tenant-scoped lease admission where needed.
219
229
- Keep logging off unless debugging and use least-privilege/isolated environments for autonomous runs.
0 commit comments