---
title: "T3 Code Explained: Controlling Claude Code & Codex From Anywhere"
description: "Deep dive into pingdotgg/t3code (80.8K stars, MIT): Effect server, libghostty-vt terminal, T3 Connect DPoP tunnels, and the telemetry & trademark traps."
pubDate: "2026-11-26"
lang: "en"
slug: "t3code-explained"
url: "https://hoangyell.com/t3code-explained/"
author: "HoangYell"
translation_vi: "https://hoangyell.com/vi/t3code-explained/"
categories: ["AI & Agents"]
tags: ["t3code", "ai-agents", "claude-code", "codex", "developer-tools", "effect-ts"]
heroImage: "https://raw.githubusercontent.com/HoangGeek/store/main/webp/ai-t3code-explained-hero.webp"
---

You kick off a long Claude Code refactor at your desk, step away for dinner, and suddenly realize the agent is parked on a bash permission prompt inside a local terminal tab nobody else can touch. Worse, your Codex subscription holds a cleaner test pass on another branch while your laptop sits locked three rooms away.

[`pingdotgg/t3code`](https://github.com/pingdotgg/t3code) ([t3.codes](https://t3.codes/)) exploded past **80,800 GitHub stars** (14,263 forks, `v0.1.13`, MIT code license) by treating coding agents as network-addressable sessions instead of fragile terminal tabs. Your machine still runs the models using your existing subscriptions, while desktop, browser, and native iOS/Android clients attach to that single state machine over authenticated **RPC (remote procedure calls)**.

Before wiring it onto a daily workstation, I inspected the repository and audited the `17,726`-line Effect orchestrator (`apps/server/src/orchestration-v2/Orchestrator.ts`), `ws.ts`, `AnalyticsService.ts`, `Identify.ts`, `TRADEMARK.md`, and `SECURITY.md`. The client-server architecture and Ghostty-backed terminal are genuinely impressive, yet the November 2026 telemetry blowup, opt-out default tracking, zero OS sandboxing, and lack of local LLM support deserve a blunt breakdown.

## TL;DR

> **Fast Breakdown:**
> - **What is T3 Code?** An MIT-licensed control plane (`pingdotgg/t3code`) built on Effect TS, SQLite, Electron, React, and Expo that lets you launch, steer, review diffs, and open PRs for Claude Code, Codex, Cursor, OpenCode, Pi, Grok, Antigravity, and ACP agents from desktop, web, or phone.
> - **Why Developers Use It**: Uses your existing CLI subscriptions without token markups, swaps agents mid-thread with budgeted handoffs, embeds `libghostty-vt` terminals, and tunnels remote machines cleanly via Tailscale or DPoP-authenticated T3 Connect.
> - **The Unspoken Catch**: Product telemetry (`ingest.t3.codes`) and Axiom relay tracing ship enabled by default outside CI with no desktop settings toggle, hosted local models are unsupported by design, and the server runs completely unsandboxed under your OS user.
> - **Repository**: [pingdotgg/t3code on GitHub](https://github.com/pingdotgg/t3code) (MIT License for code · Strict `TRADEMARK.md` · 80.8K+ Stars).

***

## Mental Model: One State Machine, Every Screen

Terminal wrappers fall apart the second you close a laptop lid or switch screens because the conversation history lives inside one volatile **PTY (pseudo-terminal session)**. Close that pane or switch from Claude to Codex, and your context, diffs, and approval queue vanish.

T3 Code separates the **Host Environment (your computer running `apps/server`)** from every **Client Surface (Electron desktop, `app.t3.codes`, iOS, Android)**. One **Event Store (append-only SQLite log)** owns Git worktrees, hidden-ref workspace checkpoints, terminal streams, and provider adapters through `packages/client-runtime`, so your phone and desktop render the exact same thread in real time.

```markdy
scene duration=20 layout=TB width=760 height=1040
theme: light=doodle dark=nebula

user Dev "Desktop / Phone / Web"
gateway Tunnel "Tailscale / LAN / T3 Connect (DPoP)"
service Server "Effect Server + Orchestrator (ws.ts)"
database SQLite "SQLite Event Store + Hidden Refs"
service CLI "BYOS CLIs (Claude / Codex / Pi / ACP)"

beat pair "1. Authenticate & Bind Socket":
  show $nodes stagger=50ms
  Dev -> Tunnel "Pair / DPoP bootstrap"
  Tunnel -> Server "WS RPC + scoped ticket"
  glow Tunnel color=#3b82f6

beat persist "2. Commit Intent & Dispatch":
  Server -> SQLite "Atomic event + outbox write"
  Server -> CLI "Spawn worktree & provider turn"
  glow Server color=#22c55e

beat steer "3. Stream Diffs & Mobile Approve":
  CLI -> Server "Tool logs + libghostty-vt PTY"
  Server -> Dev "Push approval & 1-click PR"
  glow Dev color=#f59e0b

player:
  playback:
    loop true
  controls:
    speed true
    speeds "0.25"
    interact true
    fullscreen true
    gif true
    theme true
  interaction:
    zoom true
    pan true
    click_to_play true
    double_click_to_reset true
    keyboard false
  chrome:
    badge true
    progress none
```

***

## Problem Reality: Escaping Local Worktree Isolation

Juggling parallel agent branches inside raw terminal multiplexers works until you leave your desk or hit a model limit mid-task. Every provider traps its own auth, history, and approval prompt inside separate CLI formats.

![Image](https://raw.githubusercontent.com/HoangGeek/store/main/webp/ai-t3code-explained-gallery-01.webp)

Once developers tried running `t3 up` on headless VMs and Mac Studios, two capabilities drove most of the viral word-of-mouth on X: zero-VPN remote approvals from mobile and a real embedded terminal that handles full-screen TUIs instead of choking on ANSI escape codes.

> 
> ([source](https://x.com/i/status/2089581739887014376))

Checking the repository internals explains why users reacted that way:

- **DPoP-bound T3 Connect + zero-config Tailscale**: `infra/relay` coordinates a local `cloudflared` tunnel using **DPoP (Demonstration of Proof-of-Possession)** keys so the relay mints bootstrap credentials without sitting on your WebSocket data path or reading session tokens. Free accounts connect up to `3` host machines (`10` or `100` if linked to T3 Chat Pro/Premier), alongside native LAN pairing and Tailscale HTTPS (`t3 serve --tailscale-serve`).
- **Ghostty VT (`libghostty-vt`) across desktop, web, and phone**: Instead of bolting a sluggish naive wrapper onto `node-pty`, `native/libghostty-vt` compiles Ghostty's terminal parser for web WASM, Electron, iOS (`GhosttyKit.xcframework`), and Android so `nvim`, `htop`, and interactive TUIs render cleanly inside threads.

> 
> ([source](https://x.com/i/status/2104046763418263999))

> 
> ([source](https://x.com/i/status/2080949310401757306))

***

## Under the Hood: Event Sourcing, Portable Handoffs, and Hardening

Inside `apps/server`, T3 Code is built almost entirely in strict **Effect TS (typed functional runtime)** backed by Node's built-in `node:sqlite` across `150` migration files. Every user action first hits `Orchestrator.ts` to produce pure domain events; `EventSink.ts` commits the event, persisted projections, command receipts, and outbox jobs in one SQLite transaction, and `EffectWorker.ts` runs external I/O only afterward so crashes never corrupt state.

When you switch from Claude to Codex mid-conversation, T3 Code avoids raw transcript dumps and instead packages a budgeted **Portable Handoff** (`T3CODE_CONTEXT_HANDOFF_TOKEN_CAP`, defaulting to `16,000` tokens) prioritizing the opening prompt, recent turns, and command outcomes while leaving hidden Git-ref workspace checkpoints intact. If you want multi-stage durable automation that survives server restarts, drop a `.ts` script into `~/.t3/workflows/` or check a `t3.json` file into your repo for shared worktree setup scripts.

Boot the headless daemon with telemetry explicitly stripped and Linux OOM protection armed:

```bash
# 1. Install the standalone t3 CLI and write strict privacy defaults
curl -fsSL https://t3.codes/install.sh | sh
mkdir -p ~/.t3
cat <<'EOF' > ~/.t3/service.env
DO_NOT_TRACK=1
T3CODE_TELEMETRY_ENABLED=false
T3CODE_OTEL_SDK_DISABLED=true
T3CODE_HOST=127.0.0.1
EOF
chmod 600 ~/.t3/service.env

# 2. Install background service, enable Linux OOM protection, and pair via Tailscale
t3 service install
t3 service protect
t3 pair --tailscale
```

Script agents directly from CI or host cron hooks without opening a browser:

```bash
# Start an isolated worktree thread, steer it synchronously, and inspect SQLite health
THREAD_ID=$(t3 thread start . "Audit auth middleware for missing scope checks" --worktree main --json | jq -r '.threadId')
t3 thread send "$THREAD_ID" "Write regression tests for the failing route" --provider codex --wait
t3 doctor --dry-run
```

***

## The Rough Edges: Telemetry Fallout, Zero Sandbox, and Trademark Locks

Fast-moving `80K`-star monorepos accumulate sharp edges fast, and reading the commit history alongside `SECURITY.md` exposes four non-trivial caveats before you install `t3` on a work laptop.

![Image](https://raw.githubusercontent.com/HoangGeek/store/main/webp/ai-t3code-explained-gallery-02.webp)

### 1. The Telemetry Backlash and Opt-Out Default

In October 2026 (`e2875821`, PR `#21506`), `Identify.ts` began reading local `~/.codex/auth.json` and `~/.claude.json` credential files to generate unsalted SHA-256 hashes for cross-machine deduplication, while maintainers closed multiple community PRs asking for a desktop settings toggle (`#13458`, `#27077`). After viral X threads documented the behavior and triggered a formal GDPR complaint on November 24, maintainers merged PR `#42299` (`84e4264b`) hours later, removing all provider file reads, switching `distinct_id` to a random local UUID hash (`anonymousIdPath`), and redacting unrecognized model IDs to `custom:<driver>`.

> 
> ([source](https://x.com/i/status/2125210190005846326))

> 
> ([source](https://x.com/i/status/2125224970959605857))

Even after that fix, `AnalyticsService.ts` still defaults to **opt-out** outside CI (`https://ingest.t3.codes/batch/`), and T3 Connect sends relay timings to Axiom. If your team bans outbound analytics entirely, export `DO_NOT_TRACK=1` + `T3CODE_OTEL_SDK_DISABLED=true` in `~/.t3/service.env`, block `ingest.t3.codes` via firewall/hosts, or look at zero-telemetry forks like `MiaAI-Lab/m3code` (which also wires in Ollama and `llama.cpp`).

### 2. Zero Filesystem Sandboxing by Design

Read `SECURITY.md` before exposing a host port: *"An environment is a T3 server running as an OS user. It is not a sandbox."* A default paired session grants `terminal:operate` and `orchestration:operate`, which equals an interactive shell under your OS account. While T3 Code guards local Git push hooks via digest checks below Full Access and forces manual approval on `t3.json` `worktreeLayout` commands, an agent in Full Access still inherits your local `~/.ssh` and cloud CLI permissions unless you run the daemon inside a dedicated Unix user or container.

### 3. Zero Local Model Support & Heavy Toolchain

The official FAQ is blunt: *"Does T3 Code support local models? No. T3 Code focuses on frontier coding agents."* Unlike `Pi Mono` or community fork `M3 Code`, upstream `pingdotgg/t3code` refuses to ship local inference server routing out of the box. Hacking on the repo yourself also demands Node `26.13.1`, `pnpm@12.14.0`, `vite-plus`, and Rust (`cargo`) for `native/resource-monitor`, plus `t3 doctor` maintenance requires ~2x active SQLite database free space during vacuum compaction.

### 4. MIT Code vs Strict Trademark Enforcement

Source code is MIT, yet `TRADEMARK.md` explicitly locks down the **T3 Code**, **T3 Connect**, and **T3 Tools** names, logos, and icons (`assets/`). Forking the engine for internal or public use requires stripping every T3 wordmark and brand asset and declaring the project unofficial. Note also that hosted `app.t3.codes` rejects plain `http://` LAN links and forces HTTPS (T3 Connect or Tailscale HTTPS).

***

## Decision Matrix: T3 Code vs Multica vs Orca

| Dimension | `pingdotgg/t3code` (`v0.1.13`) | `multica-ai/multica` (`v0.13.0`) | `stablyai/orca` |
|---|---|---|---|
| **Primary Job** | Personal cross-device agent control plane | Shared team Kanban issue board + daemon pool | Solo desktop parallel worktree IDE |
| **Supported Agents** | Claude, Codex, Cursor, OpenCode, Pi, Grok, Antigravity, Kiro, Muse, fx, ACP | `31` local CLIs (explicitly blocks `gemini` CLI) | Bring-your-own CLIs (`claude`, `codex`, `grok`, `agy`) |
| **Mobile & Remote** | Native iOS/Android apps + T3 Connect (DPoP) + SSH + Tailscale | Web UI + Go daemon WS (self-host Postgres 17 + Next.js) | Mobile companion + Remote SSH |
| **Terminal & Diffs** | `libghostty-vt` TUI-capable terminals + `@pierre/diffs` + 1-click PR | Tool-call stream logs only (no built-in diff viewer) | Split PTY terminals + inline diff viewer |
| **Local LLMs & Privacy** | No native local models; telemetry opt-out (`DO_NOT_TRACK=1`) | Routes via wrapped CLIs; daily telemetry (`DO_NOT_TRACK=1`) | Local CLI configs; desktop-first |
| **License & Traps** | MIT code + strict `TRADEMARK.md` branding lock | Source-available Multica License + commercial `ee/` | MIT License |

### When Your Setup Does NOT Need T3 Code

Skip upstream `t3code` when your environment hits any of these four constraints:

- **Offline or local-weight inference (`llama.cpp`, Ollama, vLLM)**: Upstream T3 Code targets frontier cloud subscriptions exclusively; pick `Pi Mono`, `OpenCode`, or the `m3code` fork instead.
- **Multi-engineer shared issue boards**: T3 Code excels for one operator driving multiple boxes and phones; teams wanting shared Kanban queues, `@mention` agent handoffs, and PR review columns fit `Multica` better.
- **Zero-config strict air-gap compliance**: Deploying upstream binaries without setting `DO_NOT_TRACK=1` and `T3CODE_OTEL_SDK_DISABLED=true` emits usage batches by default and assumes external OAuth/relay endpoints for T3 Connect.
- **Minimalist pure-terminal purists**: If you live inside `tmux` + Neovim on one workstation and never approve runs from your phone, launching `claude` or `codex` directly avoids a `17K`-line Effect orchestrator layer and Electron memory overhead.

***

## Final Take

`pingdotgg/t3code` delivers the slickest remote UX in the coding-agent ecosystem right now: Ghostty-grade terminals on your phone, seamless mid-thread provider handoffs, and an Effect + SQLite event spine engineered to survive disconnects without corrupting worktrees. Just do not swallow the *"zero-overhead magic"* pitch uncritically - lock down `DO_NOT_TRACK=1` and `T3CODE_OTEL_SDK_DISABLED=true` in `~/.t3/service.env` on minute one, isolate the daemon user from your personal SSH keys, and reach for `t3 pair --tailscale` if you want direct encrypted access without third-party relay caps.

### Hands-On Challenge (15-Minute Test)

Verify T3 Code's local daemon, SQLite state directory, and telemetry kill-switch on a disposable folder before touching real repositories:

1. Create a clean `~/.t3/service.env` with `DO_NOT_TRACK=1`, `T3CODE_TELEMETRY_ENABLED=false`, and `T3CODE_OTEL_SDK_DISABLED=true`, then boot an ephemeral session via `npx t3@latest`.
2. Open a scratch Git repository, launch a terminal pane inside T3 Code, and run an interactive TUI (`htop` or `nvim`) to test `libghostty-vt` rendering responsiveness.
3. Run `t3 doctor --dry-run` and inspect `~/.t3/userdata/` to verify the SQLite database layout and confirm `anonymousIdPath` stays isolated from `~/.claude.json` and `~/.codex/auth.json`.

***

## Frequently Asked Questions (FAQ)

**1. Does T3 Code still read `~/.claude.json` or `~/.codex/auth.json` for telemetry?**

No. Although October 2026 builds (`PR #21506`) hashed local Codex and Claude account IDs inside `Identify.ts`, maintainers merged `PR #42299` on November 24, 2026, removing all provider file reads and switching `distinct_id` to a random UUID stored in the T3 state directory. However, product telemetry to `ingest.t3.codes` still defaults to on outside CI unless you set `DO_NOT_TRACK=1` or `T3CODE_TELEMETRY_ENABLED=false`.

**2. Can I use my existing Claude Code or ChatGPT Codex subscription without paying T3 Tools?**

Yes. T3 Code does not resell API tokens; it drives the authenticated provider CLIs already installed on your server machine (`claude auth login`, `codex login`, `opencode auth`, etc.). T3 Connect's cloud relay is free for up to `3` host machines per account, and direct LAN or Tailscale pairing has no machine cap.

**3. Is T3 Code safe to expose to the public internet?**

Only behind authenticated endpoints such as T3 Connect (DPoP-bound bootstrap tokens), Tailscale HTTPS, or explicit pairing links (`t3 pair`) with scoped permissions. Per `SECURITY.md`, the T3 server does not sandbox filesystems or terminals, so any full-scope client session carries full shell privileges for the OS user running `t3`.

**4. Can I run local open-weight models inside upstream T3 Code?**

Not natively. The maintainers state in `docs/user/faq.md` that T3 Code focuses strictly on frontier coding agents. You can point a custom Claude/OpenRouter endpoint in provider settings, use an ACP bridge, or run the community fork `m3code` which adds built-in `llama.cpp` and Ollama server registries.
