Open History to see the last commit
1# Devices
2
3The Device panel shows a live iOS Simulator or Android Emulator next to a
4thread, so you can watch an agent verify mobile work and tap the device
5yourself. Agents get the same device through `device_*` tools and the
6`agent-device` command line, which T3 Code sets up for them.
7
8## Open a device
9
10Open the right panel in a project thread and choose **Device**. On first use,
11the panel walks through three steps: starting the device hub, checking iOS and
12Android support, and choosing whether agents may control devices. Opening the
13panel alone does not download or start anything. If the hub is already
14installed, the setup screen says so and reuses it.
15
16Choose a running device to watch it, or choose **Start** next to a stopped
17device to boot it. The panel shows when you or an agent starts a device.
18Each device opens in its own tab. Use **+ → Device** to open another, and
19double-click a tab name or choose **Rename** from its context menu to rename it.
20Only the visible tab streams video; switching tabs keeps both devices running.
21Turn off the device hub in **Settings → Integrations → Devices** to stop the
22helper processes; simulators and emulators keep running until you power them
23off.
24
25Simulators run on the machine that hosts the environment server. iOS needs
26macOS with Xcode. Android needs the SDK Platform-Tools, Android Emulator,
27and Command-line Tools (latest), plus a virtual device created in Android
28Studio's Device Manager. T3 Code detects standard SDK locations; set
29`ANDROID_HOME` for a custom location. The panel explains missing dependencies.
30After installing them, restart the environment server and refresh devices.
31
32The screen is interactive: click and drag to touch, type while the screen is
33focused, and use the toolbar for Home, Back, and Recents on Android, rotate on
34iOS, and power off. Close the tab to stop watching; the device keeps running
35unless you power it off. Closed tabs stay closed after a reload. To watch the
36device again, choose it from **+ → Device**.
37
38## Tools
39
40The toolbar's **Tools** button opens a drawer for the open device. It shows the
41foreground app, and lets you switch light and dark mode, change text size,
42flip accessibility settings, overlay the accessibility element frames on the
43screen, set a fake location, and grant or revoke app permissions. iOS also
44exposes Liquid Glass, color filters, VoiceOver, and sending a test push
45notification; Android adds orientation and toggling the network. The drawer
46only shows what the platform can do, and every control reflects the value read
47back from the device after a change.
48
49## Agents and devices
50
51When an agent opens a device, the panel opens in web and desktop clients connected
52to the thread. Mobile clients show device activity in the thread timeline. Agents drive the device through the `agent-device` command line. T3
53Code installs and starts it only after **Agent device access** is enabled. iOS
54taps build a small test runner on first use, which takes a couple of minutes
55once per server. Restart an existing agent session after granting access so it
56receives the device CLI environment.
57
58To keep agents away from simulators, turn off **Agent device access** in
59**Settings → Integrations → Devices**. This hides the device tools from agents
60started from then on; your own Device panel is unaffected.
61
62## Remote connections
63
64The device stream goes through the environment server, so it works over the
65local network, Tailscale, and T3 Connect. Live video needs a secure page
66(HTTPS or localhost); on a plain-HTTP remote origin iOS falls back to a slower
67still-image stream and Android cannot show video.
68
69## SSH device hosts
70
71In Settings → Integrations → Devices, select one connected environment
72and add a host under **Device hosts**. Enter an SSH alias or `user@host`, with
73an optional identity file and port. These resolve on the environment server,
74so use the SSH configuration and keys available there. Password prompts are
75not supported.
76
77**Test connection** checks SSH, Node, npm, and platform tools without installing
78anything. The first device listing installs pinned device tools on the host.
79Node 22 or newer and npm must be available to non-interactive SSH commands.
80T3 checks common Homebrew and Android SDK locations; custom installations need
81the appropriate PATH and ANDROID_HOME on the host.
82
83The picker identifies devices by host when several hosts are configured.
84Connections recover after interruptions. Removing a host closes its device
85sessions and stops its T3 helpers when reachable; simulators keep running.
86
87T3 provides discovery, streaming, and control. Arrange app builds,
88installation, and connectivity to development servers such as Metro separately.
89A simulator on another machine cannot reach Metro through your environment's
90localhost without forwarding or another reachable address.