Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

install.md

242 lines13.1 KB

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