|
| 1 | +# Phone spectator with Build Remote Agent |
| 2 | + |
| 3 | +code-server is VS Code in the browser. The [setup guide](../guide.md) covers |
| 4 | +exposing it (SSH `-L`, Caddy, NGINX, self-signed TLS). Those paths publish the |
| 5 | +workbench. |
| 6 | + |
| 7 | +If you only need a **phone to watch / veto a desktop coding-agent session**, |
| 8 | +you do not have to expose code-server at all. |
| 9 | + |
| 10 | +**Build Remote Agent** is a companion pairing device, not a code-server |
| 11 | +replacement. Keep code-server on localhost. The phone spectates through free |
| 12 | +MIT `gbr-agent` on loopback. Phone and PC never open ports to each other. |
| 13 | + |
| 14 | +Website: https://grokbuildremote.com/ |
| 15 | +Agent: https://github.com/LinespottingOrg/GrokBuildRemote-Agents (MIT) |
| 16 | +Protocol: `gbr/1` · need agent **v0.6.0+** |
| 17 | + |
| 18 | +Not affiliated with xAI or SpaceX. |
| 19 | + |
| 20 | +## When to use which |
| 21 | + |
| 22 | +| Goal | Path | |
| 23 | +|------|------| |
| 24 | +| Full VS Code workbench on iPad / phone | [Expose code-server](../guide.md) or [iPad](../ipad.md) | |
| 25 | +| Spectator / veto only, no inbound | this page (`gbr-agent pair` + `127.0.0.1:8788`) | |
| 26 | + |
| 27 | +## Install + pair |
| 28 | + |
| 29 | +```bash |
| 30 | +# macOS / Linux |
| 31 | +curl -fsSL https://grokbuildremote.com/install.sh | bash |
| 32 | +gbr-agent version # must print v0.6.0 or newer |
| 33 | +gbr-agent pair # QR in browser + printed 8-char code |
| 34 | +gbr-agent run # leave running |
| 35 | +``` |
| 36 | + |
| 37 | +```powershell |
| 38 | +# Windows |
| 39 | +irm https://grokbuildremote.com/install.ps1 | iex |
| 40 | +gbr-agent version |
| 41 | +gbr-agent pair |
| 42 | +gbr-agent run |
| 43 | +``` |
| 44 | + |
| 45 | +Phone: open Build Remote Agent → **Scan QR from computer** (or type the 8-char |
| 46 | +code). Sessions appear in the app. **Unpair** in Settings before changing PCs. |
| 47 | +Force-close is not enough. |
| 48 | + |
| 49 | +## Attach |
| 50 | + |
| 51 | +After `gbr-agent run`: |
| 52 | + |
| 53 | +- HTTP Bot API: `http://127.0.0.1:8788` |
| 54 | +- MCP stdio: clone the agent repo and run `node mcp/gbr-mcp/bin/gbr-mcp.js` |
| 55 | + |
| 56 | +```bash |
| 57 | +curl -sS http://127.0.0.1:8788/health |
| 58 | +curl -sS http://127.0.0.1:8788/v1/sessions |
| 59 | +``` |
| 60 | + |
| 61 | +Phone is spectator. Orchestration stays on this desktop (code-server terminal, |
| 62 | +or a Grok bot / Claude Cowork talking to the same Bot API). |
| 63 | + |
| 64 | +Do not commit mailbox keys. Phone **Settings → Bot API** is the only place the |
| 65 | +relay key is copied. |
0 commit comments