Open History to see the last commit
1# T3 Code User Guide
2
3Welcome to T3 Code. This guide explains how T3 Code works, what you need before starting, what to expect, and where to find documentation for every feature.
4
5## How T3 Code works
6
7T3 Code is an open-source control plane for coding agents. It gives the coding agents already installed on your computer (or server) one fast, unified interface across **desktop**, **web** (`app.t3.codes` or local), and **mobile** (iOS and Android).
8
9### Core concepts
10
11- **Host (Environment) vs. Clients**: A T3 Code **server** runs on the machine that holds your code and provider CLIs (your laptop, desktop, workstation, or VPS). Your desktop app, browser, and phone are **clients** connected to one or more environments.
12- **T3 Code is not a harness**: It drives the agent harnesses you already have—Claude Code, Codex, Cursor, Grok Build, Google Antigravity, OpenCode, Kiro, Pi, Muse Code, fx, or any [ACP](./providers-acp.md) agent. You can switch providers or models mid-thread and even let one agent delegate tasks to another.
13- **Projects**: A project points to a folder on an environment (a single Git repo, a [multi-repo folder](./multi-repo-projects.md), or a plain folder). You can also start scratch threads [without a project](./thread-sidebar.md#start-without-a-project).
14- **Threads & Worktrees**: Each task gets its own **thread**. Run a thread in the project's main checkout, or choose **New worktree** to give it an isolated Git branch and working directory so multiple agents can work in parallel without stepping on each other.
15- **Permission modes**: Control per thread whether an agent asks before acting (**Supervised**), auto-approves file edits (**Auto-accept edits**), uses provider auto-review (**Auto**), or runs without prompts (**Full access**).
16
17## Prerequisites and expectations
18
19- **Bring your own subscription or API keys**: T3 Code is free and does not resell tokens. You need at least **one installed, authenticated provider** on the host machine before starting a thread (Codex via ChatGPT and Google Antigravity can install and sign in directly from T3 Code).
20- **Code stays on your machine**: Your code and prompts go directly from your host machine to your chosen provider—never through T3 Code servers.
21- **Your host must stay awake**: Your phone and `app.t3.codes` are remote controls. If the host machine sleeps or shuts down, agents pause until it wakes. Use the [background service](./background-service.md) for always-on hosts.
22- **Git is optional but unlocks the best features**: Branching, isolated worktrees, turn diffs, and one-click PRs require a Git repository (and a signed-in host CLI or token for PRs/issues).
23- **No local-model focus**: T3 Code is designed for frontier coding agents (though OpenAI-compatible local endpoints like Ollama can be used for lightweight [text generation](./text-generation.md) like thread titles).
24- **Device vs. server settings**: Appearance, keybinding preferences, and saved PR views live per device; provider configs, thread rules, worktree cleanup, and scheduled tasks live on each server environment (with per-project overrides).
25
26## Quickstart
27
281. **Install T3 Code** on the machine where your agents will run ([Install T3 Code](./install.md)).
292. **Set up at least one agent** via the [Welcome page](./welcome-page.md) or **Settings → Providers** (for example, `claude auth login` or `codex login`).
303. **Open or clone a project** and start a thread ([Working with threads](./thread-sidebar.md)).
314. **Optional — connect your phone or another computer**: Run `t3 up` on the host or enable **T3 Connect** in **Settings → Sharing & access** ([Remote access](./remote-access.md)).
32
33---
34
35## Documentation index
36
37### Getting started
38
39- [Install T3 Code](./install.md) — Desktop app, `t3` CLI, mobile app, WSL, and provider setup.
40- [Welcome page](./welcome-page.md) — First-run setup and importing existing Claude, Codex, and Pi sessions.
41- [FAQ](./faq.md) — Common questions on pricing, subscriptions, privacy, limits, and troubleshooting.
42- [Threads from older T3 Code versions](./thread-migration.md) — V1 → V2 database migration and recovery backups.
43
44### Everyday workflow
45
46- [Working with threads](./thread-sidebar.md) — Starting threads, scratch threads, pinning, settling, snoozing, archiving, and side chats.
47- [Messages and context](./composer.md) — Composer formatting, attachments, queueing/steering, `@` threads/models, `#` PRs, `/goal`, stash, and rewind.
48- [Permission modes](./permission-modes.md) — Supervised, Auto-accept edits, Auto, Full access, push-hook prompts, and provider differences.
49- [Diffs and workspace files](./diffs.md) — Turn diffs, branch comparisons, commits view, file editor, and inline review comments.
50- [Source control](./source-control.md) — GitHub, GitLab, Forgejo/Gitea, Bitbucket, Azure DevOps, GitCafe, Cursor Origin, Linear issues, PR review guides, stacks, and PR watching.
51- [Activity log](./activity-log.md) — Inspecting tool calls, hiding work logs / Zen mode, and screen reader announcements.
52- [Subagents and delegation](./subagents.md) — Parallel T3-delegated and provider-native subagents.
53- [Context in portable handoffs](./portable-handoffs.md) — How conversation context transfers across provider switches and forks.
54- [Files in question answers](./question-attachments.md) — Attaching files and images when answering agent questions.
55- [Terminal](./terminal.md) — Integrated host terminals, scrollback limits, custom shells, and fish config.
56
57### Workspace tools & media
58
59- [Built-in browser](./browser.md) — Preview tabs, profiles, viewports, element picker, annotations, recordings, and agent browser access.
60- [Import browser sessions](./browser-import.md) — Copying cookies from Chrome, Safari, Firefox, Zen, or Helium into the desktop preview browser.
61- [Use T3 Code as your default browser](./default-browser.md) — Opening links and HTML files in T3 Code on macOS.
62- [Devices](./devices.md) — Live iOS Simulators, Android Emulators, physical Android devices, SSH device hosts, and Simlock pools.
63- [Visual replies and MCP apps](./html-renders.md) — Inline HTML charts/diagrams/mockups and interactive MCP Apps.
64- [SnapShots](./snap-shot.md) — Desktop window capture with accessibility text attached to drafts.
65- [Voice input](./voice-input.md) — On-device, environment, and cloud speech-to-text dictation and transcript cleanup.
66- [Prompt links](./prompt-links.md) — Shareable prefilled draft links and thread links.
67
68### Projects, automation & customization
69
70- [Settings and project overrides](./project-settings.md) — Scope inheritance, pinning/archiving projects, worktree cleanup, scheduled tasks, and webhooks.
71- [Project configuration (`t3.json`) and actions](./t3-json.md) — Checked-in repo config, setup/dev/settle scripts, and schema reference.
72- [Projects with several repositories](./multi-repo-projects.md) — Multi-repo folders, external folders, submodules, and custom worktree layouts.
73- [Workflows](./workflows.md) — Durable multi-stage TypeScript workflows (Labs) with schedules, webhooks, and approvals.
74- [Text generation models](./text-generation.md) — Fast/cheap API models for titles, commits, PR descriptions, and voice cleanup.
75- [Appearance and themes](./appearance.md) — Built-in themes, custom palettes/CSS, background images, LaTeX math, and environment themes.
76- [Keybindings](./keybindings.md) — Shortcuts, `keybindings.json` syntax, `when` conditions, and hardware keyboards.
77- [Keyboard focus](./keyboard-focus.md) — Full keyboard workspace navigation (`F6`, sidebar, and settings).
78
79### Providers
80
81- [Codex](./providers-codex.md) — ChatGPT sign-in, CLI/shadow-home multi-account, image generation, async questions, Daybreak.
82- [Claude](./providers-claude.md) — Multi-account `CLAUDE_CONFIG_DIR`, idle compaction, skills, MCP OAuth, Claude in Chrome, OpenRouter.
83- [Cursor](./cursor.md) — Local Cursor SDK sign-in, MCP/plugins, and Windows sandbox notes.
84- [Grok Build](./providers-grok.md) — Grok CLI setup, `XAI_API_KEY`, `GROK_HOME`, and permissions.
85- [Antigravity](./providers-antigravity.md) — Managed runtime, Google/Vertex sign-in methods, skills, and quotas.
86- [OpenCode](./providers-opencode.md) — OpenCode 1.x/2.x, local vs. external servers, compaction, and approvals.
87- [Kiro](./providers-kiro.md) — Kiro CLI V3, custom agents, and permissions.
88- [Pi](./providers-pi.md) — Pi setup, extensions, thinking/speed tiers, and folder trust.
89- [Muse Code](./providers-muse.md) — Muse CLI, `META_API_KEY`, and limitations.
90- [fx](./providers-fx.md) — fx backends, effort, skills, and permissions.
91- [ACP providers](./providers-acp.md) — ACP Registry agents and local ACP commands.
92
93### Remote, mobile & integrations
94
95- [Remote access](./remote-access.md) — T3 Connect, LAN/Tailscale pairing, desktop SSH, multi-route failover, load balancing, and linked environments.
96- [T3 Connect troubleshooting](./t3-connect-troubleshooting.md) — Diagnosing tunnel, port 7844, DNS, clock, and account errors.
97- [Mobile notifications](./mobile-notifications.md) — Push alerts, iOS Live Activities/widgets, and Android Live Updates.
98- [Guest links](./guest-links.md) — Sharing a live thread with a teammate in their browser (no account needed).
99- [Outside agents](./outside-agents.md) — Connecting Claude Code, Codex, ChatGPT, or bots to T3 Code over MCP, plus `t3 thread` host scripting.
100- [Secrets](./secrets.md) — 1Password CLI references and private in-thread agent secret cards.
101- [1Password service account](./secrets-1password-service-account.md) — Headless 1Password setup with a service account token.
102- [1Password Connect](./secrets-1password-connect.md) — Headless 1Password setup with a Connect server.
103
104### Operations, monitoring & admin
105
106- [Running T3 Code in the background](./background-service.md) — Background user service, `service.env`, Linux OOM protection, and `t3 doctor`.
107- [Updating T3 Code](./updating.md) — Updating desktop, servers, providers, Stable/Nightly tracks, and restart continuation.
108- [Usage and limits](./usage.md) — Token/cost tracking, custom model pricing, pooled subscription quotas, CLIProxyAPI hubs, and HTTP quota sources.
109- [Maintenance, power, and diagnostics](./diagnostics.md) — Background activity profiles, keep awake, Diagnostics UI, and `t3 trace`.
110- [CLI reference (`t3`)](./cli.md) — Complete overview of `t3` subcommands.
111- [Product usage data and diagnostics](./telemetry.md) — Telemetry opt-outs, agent feedback, mobile diagnostics, and OTLP export.
112- [Triage an issue](./triage.md) — Letting an agent investigate a T3 Code bug and draft an issue.
113- [Managed policy](./managed-policy.md) — Machine-wide enterprise configuration via JSON, macOS profiles, and Windows GPO/registry.
114- [Open source licenses](./open-source-licenses.md) — Viewing third-party license notices in the app.