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
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,16 @@ The browser bootstrap comes from `GET /api/health`, which returns the WebTranspo
58
58
certificate hash, and packet version needed by the client.
59
59
The served browser UI receives the generated API access token automatically; direct HTTP callers can use the startup token with `X-SimDeck-Token` or `Authorization: Bearer`.
60
60
61
+
For fastest agent control, keep `simdeck serve` or `simdeck service on` running and route hot CLI controls through the warm local service:
You can also pass `--server-url http://127.0.0.1:4310` on individual commands. Supported fast-path controls include launch/open-url, normalized touch/tap/swipe/gesture input, key/key-sequence/key-combo, hardware buttons, dismiss-keyboard, home/app-switcher, rotate, and appearance toggles.
70
+
61
71
## Service
62
72
63
73
Enable the per-user background service with `launchd`:
@@ -139,7 +149,8 @@ UIKit in-app inspectors, then falls back to the built-in private CoreSimulator
139
149
accessibility bridge. Use `--format agent` or `--format compact-json` for
140
150
lower-token hierarchy dumps. Coordinate commands accept screen coordinates from
141
151
the accessibility tree by default; pass `--normalized` to send `0.0..1.0`
142
-
coordinates directly.
152
+
coordinates directly. With `--server-url` or `SIMDECK_SERVER_URL`, normalized
153
+
input commands use the warm service path to avoid repeated native setup.
Copy file name to clipboardExpand all lines: docs/cli/flags.md
+20-9Lines changed: 20 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,17 @@ Encoder used by the native bridge. See [Video Pipeline](/guide/video) for when t
75
75
76
76
HTTP API and WebTransport access token. The served browser UI receives it automatically through a strict same-site cookie, so normal local use does not require copying the token. Direct API callers should send either `X-SimDeck-Token: <token>` or `Authorization: Bearer <token>`.
77
77
78
+
## Global CLI flags
79
+
80
+
### `--server-url <url>`
81
+
82
+
| Default | unset |
83
+
| ------- | ------------------------------ |
84
+
| Env |`SIMDECK_SERVER_URL`|
85
+
| Type |`http://` URL for local server |
86
+
87
+
When set, supported hot controls delegate to the warm local SimDeck service instead of starting a fresh native control path in the CLI process. This is fastest for agent-driven loops. Supported delegated controls include `launch`, `open-url`, normalized `touch`, normalized coordinate `tap`, normalized `swipe`, normalized `gesture`, `key`, `key-sequence`, `key-combo`, `button`, `dismiss-keyboard`, `home`, `app-switcher`, `rotate-left`, `rotate-right`, and `toggle-appearance`.
88
+
78
89
## Positional arguments
79
90
80
91
Subcommands that take positionals expect them in the order shown:
@@ -88,15 +99,15 @@ Subcommands that take positionals expect them in the order shown:
Copy file name to clipboardExpand all lines: docs/cli/index.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,11 @@ The `simdeck` binary is the only entrypoint SimDeck ships. It hosts the HTTP ser
5
5
## Synopsis
6
6
7
7
```sh
8
-
simdeck <COMMAND> [OPTIONS]
8
+
simdeck [--server-url <url>] <COMMAND> [OPTIONS]
9
9
```
10
10
11
+
Set `SIMDECK_SERVER_URL=http://127.0.0.1:4310` or pass `--server-url` to route supported hot controls through an already-running local service. That avoids repeated native setup for agent loops while preserving the same JSON command output.
0 commit comments