Drive T3 Code from your phone, browser (app.t3.codes), or another desktop app while your agents run on a host computer or server. The host must stay awake and running while you work.
T3 Connect links your host to your other devices without router port-forwarding.
- Desktop host: Open Settings → Sharing & access, sign in, and turn on T3 Connect (note: closing the desktop app's last window stops its local server—use the background service for unattended access).
- CLI / headless host: Run
t3 up(ort3 connect/t3 up --connect --lan --yesfor non-interactive scripts) and complete the printed sign-in link on any device. Check status witht3 status [--json]. - Other devices: Sign in to the same T3 Connect account and pick the environment.
By default, any device signed into your T3 Connect account can connect. Turn on Require approval for new devices in Settings → Sharing & access on the host so new devices must present a short code (valid 10 minutes) that you approve from an existing device or via t3 auth connect-device approve <code>. Revoke devices anytime in Settings → Sharing & access or t3 auth connect-device revoke <code>.
Free T3 Connect accounts can link up to 3 host machines (phones and browsers don't count). Link a paid T3 Chat account from your account menu → T3 Chat → Link T3 Chat to raise the limit to 10 (Pro) or 100 (Premier).
- Desktop host: Enable Settings → Sharing & access → Network access (restarts desktop) and create a one-time pairing link.
- CLI host: Run
t3 up --lan(background service) ort3 serve --lan(foreground), then runt3 pairto generate a QR code / pairing URL (t3code://pairopens directly in the desktop app). - Hosted web app (
app.t3.codes): Requires an HTTPS endpoint (T3 Connect or Tailscale HTTPS). For plain HTTP on a LAN, open the direct pairing URL in a local browser or pair from the desktop/mobile app. For custom CAs on Android, install the CA certificate in Android security settings. - Session lifetime: Paired devices stay signed in while active; sessions unused for 30 days must re-pair.
A host can have multiple routes (LAN, Tailscale, VPN, public URL, SSH, T3 Connect). T3 Code automatically learns LAN and Tailscale routes when network access is enabled, connects over the fastest working route, and switches back to higher-priority routes when you return home. Reorder or add routes in Settings → Environments (Add route).
Join both devices to a tailnet with MagicDNS and HTTPS certificates enabled (on Linux, grant operator permission).
- Desktop: Enable Settings → Sharing & access → Tailscale HTTPS.
- CLI: Run
t3 serve --tailscale-serveort3 pair --tailscale(use--tailscale-serve-portif 443 is taken; remove withtailscale serve --https=443 --set-path=/ off).
On web and desktop with 2+ connected machines, enable Settings → Environments → Load balancing (per client) to auto-select a host for new threads in shared projects. Set each machine to Prefer, Normal, Less often, or Manual only.
In the desktop app, open Settings → Environments → Add environment → SSH and enter a host or SSH alias (e.g. user@example.com). T3 Code downloads its runtime to ~/.t3/runtime on the Linux or Apple Silicon macOS host, starts or reuses a server, and manages port forwarding automatically.
- Provider CLIs must be on a non-interactive login shell's
PATH(check withssh user@example.com 'sh -lc "command -v claude codex"'). - For 2FA/Duo hosts on macOS/Linux, enable SSH
ControlMasterin~/.ssh/configand open a terminal SSH session first. - Revoke unused SSH sessions in Settings → Sharing & access or
t3 auth session revoke <id>.
Browser tabs belong to the host environment so you and your agents share them from any device.
- Streaming & local loading: Web and mobile stream tabs from the host. In the desktop app, tabs you open for a remote environment load locally while routing
localhostrequests to the host over the preview tunnel (so element picker and annotations work locally). - Port forwarding (desktop): Forward any remote host port to your local
localhostvia the thread's Servers list or Forwarded ports in the command palette (Cmd/Ctrl-clickforwards and opens in your browser). - Open on this device (mobile): Tap Open on this device on a streamed
localhosttab or long-press alocalhostlink in chat for native touch scrolling. - Disable preview tunnel: Turn off Settings → Sharing & access → Preview tunnel on the host (or via managed policy) to disable port forwarding and Open on this device (streamed tabs continue working).
- Take control: Click Take control before typing into an agent's tab, and release control when done.
- Local servers: T3 Code lists listening ports from your terminals and agents as
http://localhost:<port>(set a script's Preview URL for HTTPS or subpaths). Disable discovery withT3CODE_PORT_DISCOVERY=0.
The first server browser tab downloads ~120 MB headless Chromium (shared with HTML renders). On Ubuntu 23.10+ or minimal Linux containers, run the one-time setup command on the host:
sudo t3 browser setupThis installs an AppArmor profile for Chrome's sandbox plus missing libraries and fonts. Never run the T3 server as root (Chrome's sandbox rejects root); if sandboxing is impossible on your host, set T3CODE_SERVER_BROWSER_SANDBOX=0 in the server environment and restart.
Link two T3 Code machines (beta) so agents on one can launch, message, delegate to, and manage threads on the other.
- Enable Settings → Labs → Linked environments on both machines (or
"linkedEnvironmentsEnabled": trueinuserdata/settings.json). - On the source machine, open Settings → Environments → Linked environments → Link (or drag from one machine's
+to another on the Environments map, or runt3 environment link <address> --pairing-code <code> --access <mode>). Use Link several… or--from <file>for batch linking. - Links are one-way (tick Also link … back for two-way) and do not chain. Links expire after 30 days of inactivity and can be revoked in Settings → Sharing & access or Forget.
- Access boundary: Agents never get more permissions on the target than the link's access level or their own thread mode. Below Full access, linked agents can only modify threads they started and skip project setup scripts.
- Delegation: Agents can target a linked machine with
delegate_task, or ask you to link an unlinked machine via an in-thread approval card.
Open a delegated task or thread link on a linked machine to follow it live (read-only) in the right panel without pairing your client directly. Click Connect to interact to pair and take action (one-click if the link has Full access and you can manage access). Files, images, and HTML renders stay on the remote machine until you connect directly.
Manage pairing links and active client sessions in Settings → Sharing & access or via t3 auth --help.
- Scoped tokens: Pass
--scope <scope>(repeatable) tot3 pair,t3 auth pairing create, ort3 auth session issueto restrict permissions (e.g.orchestration:read,source-control:write,filesystem:read,filesystem:write,terminal:operate,relay:configure). Re-pair with a fresh link to change an existing client's scopes. - Deregister from T3 Connect: Open your account menu → T3 Connect → Deregister (or
t3 connect unlink/t3 connect logouton CLI hosts). Idle tunnels are automatically cleaned up after 5–10 minutes offline and recreated on reconnect (hosts on older versions offline for 7+ days need an update first). - Treat pairing URLs and codes as passwords—never paste them into logs or screenshots.
Switch off Settings → Environments → Local environment in the desktop app to run with no local server, WSL backend, or incoming connections while continuing to drive remote hosts (if a local background service uses the same T3 home, Open in still works locally).
See T3 Connect troubleshooting for step-by-step connection diagnostics, and Outside agents for MCP connections.