Open History to see the last commit
1# Install T3 Code
2
3T3 Code runs coding agents on your computer and lets you control them from its
4desktop, web, or mobile app. Set up the machine where the agents will work first.
5
6## Requirements
7
8You need an installed, authenticated provider before starting a thread. You can
9launch T3 Code and configure providers afterwards.
10
11## Command line
12
13```bash
14curl -fsSL https://t3.codes/install.sh | sh
15```
16
17On Windows, in PowerShell:
18
19```powershell
20irm https://t3.codes/install.ps1 | iex
21```
22
23This installs the `t3` binary to `~/.local/bin`. If your shell reports `command not found`
24afterwards, that directory is not on your `PATH` yet; the installer prints the
25line to add. Set `T3CODE_CHANNEL=nightly` to install the nightly train, or
26`T3CODE_VERSION` to pin an exact version.
27
28| Task | Command |
29| ------------------------------------------------ | ----------------------------------------------------------------------- |
30| Start the server and open the web app | `t3` |
31| Start the server without a browser | `t3 serve` |
32| Keep it running in the background (macOS, Linux) | `t3 service install` ([details](./background-service.md)) |
33| Move to the newest release | `t3 update` |
34| Reclaim database space | `t3 doctor` ([details](./background-service.md#reclaim-database-space)) |
35| Remove it again | `t3 uninstall` |
36
37Run `t3 help` or `t3 --help` for the full reference. To start in a new working
38directory, use an explicit path such as `t3 ./my-project`. A bare directory name
39is accepted only if it already exists.
40
41If `t3` or `t3 start` reports an already running server, connect to that server
42instead. Stop it before starting a replacement, or use a different `--base-dir`
43for an independent server.
44
45To try T3 Code once without installing it, run `npx t3@latest` instead (needs
46Node.js for `npx`).
47
48### Intel Macs
49
50There is no `t3` executable for Intel Macs (the desktop app is available). To
51run a server there, build it from source with `vp`, which provides the Node version it needs
52([Install vp](https://github.com/pingdotgg/t3code#install-vp)):
53
54```bash
55git clone https://github.com/pingdotgg/t3code
56cd t3code && vp i && vp run build:desktop
57node apps/server/dist/bin.mjs
58```
59
60`t3 update` and the background service do not apply to a server run this way;
61update it with `git pull` and a rebuild.
62
63## Desktop app
64
65Download a release from [GitHub Releases](https://github.com/pingdotgg/t3code/releases),
66or use a package manager:
67
68| Platform | Install |
69| ------------------ | ------------------------------------------------------------ |
70| Windows | `winget install T3Tools.T3Code` |
71| macOS | `brew install --cask t3-code` |
72| Debian, Ubuntu | `sudo apt install ./T3-Code-*.deb` |
73| Arch Linux | `yay -S t3code-bin` |
74| Arch Linux nightly | `yay -S t3code-nightly-bin` |
75| Nix | `nix profile add github:NixOS/nixpkgs/nixos-unstable#t3code` |
76
77The `.deb` updates itself like the other desktop builds. It asks for your
78password to install each update. If your desktop has no password prompt, the
79update fails. Download the new `.deb` and install it the same way.
80
81### Nix (nixpkgs)
82
83T3 Code is maintained in [nixpkgs](https://github.com/NixOS/nixpkgs/tree/nixos-unstable/pkgs/by-name/t3/t3code).
84The command above installs from `nixos-unstable` and requires Nix 2.30 or later with
85`nix-command` and `flakes` enabled. Launch the desktop app with `t3code-desktop`;
86the package also includes the `t3` command.
87
88On NixOS, you can instead add the package to your system configuration, using
89a nixpkgs revision that includes `t3code`:
90
91```nix
92environment.systemPackages = [ pkgs.t3code ];
93```
94
95Apply the change with `sudo nixos-rebuild switch`. For Home Manager, add
96`pkgs.t3code` to `home.packages` and run `home-manager switch`.
97
98Update a profile installation with `nix profile upgrade t3code`. For NixOS or
99Home Manager, update your configuration's nixpkgs input or channel and rebuild.
100Nix manages both the desktop app and the bundled
101`t3` command; use Nix to update them instead of the in-app updater or `t3 update`.
102
103### The `t3` command
104
105The desktop app includes the `t3` command-line tool. To run it from any
106terminal, open **Settings → About** and choose **Install** next to
107**t3 command**. On macOS and Linux it adds a `t3` link to a folder on your
108`PATH`; on Windows it adds the app's command folder to your `PATH`. Open a new
109terminal afterwards. **Remove** takes it off again. If you already have `t3`
110from npm, it stays as it is.
111
112### Windows Subsystem for Linux
113
114Choose a WSL distro in **Settings → Sharing & access** to run agents and projects
115there. Install the provider CLIs inside that distro. T3 Code installs its own
116server runtime there automatically; the first launch after an app update can
117take longer.
118
119### Open a project from a terminal
120
121With the desktop app already running on the same machine:
122
123```bash
124t3 app
125```
126
127This opens a new thread for the current directory, adding the project if needed.
128Pass a path, such as `t3 app ../my-project`, to open another directory. It requires
129the desktop app, so a standalone server or an SSH session is not enough. If the
130command cannot reach the app, start or update the desktop app and try again.
131
132## Mobile app
133
134Install T3 Code from the
135[App Store](https://apps.apple.com/us/app/t3-code-remote-claude-more/id6787819824) or
136[Google Play](https://play.google.com/store/apps/details?id=com.t3tools.t3code).
137The phone connects to a server on another machine. Follow
138[remote access](./remote-access.md) to link it through T3 Connect or a pairing URL.
139
140Store links and QR codes are also available in **Settings → About → Mobile app**
141on web and desktop. The store apps work with both stable and Nightly servers. Test builds are optional:
142
143- **iPhone and iPad:** TestFlight is invite-only.
144- **Android:** download an APK from the
145 [Android beta releases](https://github.com/pingdotgg/t3code/releases?q=android-beta-).
146
147If the app crashes during launch, open Settings → Diagnostics on the next launch
148that succeeds. It lists startup crashes from the last 7 days with the error and
149component stack that store crash reports leave out. Copy the report and paste it
150into a GitHub issue. Error messages can quote values from the app, so read it over
151before sharing.
152
153## Providers
154
155Open **Settings → Providers** in the web or desktop app, select the environment,
156and enable the provider you want. Installation, login, and configuration belong
157to that environment's machine, even when you connect from a phone or another
158computer.
159
160| Provider | Install and authenticate |
161| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
162| Codex | [Connect with ChatGPT](./providers-codex.md#connect-with-chatgpt), or install [Codex CLI](https://developers.openai.com/codex/cli) and run `codex login`. |
163| Claude | Install [Claude Code](https://claude.com/product/claude-code), then run `claude auth login`. |
164| Cursor | Install [Cursor CLI](https://cursor.com/cli), then run `agent login`. |
165| Grok Build | Install [Grok Build CLI](https://x.ai/cli), then run `grok login`. |
166| OpenCode | Install [OpenCode](https://opencode.ai), then run `opencode auth login`. |
167| Antigravity | Install and sign in with Google from T3 Code's provider settings. |
168| Pi | Install [Pi](./providers-pi.md#set-up-pi) with Node.js 22.19 or newer, then run `pi` and `/login`. |
169| Muse Code | Install [Muse Code](https://dev.meta.ai/docs/muse-code) on the server, run `muse login`, then enable it in Settings → Providers. |
170| fx | Install [fx](https://fx.sh) with `curl -fsSL https://fx.sh/setup.sh \| bash`, then run `fx login`. |
171
172Provider CLIs must be on the server's `PATH`. If T3 Code cannot find one, set its
173**Binary path** in provider settings, especially when using a version manager.
174Cursor's executable is `cursor-agent`, although its login command is
175`agent login`. Codex connected through ChatGPT and Antigravity can use their
176managed runtimes without a `PATH` entry.
177
178T3 Code warns when a provider version has known compatibility problems with your
179release. Check **Settings → Providers** on that environment for the recommended
180version or range. When its package manager supports installing a specific version,
181you can install the recommendation there. Otherwise use the provider's installer
182on the environment's machine. An unlisted version is unverified.
183
184When a provider CLI is behind its latest release, its provider card shows the
185available version. **Update now** runs the installer that owns the CLI
186(Homebrew, or a global npm, pnpm, Yarn, Bun, Volta, or Vite+ install), or the
187CLI's own update command when T3 Code cannot tell. Update a CLI installed with
188mise through mise. Cursor and Antigravity update with T3 Code. Homebrew installs
189compare against the version Homebrew offers, which can trail the npm release by
190a few hours.
191
192Add another provider instance for a separate account or configuration. Each
193instance can have its own environment variables, such as API keys or a custom
194base URL. Mark secret values as sensitive; after saving, T3 Code does not display
195their original values.
196
197For provider-specific setup and accounts, see [Codex](./providers-codex.md),
198[Claude](./providers-claude.md), [OpenCode](./providers-opencode.md),
199[Antigravity](./providers-antigravity.md), [Pi](./providers-pi.md),
200[Muse Code](./providers-muse.md), and [fx](./providers-fx.md).
201
202## Next steps
203
204- [Working with threads](./thread-sidebar.md): start tasks and organize parallel work.
205- [Permission modes](./permission-modes.md): choose when agents ask before acting.
206- [Remote access](./remote-access.md): connect from another device.
207- [Running in the background](./background-service.md): keep a Linux or macOS host available.
208- [Updating T3 Code](./updating.md): update the app and connected servers.