Getting Started

Getting Started with T3 Code

Check prerequisites, understand what T3 Code controls, and spin up your first thread with npx t3@latest.

If you run two or three AI coding CLIs at the same time in plain terminal tabs, the friction shows up fast: Claude Code is refactoring an API route in one tab, Codex is writing tests in another, and twenty minutes later you are flipping tabs trying to figure out which one stalled on a permission prompt—while hoping neither one edited the same dirty file.

T3 Code (pingdotgg/t3code) is an MIT-licensed open-source control surface built to fix that exact coordination problem. This guide walks you through what it actually controls, what to prepare beforehand, and how to finish your first isolated worktree thread in a few minutes.


What T3 Code Handles (and What It Leaves Alone)

Many people assume T3 Code is another paid AI editor bundling its own token subscription. It is not. Keeping the boundary clear saves confusion later:

  • No token markup or hosted LLM: T3 Code does not sell inference credits. Whether you use Claude Pro/Max, ChatGPT Plus, OpenCode, or direct API keys, billing continues straight through your existing accounts.
  • Drives the CLIs already signed in on your machine: Authenticate your preferred coding CLIs locally, and T3 Code coordinates them from one shared panel.
  • Three problems it focuses on:
    1. One sidebar across agents: Control Claude Code, Codex, Cursor, Grok Build, OpenCode, and Google Antigravity from one UI.
    2. Zero file collisions: Spin up each thread in its own Git worktree and branch, inspect diffs, commit, push, and open PRs without manual git juggling.
    3. Desktop, Web, and Mobile sync: One local backend server feeds the Electron app, the browser Web UI, and iOS/Android companion apps.

Two Prerequisites Before Installing

Take 30 seconds to verify both items before installing:

1. Sign in to at least one supported coding agent

You do not need every tool below—just authenticate the ones you plan to drive:

bash
# Claude Code
claude auth login

# Codex CLI
codex login

# Cursor CLI
agent login

# Grok Build
grok login

# OpenCode
opencode auth login

If you want to use Google Antigravity, no separate terminal login is required—enable it under Settings → Providers inside T3 Code and sign in with Google directly.

2. Have a Git repository ready

You can launch a projectless thread anytime with mod+Alt+N, but T3 Code shines when pointed at a real Git repo where worktrees, turn-by-turn diff views, commits, and PR actions apply.


Step 1: Try in 30 Seconds (or Install Properly)

If Node.js is installed and you want a zero-commitment preview without touching global binaries:

bash
npx t3@latest

This starts the backend server (default port 3773) and opens the Web UI in your browser.

For daily use, pick one permanent install method:

  • macOS Desktop: brew install --cask t3-code
  • Windows Desktop: winget install T3Tools.T3Code
  • macOS / Linux CLI & background service: curl -fsSL https://t3.codes/install.sh | sh

Check the Installation Guide for Scoop, AUR, Nix, PowerShell, and .deb / AppImage packages.


Step 2: Finish Your First Worktree Thread

Once T3 Code opens, walk through this core loop:

  1. Add a local repository: Select a Git repo from your machine in the sidebar.
  2. Pick your agent and model: Choose an authenticated agent at the composer. Use mod+shift+m to swap models and mod+shift+e to adjust reasoning effort.
  3. Select New worktree (mod+shift+x): Instead of letting the agent write directly into your primary checkout, pick New worktree. T3 Code creates an isolated directory and branch for this thread so your main working tree stays untouched.
  4. Send a concrete task: Ask for a scoped change (for example, adding validation and unit tests to an endpoint). Depending on your permission mode (mod+shift+a), approve file writes or shell commands as they stream in.
  5. Inspect diff and ship: Click Open diff to inspect uncommitted changes or per-turn diffs. When satisfied, click Commit (T3 Code can draft the message), then Push and Open Pull Request right from the thread panel.

Step 3: Three Habits Worth Adopting Early

  • Steer mid-turn instead of restarting: If an agent starts drifting while a turn is active, queue a follow-up and trigger Steer (mod+Shift+Enter by default; customizable in Settings → Keybindings) to redirect it without throwing away the run.
  • Switch agents mid-thread: Draft an architecture plan with one model, review it, then switch to another agent in the same thread to implement the edits.
  • Keep the backend running when away: Run t3 service install on macOS or Linux so you can monitor and approve steps from your phone later.