Replacing Herdr + Ovis with T3 Code: Connecting Three Machines and Cross-Host Access
Contents
In two earlier posts—Running Ovis on an Always-On Mac: Multi-Device Agent Management in Practice and Dual-Entry Latency Benchmark for Ovis—I kept an always-on M1 Mac as my main Ovis control plane while hosting long-running Herdr sessions on an Oracle VPS. Just days after turning my idle RTX 4070 SUPER desktop into an on-demand compute node, I switched to T3 Code (v0.1.11), and it replaced that entire Herdr + Ovis setup almost immediately.
The topology is now inverted. My always-on Oracle VPS serves the main web entry point, while my M1 Mac and 4070S desktop at home run lightweight headless servers linked back to Oracle via reverse SSH tunnels and Caddy. From any desktop browser or phone, I open one URL and switch across all three machines in the same sidebar.
flowchart TB
CLIENT["Desktop Browser / Mobile App"] --> ENTRY["Oracle Caddy Auto-HTTPS"]
ENTRY -->|"t3.example.com → 127.0.0.1:3737"| ORACLE["Oracle VPS: T3 Code 0.1.11"]
ENTRY -->|"t3m1.example.com → 127.0.0.1:3738"| T1["autossh Reverse Tunnel"]
ENTRY -->|"t3pc.example.com → 127.0.0.1:3739"| T2["SSH Reverse Tunnel"]
T1 --> M1["M1 Mac: Headless T3 Code (127.0.0.1:3773)"]
T2 --> PC["4070S WSL2: Headless T3 Code (127.0.0.1:3773)"]
Headless Servers All the Way Down, Backed by Reverse SSH and Caddy
My M1 Mac already runs plenty of background services, and I did not want another Electron desktop app on top of them. Checking the v0.1.11 release showed an official native darwin-arm64 headless CLI built from the same server binary as Linux, so I run it under macOS launchd instead:
t3 serve --mode web --host 127.0.0.1 --port 3773 --no-browser
Attaching the M1 to my self-hosted Oracle web UI comes with two constraints built into T3 Code. First, the frontend only enables T3 Connect on t3.codes domains and the desktop app; self-hosted domains disable it automatically, leaving Remote link (URL plus pairing code) as the connection method. Second, browsers connect directly to each remote environment rather than proxying through the main server, HTTPS pages block plaintext LAN targets, and T3 Code’s API and WebSocket routes all live at the origin root—so each machine needs its own HTTPS subdomain rather than a subpath.
To avoid adding another relay layer like Cloudflare Tunnel or Tailscale, I reused the SSH tunnel to Oracle and its existing Caddy instance. Oracle runs its own server on 127.0.0.1:3737, the M1 forwards into Oracle’s 127.0.0.1:3738 via autossh, and the 4070S forwards into 127.0.0.1:3739. Caddy terminates TLS for each subdomain automatically, with flush_interval -1 so streaming output is never buffered.
Two deployment details are worth watching out for. On Oracle’s sshd, setting ClientAliveInterval 30 and ClientAliveCountMax 3 keeps dead tunnel sockets from locking up forwarded ports after a disconnect. Before editing /etc/caddy/Caddyfile, it is also worth checking Caddy’s live in-memory config—my original main domain route had been pushed via the Admin API without ever being written to disk, so a blind reload would have wiped it out.
Bringing in the 4070S: Windows + WSL2 and Tunnel Troubleshooting
Once the M1 was connected, running multiple concurrent agents still pushed the fanless 16 GB machine against its limits, so I brought my 32 GB desktop with an RTX 4070 SUPER into T3 Code to take over heavier day-to-day work.
The OS layout landed on Windows 11 as the host plus WSL2 (Ubuntu 24.04). Native Linux was ruled out because my browser automation tool ego lite only ships for macOS and Windows, while native Windows still lacks proper Linux command sandboxing for Claude Code and Codex. Running T3 Code and the agent CLIs inside WSL2 gives me a native Linux environment with working GPU passthrough, while still calling Windows’s ego-browser.exe directly across the interop boundary.
I also shifted the desktop’s power schedule from sleep-after-every-job to daytime always-on: the M1 sends a Wake-on-LAN packet at 9:00 AM so the desktop stays ready all day, and between 1:00 AM and 9:00 AM it drops into S3 sleep after 10 minutes of confirmed idle across both Windows and WSL2.
On the first evening after connecting the 4070S, the web UI felt noticeably sluggish compared to the M1. Local responses inside WSL2 measured only 1.8 to 7.1 ms—the bottleneck was the tunnel path itself. To avoid depending on a proxy, I had initially pointed the 4070S tunnel straight from home broadband to Oracle. During evening peak hours, cross-border retransmission loss jumped to 11.2%, leaving hung connections parked on Oracle’s port 3739. Every reconnect hit remote port forwarding failed for listen port 3739, and public probes timed out repeatedly.
The fix was switching the 4070S tunnel to route through the proxy like the M1, and adding an ExecStartPre hook in t3code-oracle-tunnel.service to clear any stale :3739 listener on Oracle before reconnecting:
ExecStartPre=-/usr/bin/ssh -o BatchMode=yes -o ConnectTimeout=10 oracle "ss -tlnp 'sport = :3739' | tr ',' '\n' | grep '^pid=' | cut -d= -f2 | xargs -r kill -9"
ExecStart=/usr/bin/ssh -N -o BatchMode=yes -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o ConnectTimeout=10 -R 127.0.0.1:3739:127.0.0.1:3773 oracle
Re-testing right after the change brought public probes back to 100% HTTP 200 in 0.64 to 1.02 seconds, matching the M1.
Two Boundaries to Know: Per-Device Sync and Cross-Host Access
Once all three machines live in one sidebar, two architectural boundaries are easy to mix up.
The first is the split between client credentials and session data. Adding the M1 and 4070S on Computer A does not make them appear when you open the same domain on Computer B or a phone. Remote environment entries, URLs, and per-device DPoP keys stay inside the local browser’s IndexedDB rather than on the Oracle server, which lets you revoke a single device independently. All projects, conversation history, and live output stay in each host’s SQLite database. On each new device, run t3 pair on the target machine and link it once; after that, sessions stay in real-time sync across every paired device, with only unsent composer drafts remaining local.
The second is the split between UI aggregation and server-to-server access. Seeing three machines in one sidebar does not let an agent on one host read threads on another. Native cross-host thread lookup and task delegation require enabling Settings → Labs → Linked environments on each server and pairing directed links—linking A to B does not automatically let B read A.
Because passwordless SSH was already working from the 4070S to both Oracle and the M1, I had AI wire up the full mesh in one pass: writing linkedEnvironmentsEnabled: true across all three hosts (which hot-reloads without restarting any server) and minting pairing codes for all 6 directed links. Every link is scoped to minimal read-only access—enough for cross-host thread search, thread reads, and project inspection without allowing accidental remote writes or execution. Running t3 environment list confirmed all 6 links as reachable, so an agent on any machine can now read past threads on the other two directly.
Two Operational Notes
First, telemetry and privacy. Shortly after I got all three machines running, the community raised alarms about T3 Code enabling telemetry by default and reading ~/.claude.json and ~/.codex/auth.json. I audited the v0.1.11 binary and trace logs across my Oracle VPS, M1 Mac, and WSL2 host, then cut outbound telemetry to zero using service environment variables, a machine-level policy.json, and proxy rules. The full audit and exact configuration live in a separate post: Auditing the T3 Code Telemetry Controversy: What It Actually Sends and How to Shut It Off. If you run self-hosted headless servers, it is worth locking that down alongside your setup.
Second, running as root on Linux. My Oracle t3code.service runs under root, and starting a Claude Code thread in Full access mode fails immediately because Claude Code CLI blocks --dangerously-skip-permissions under root. Rather than migrating the entire server’s files and user accounts, switching the thread mode to Auto—or setting permissions.disableBypassPermissionsMode to disable in ~/.claude/settings.json so T3 Code automatically downgrades to auto—resolves it cleanly.
FAQ
Do I need to install the Electron desktop app to run T3 Code on macOS?
darwin-arm64 headless CLI binary from the same server codebase as Linux, with no Electron shell. On my M1 Mac, I run t3 serve --mode web --host 127.0.0.1 --port 3773 --no-browser under launchd and expose it through a reverse SSH tunnel to Caddy on my Oracle VPS for the full web UI.Why does a self-hosted T3 Code domain disable T3 Connect and reject subpath reverse proxies?
t3.codes domains and the desktop app; self-hosted domains fall back to pairing via Remote link. Because the browser connects directly to each remote server, HTTPS pages cannot connect to plaintext LAN URLs, and T3 Code serves its API and WebSocket endpoints from the origin root—so each machine needs its own HTTPS subdomain with flush_interval -1 in Caddy for streaming.Why do remote environments disappear when I open my T3 Code web UI on another computer or phone?
t3 pair on the target host and pair once; all projects, chat history, and live streams live in each server’s SQLite database and stay in sync immediately (only unsent input drafts stay local).If I can see multiple machines in the T3 Code sidebar, why can't an agent read a thread on another host?
Settings → Labs → Linked environments on each machine and creating directed server-to-server links. Across my Oracle VPS, M1 Mac, and WSL2 host, setting linkedEnvironmentsEnabled: true took effect live without restarts, and pairing 6 directed read-only links (all reachable in t3 environment list) let any machine search and read threads on the other two.How do I fix repeated `remote port forwarding failed` errors on a WSL2 reverse SSH tunnel?
3739 open on the server. Routing the tunnel through a proxy, adding ClientAliveInterval 30 and ClientAliveCountMax 3 to Oracle’s sshd, and adding an ExecStartPre hook in t3code-oracle-tunnel.service to kill stale :3739 listeners before reconnecting brought public probes back to 100% HTTP 200 at 0.64 to 1.02 seconds.Why does Claude Code fail to start in `Full access` mode when T3 Code runs as root on Linux?
--dangerously-skip-permissions under root, and T3 Code’s Full access mode passes that flag unconditionally. You do not need to migrate your entire server user layout: switch the thread permission mode to Auto, or set permissions.disableBypassPermissionsMode to disable in ~/.claude/settings.json so T3 Code automatically downgrades to auto.
Comments
Spot a flaw, hit the same snag, or just want to say hi — leave a note below.
Loading comments…