· reAPI Team
How T3 Code Runs Claude Code, Codex, and Custom APIs
How T3 Code v0.1.12+ drives Claude Code, Codex, and ACP harnesses: architecture, Nov 25 telemetry audit, custom API routing, and Herdr vs T3 Code.

Open three terminal tabs (one running Claude Code, one running Codex CLI, and a third tailing a dev server), and the bottleneck stops being model intelligence. Tracking which branch each agent mutated, which shell command stalled behind an approval prompt, and which provider quota just hit its ceiling takes more attention than writing the diff.
T3 Code (pingdotgg/t3code) exists to solve that exact coordination layer. Built by Theo Browne, Julius Marminge, and contributors at T3 Tools under the MIT license, it is neither an LLM nor a coding harness of its own. Instead, a local Node.js server orchestrates the official coding-agent CLIs already installed and authenticated on your computer (Claude Code, Codex, Cursor, OpenCode, Grok Build, Google Antigravity, Kiro, Pi, Muse Code, fx, and generic ACP Registry agents) behind one desktop, web, and mobile client surface.[1][2]
Most search results covering this tool as of December 1, 2026 are already behind the repository. Early guides still describe v0.0.45 alpha, warn about a Claude five-hour quota drain that was fixed back in v0.1.7, and miss both the v0.1.12 multi-repository release (November 25, 2026) and the November 24–25 telemetry blowup that forced a rapid change to how unique installs are counted.[3][4][5] Below is a primary-source breakdown of how the server actually works, how to wire Claude Code and custom API gateways safely alongside existing subscriptions, how to shut off all four telemetry and notification streams, and where Herdr or native vendor apps remain the cleaner choice.
Inside the T3 Code Control Plane Architecture
A coding model generates tokens; a harness such as Claude Code or Codex CLI wraps that model with file tools, shell execution, permissions, and session state. Sitting one layer above those harnesses, T3 Code runs a persistent server process on the machine that holds your repositories and credentials.[2] Every visible surface (the Electron desktop app, the local or hosted web UI at app.t3.codes, and the iOS and Android companion apps) is a thin client connected over one authenticated Effect RPC WebSocket (/ws).[6]
Four architectural decisions separate this design from simple terminal wrappers:
- Event-sourced local SQLite (
~/.t3/userdata/statev2.sqlite): Introduced with the Orchestrator V2 line (v0.1.0, October 15, 2026), commands pass through a serialized worker that commits events and UI projections inside a single SQLite transaction via Node's built-innode:sqlite. Because state lives on the server rather than inside Electron windows, closing a laptop UI or restarting a client does not kill active threads or drop queued follow-ups.[6] - Structured protocol adapters instead of terminal scraping: Rather than parsing ANSI escape codes from pseudo-terminals, the server speaks each provider's native transport: Claude Code through the Claude Agent SDK, Codex through
codex app-serverJSON-RPC, Cursor and OpenCode through their official SDKs, and Grok Build, Antigravity, or third-party tools through Agent Client Protocol (ACPv2 preview with v1 fallback).[6] - Hidden Git refs for per-turn checkpoints: Around each user-agent turn, the server writes workspace snapshots to hidden local refs under
refs/t3/checkpoints/andrefs/t3/orchestration-v2/checkpoints/. Those refs never push to your remote, power four diff scopes (latest turn, per-commit, uncommitted, and full branch), and let you rewind files or conversation state from any earlier message.[6] - Multi-repo projects and durable workflows (
v0.1.12): Shipped on November 25, 2026 (with nightly builds already onv0.1.14-nightly.20261130by November 30),v0.1.12lets one thread span a folder of repositories,.code-workspaceentries, or Git submodules, checking out linked worktrees on matching branches in one turn alongside Effect-based TypeScript workflows stored in~/.t3/workflows/*.tsand browser tunnels with one-click localhost port forwarding.[4][6]
That same architecture explains two hard limits up front. First, there is no hosted cloud sandbox: if the host machine sleeps or loses network connectivity, remote clients lose control until it wakes.[3] Second, V2 servers (0.1.0+) and legacy V1 clients reject each other, so desktop apps, mobile apps, and headless servers must be updated together. Never run t3 update mid-turn, because restarting the server interrupts active provider processes.[6]
Installing T3 Code and Hardening New-Thread Defaults
You install the server on the machine that actually executes your code and holds provider logins, not on the phone or secondary laptop you use as a remote.[7]
| Platform / Target | Install Command or Source | Key Caveat Verified in Official Docs |
|---|---|---|
| Try once (no install) | npx t3@latest | Requires Node.js 22.16+, 23.11+, or 24.10+; runs latest stable[6][7] |
| CLI (macOS / Linux) | curl -fsSL https://t3.codes/install.sh | sh | Installs t3 into ~/.local/bin; no standalone binary for Intel Macs[7] |
| CLI (Windows PowerShell) | irm https://t3.codes/install.ps1 | iex | Windows supports Task Scheduler background service since v0.1.10[6][7] |
| macOS Desktop | brew install --cask t3-code | Bundles t3 CLI; Intel Macs should use desktop app or source build[7] |
| Windows Desktop | winget install T3Tools.T3Code or scoop install extras/t3code | WSL mode runs a dedicated server inside your chosen Linux distro[7] |
| Linux Desktop | .deb / AppImage from GitHub Releases, yay -S t3code-bin, or Nix flakes | On Ubuntu 23.10+, run sudo t3 browser setup for headless browser tabs[6][7] |
Before launching a single task on a real repository, change three defaults that trip up new installations.
Flip the New-Thread Permission Mode Off Full Access
New threads default to Full access, which executes shell commands and file mutations without approval prompts.[8] Open Settings → Threads → New threads → Permissions immediately and switch the global default to Supervised (asks before commands and file writes) or Auto (delegates routine approvals to the provider's native classifier on Codex, Claude, Grok Build, fx, and eligible Antigravity accounts, while OpenCode falls back to asking).[8]
When running below Full access, T3 Code also intercepts local Git hooks (pre-push, reference-transaction, or hook.<name>.command) before its built-in PR tool pushes a branch, showing the exact branch and hook command with no "always allow" bypass.[8] Direct shell commands (git push, gh pr create) still follow the underlying provider's command rules.
Keep Parallel Worktrees and Hidden Git Refs Clean
Selecting New worktree per thread prevents two agents from overwriting the same checkout, yet worktrees isolate only Git working trees, not TCP ports, local Postgres databases, or Docker container names.[6] Commit a repository-level t3.json (never placing secrets inside it) to automate setup, dynamic ports, and teardown when a thread settles:[6]
{
"$schema": "https://t3.codes/schema/t3.json",
"defaultThreadEnvMode": "worktree",
"scripts": [
{
"name": "Prepare worktree",
"command": "pnpm install --frozen-lockfile",
"runOnWorktreeCreate": true,
"async": false
},
{
"name": "Dev server",
"command": "pnpm dev --port 0",
"stopOnSettle": true
}
]
}One operational quirk deserves attention on asset-heavy repositories: because hidden refs/t3/* checkpoints are real Git refs, git gc will not reclaim rewritten history or deleted large binaries while older checkpoint refs still point to them.[6] Close T3 Code, list the checkpoint refs, then back up their full history before removing any checkpoints. The following commands create a new backup under your home directory.
git for-each-ref --sort=committerdate --format='%(committerdate:short) %(objectname) %(refname)' refs/t3
backup_dir=$(mktemp -d "$HOME/t3-checkpoints.XXXXXXXX") &&
git bundle create "$backup_dir/checkpoints.bundle" --glob='refs/t3/*' &&
git bundle verify "$backup_dir/checkpoints.bundle" &&
git bundle list-heads "$backup_dir/checkpoints.bundle"Keep the bundle. Only remove a checkpoint from a finished thread after its full ref name appears in the verified bundle. To restore a deleted checkpoint, set ref to its full saved name and run git fetch "$backup_dir/checkpoints.bundle" "$ref:$ref".
Wiring Claude Code, Codex, and Custom API Gateways in T3 Code
Every coding harness authenticates on the server host first (claude auth login, codex login, opencode auth login, grok login, or managed Google sign-in for Antigravity).[7] Because the app drives official binaries rather than third-party API shims, T3 Code stays inside vendor terms of service and preserves your existing CLAUDE.md, AGENTS.md, skills, and hooks.[3][9]
Two common pain points appear the moment you run three or four parallel worktrees: flat-rate subscriptions hit rate-limit windows faster under concurrency, and generating thread titles or commit messages burns coding-agent turns. T3 Code gives you clean multi-instance controls to solve both without touching your primary subscription login.
Adding a Pay-As-You-Go Claude Code API Instance Alongside Your Subscription
In docs/user/providers-claude.md, T3 Code explicitly supports running multiple isolated Claude instances via separate CLAUDE_CONFIG_DIR paths (never overriding HOME, which breaks OS keychain lookups).[9] That lets you keep a personal Claude Pro/Max login on one instance and attach an Anthropic-compatible API gateway such as reAPI on a second instance for burst concurrency or usage-based billing.
First, create an isolated config directory on the server host so session files never collide with ~/.claude:
mkdir -p ~/.claude_reapiNext, open Settings → Providers → Add provider → Claude, point CLAUDE_CONFIG_DIR path to ~/.claude_reapi, and set these entries under Environment variables (official docs stress placing env vars here rather than in Launch arguments, and marking secrets as Sensitive so the server never echoes them back to web or mobile clients):[9][10]
| Environment Variable | Value for reAPI Gateway | Why It Matters |
|---|---|---|
ANTHROPIC_BASE_URL | https://api.reapi.ai | Bare origin with no trailing /v1; Claude Code appends /v1/messages automatically[10] |
ANTHROPIC_AUTH_TOKEN | Your reAPI API key (mark Sensitive) | Sent as Authorization: Bearer[10] |
ANTHROPIC_API_KEY | (leave explicitly empty) | Prevents stale shell keys from overriding the bearer token[9][10] |
ANTHROPIC_DEFAULT_SONNET_MODEL | claude-sonnet-5-5 | Maps the default sonnet alias to Claude Sonnet 5.5[10] |
ANTHROPIC_DEFAULT_OPUS_MODEL | claude-opus-5-5 | Maps opus to Claude Opus 5.5 for heavy refactors[10] |
ANTHROPIC_DEFAULT_HAIKU_MODEL | claude-haiku-5-5 | Maps fast background subagents to Claude Haiku 5.5[10] |
If you run slow-booting CLI environments and hit readiness check errors on startup, export T3CODE_CLAUDE_PROBE_TIMEOUT_MS=60000 (or T3CODE_CODEX_PROBE_TIMEOUT_MS=60000) in ~/.t3/service.env.[7] For full token-tier mapping, verification curls, and troubleshooting codes (401, 404, 429), see our Coding Agents on reAPI guide and Claude Code third-party API walkthrough.
Offloading Titles and Commits to an OpenAI-Compatible Text Generator
By default, every new thread title, branch slug, commit message, PR body, and voice-dictation cleanup spawns a full coding-agent session.[11] Open Settings → Providers → Text generators → Add generator, pick Custom (OpenAI-compatible), set the base URL to https://api.reapi.ai/v1, paste your API key (or a 1Password op:// reference), and select a low-latency model such as DeepSeek V4.1 Flash (deepseek-v4.1-flash) or claude-haiku-5-5.[11][12] Then assign that generator under Settings → Threads → Text generation model and Settings → Source control & issues. Note one documented exception: PR Review Guides always run on a coding agent (Codex or Claude), never a text generator.[11]
The Protocol Boundary for Codex CLI
Be exact about what works with Codex CLI before wiring custom endpoints. Recent Codex CLI releases speak OpenAI's Responses API (wire_api = "responses") exclusively, whereas reAPI's published text endpoints implement /v1/chat/completions and /v1/messages.[10][13] Consequently, reAPI does not serve as a compatible model provider for Codex CLI. Keep Codex authenticated through your ChatGPT plan or codex login (using a separate CODEX_HOME shadow directory if you split work and personal accounts).[14] Codex threads can still call reAPI's image, video, and audio models as external tools by attaching the reAPI MCP server. If you ever hit SSE drop errors inside Codex sessions, our Codex stream disconnected diagnostic guide isolates parser closes from idle timeouts.
Cross-Provider Orchestration vs. Lossy Mid-Thread Switching
Switching providers mid-thread works, yet it is a portable handoff, not a live state transfer.[6] Short threads cross in full, while long threads pass a budgeted summary capped by T3CODE_CONTEXT_HANDOFF_TOKEN_CAP=16000 (tunable from 1,024 to 64,000 tokens); the outgoing model's private reasoning traces, raw tool internals, and attachments stay behind, forcing the incoming provider to fetch omitted turns on demand.[6] For multi-model reviews or parallel implementation (for example, drafting a refactor with Claude Opus 5.5 and having Codex audit edge cases), prefer delegate_task at clean task boundaries so each child agent works in an isolated worktree and returns structured results to the parent thread.
Remote Environments, Phone Approvals, and Security Boundaries
Remote steering is the main reason multi-machine developers adopt T3 Code over local desktop apps. You run t3 up (or t3 service install plus t3 service protect on Linux to guard the server, SSH, and Tailscale from the OOM killer) on an always-on workstation or VPS, then connect from a laptop browser or phone.[6]
| Remote Route | Host Setup | Free Limits & Trade-Off |
|---|---|---|
| LAN Wi-Fi | t3 up --lan + t3 pair | Zero third-party relay; works only on local network; app.t3.codes blocks plain HTTP/WS (use desktop/mobile app)[6] |
| Tailscale HTTPS | t3 serve --tailscale-serve + t3 pair --tailscale | Private tailnet with valid TLS; works in app.t3.codes without T3 relay[6] |
| T3 Connect | t3 up (select T3 Connect) | Free for up to 3 connected host machines (10 with T3 Chat Pro, 100 with Premier); coordinates via Cloudflare tunnel (cloudflared) and enables mobile push / iOS Live Activities[3][6] |
| Desktop SSH | Settings → Environments → Add SSH host | Server, repos, and secrets remain on remote Linux or Apple Silicon Mac; desktop client only[6] |
A single host can expose multiple routes simultaneously, with automatic failover: your phone uses fast LAN Wi-Fi at home and switches to Tailscale or T3 Connect when you leave.[6] Treat every pairing URL and QR token like a root password, because anyone opening an unrestricted link can run commands as your user account. Always pass least-privilege scopes for monitoring-only devices (t3 pair --scope orchestration:read --scope relay:read) and enable Settings → Sharing & access → Require approval for new devices if you use T3 Connect.[6]
Finally, remember that permission modes curb accidental shell mistakes; they are not OS-level containers. If you run autonomous Full-access loops against untrusted repositories, place the host environment inside a VM, container, or dedicated user account rather than relying on UI prompts.
Auditing T3 Code Telemetry After the November 2026 Controversy
Search interest for T3 Code spiked to a 90-day high on November 25, 2026 after a viral X thread accused the project of reading local Claude and Codex auth files for hidden "data harvesting." Within hours, Theo Browne published a public response (1.2 million views) confirming that the team had merged a removal of all Claude and Codex JSON auth-file hashing (previously used to deduplicate multi-device user counts), switched to connection-painted install IDs, and released a 100+ MB archive of 95,789 of his own raw analytics events for public inspection.[5]
What matters to engineering teams right now is not social-media drama, but the exact network behavior documented in docs/user/telemetry.md as of December 1, 2026.[15] T3 Code does not upload prompts, file contents, responses, or credentials to T3 servers, yet there are four separate outbound streams to audit, and disabling global telemetry does not silence all four:
| Outbound Stream | Destination & Payload | Default | How to Disable Completely |
|---|---|---|---|
| Product usage events | ingest.t3.codes: hashed random install ID, provider, catalog model name, effort, permission mode, turn outcome, duration, token counts[15] | On (Off in CI envs) | Export T3CODE_TELEMETRY_ENABLED=false or DO_NOT_TRACK=1 (takes precedence), or set "telemetry": false in managed policy[15] |
| Relay connection traces | Axiom: T3 Connect timings, request paths, environment/thread IDs, error types (no logs or stack frames)[15] | On (when using T3 Connect) | Disabled by the env vars above, or separately via T3CODE_OTEL_SDK_DISABLED=1 / OTEL_SDK_DISABLED=1[15] |
| Agent feedback tool | Optional bug-report cards (scrubbed paths/secrets, optional conversation slice up to 16 KB)[15] | Off | Leave Settings → Labs → Agent feedback set to Off[15] |
| Mobile activity publishing | T3 Connect relay: project names, thread titles, model names, and turn status for mobile push & Live Activities[15] | Separate host toggle | Turn off Settings → Sharing & access → Publish agent activity directly on the host (independent of DO_NOT_TRACK=1)[15] |
That fourth row is the detail almost every quick guide misses. If your repository or thread titles contain confidential client names or incident codenames, setting DO_NOT_TRACK=1 alone is not enough. Disable Publish agent activity explicitly, and skip T3 Connect altogether in favor of Tailscale or SSH. On managed company machines, admins can enforce "telemetry": false, cap maximum permission modes, and disable preview tunnels via a JSON policy file validated with t3 policy check policy.json.[6][15]
Herdr vs T3 Code and When Single-Vendor Apps Still Win
Developers evaluating multi-agent orchestrators most frequently compare Herdr vs T3 Code, alongside macOS-only Conductor and the first-party Claude and Codex desktop apps. Although Herdr (herdrdev/herdr) and T3 Code orchestrate the same underlying CLIs across local and SSH-connected machines, they sit at opposite layers of the stack.[1][16]
| Dimension | T3 Code (pingdotgg/t3code) | Herdr (herdrdev/herdr) | Native Vendor Apps (Claude / Codex Desktop) |
|---|---|---|---|
| License & Runtime | MIT (source only; strict TRADEMARK.md); Node.js + Electron + Expo mobile[1][6] | Apache 2.0; single Rust binary (herdr-core daemon, zero Electron)[16] | Proprietary vendor binaries |
| Agent Interaction Model | Structured protocol adapters (Agent SDK, JSON-RPC, ACP) into unified chat, diff, and approval cards[6] | Native terminal multiplexer owning real PTY panes; tracks working/blocked/idle state without wrapping CLIs[16] | Deepest native support for one vendor's latest features |
| Customization | Themes, custom CSS, t3.json scripts, Effect workflows, /mcp endpoint[6] | Plain config files under ~/.config/herdr-app/ with AGENTS.md so agents reshape layouts, keys, and JS mods directly[17] | Limited to vendor UI settings |
| Review & Preview Tools | 4-scope diff pane, hidden refs/t3/* checkpoints, PR Review Guides, built-in browser tunnels, live iOS/Android Simulators[6] | Terminal panes, CLI/socket API (hc ls, hc events), agent-to-agent pane prompting, plugin marketplace[16][17] | Vendor-specific diff & workspace features |
| Mobile Experience | Native iOS & Android apps with push notifications, diffs, and offline prompt queuing[6] | Reattach over SSH from any terminal client[16] | Varies by vendor; single-provider only |
Pick Herdr if you refuse Electron overhead, live inside tmux-style keyboard splits, want zero adapter lag the hour a CLI ships a new flag, or want agents scripting each other through a lightweight Rust daemon and socket API (hc).[16][17] Pick T3 Code when you run two or more harnesses side by side, need per-turn visual diffs and live browser or mobile simulator previews, and want one-tap iOS/Android approvals while away from your workstation.
Skip T3 Code entirely if you use only one vendor harness and rely on brand-new vendor UI features the day they ship; third-party adapters always trail first-party apps by days or weeks.[18] Likewise, teams that need hosted cloud compute, centralized org billing, or slow enterprise release cycles will find its multi-nightly release cadence too turbulent right now.
Operational Edge Cases and Adoption Trade-Offs
Four practical questions come up repeatedly in developer threads once teams move past a first local demo:
- Does T3 Code still burn through Claude's 5-hour subscription limit faster than the native CLI? No. Earlier pre-
v0.1.7builds suffered from an Anthropic Agent SDK discrepancy that inflated consumption, and several older reviews still repeat that warning; T3 Code's official FAQ confirms that sincev0.1.7, Claude drains 5-hour windows at the same rate as running Claude Code directly.[3] Running four parallel threads still spends four times the tokens, which is where adding a pay-as-you-go API instance helps absorb overflow. - Does T3 Code support local models like Ollama or LM Studio? Not as primary coding agents. The FAQ states explicitly that T3 Code focuses on frontier coding harnesses rather than local inference engines.[3] You can still point Text generators at an OpenAI-compatible local endpoint such as
http://localhost:11434/v1for titles and commits, or drive local models indirectly through an installed OpenCode harness.[6][11] - What happens if I fork T3 Code for internal or public distribution? The MIT license covers source code only.
TRADEMARK.mdexplicitly excludes the T3 Code name, wordmark, logos, and app icons, so any public fork or redistributed build must strip T3 Tools branding and state unmistakably that it is unofficial.[1] - How do I triage a broken server without hand-digging SQLite logs? Run
npx t3 triagefrom your terminal (or invoke Triage an issue from the command palette) to launch Claude Code or Codex directly against your local logs and installed build metadata, and uset3 doctor --dry-runoffline when compactingstatev2.sqlite.[6]
Before rolling T3 Code into daily work, run a twenty-minute pilot on one non-critical repository: lock new threads to Supervised, set DO_NOT_TRACK=1 and check Publish agent activity, wire a fast Text generator at https://api.reapi.ai/v1 so routine metadata stops eating coding turns, and keep an isolated CLAUDE_CONFIG_DIR API instance ready for multi-worktree bursts.
Verified Primary Sources (Checked December 1, 2026)
- T3 Tools, Inc. pingdotgg/t3code Repository README, MIT License, and Trademark Policy: github.com/pingdotgg/t3code
- T3 Tools, Inc. T3 Code Official Overview: t3.codes
- T3 Tools, Inc. Official FAQ (Claude v0.1.7 5-hour limit fix, T3 Connect 3/10/100 host limits, local model policy, BYO API keys): docs/user/faq.md
- T3 Tools, Inc. GitHub Releases (
v0.1.12throughv0.1.14-nightly.20261130.5508): github.com/pingdotgg/t3code/releases - Theo Browne (@theo). Public Telemetry Disclosure & 95,789-Event Data Release (November 25, 2026): x.com/theo/status/2125332390239494211
- Flavio Copes. A Deep Dive into T3 Code (updated November 28, 2026 for v0.1.12: architecture, hidden
refs/t3/*GC behavior,T3CODE_CONTEXT_HANDOFF_TOKEN_CAP, CLI & remote routes): flaviocopes.com/t3-code - T3 Tools, Inc. Official Install & Provider Probe Timeout Documentation: docs/user/install.md
- T3 Tools, Inc. Official Permission Modes & Git Push Hook Policy: docs/user/permission-modes.md
- T3 Tools, Inc. Official Claude Provider Guide (
CLAUDE_CONFIG_DIRisolation, custom router env vars): docs/user/providers-claude.md - reAPI. Coding Agents on reAPI (
ANTHROPIC_BASE_URL, supported Claude IDs, Codex CLI Responses API boundary): reapi.ai/docs/api/coding-agents - T3 Tools, Inc. Official Text Generation Models Documentation: docs/user/text-generation.md
- reAPI. DeepSeek V4.1 Flash OpenAI-Compatible Endpoint (
https://api.reapi.ai/v1/chat/completions): reapi.ai/docs/deepseek-v4-1-flash - reAPI. Codex Stream Disconnected Guide (verified
wire_api = "responses"contract): reapi.ai/resources/codex-stream-disconnected-before-completion - T3 Tools, Inc. Official Codex Provider Guide (ChatGPT sign-in and
CODEX_HOMEshadow homes): docs/user/providers-codex.md - T3 Tools, Inc. Official Product Usage Data & Diagnostics (four outbound streams and opt-out controls): docs/user/telemetry.md
- Herdr. herdrdev/herdr GitHub Repository (Apache 2.0 Rust binary,
herdr-coredaemon, terminal multiplexer architecture): github.com/herdrdev/herdr - Herdr. Official Product Overview (
~/.config/herdr-app/agent-editable config,hc ls/hc events): herdr.dev - RetroDeck. T3 Code Review (November 2026): Who Should Use It, and Who Should Not: retrodeck.ai/guides/t3-code-review