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 puts `t3` in `~/.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| Remove it again | `t3 uninstall` |
35
36Run `t3 --help` for the full reference.
37
38To try T3 Code once without installing it, run `npx t3@latest` instead (needs
39Node.js for `npx`).
40
41### Intel Macs
42
43There is no `t3` executable for Intel Macs (the desktop app is available). To
44run a server there, build it from source with Node.js 24 and `vp`
45([Install vp](https://github.com/pingdotgg/t3code#install-vp)):
46
47```bash
48git clone https://github.com/pingdotgg/t3code
49cd t3code && vp i && vp run build:desktop
50node apps/server/dist/bin.mjs
51```
52
53`t3 update` and the background service do not apply to a server run this way;
54update it with `git pull` and a rebuild.
55
56## Desktop app
57
58Download a release from [GitHub Releases](https://github.com/pingdotgg/t3code/releases),
59or use a package manager:
60
61| Platform | Install |
62| ------------------ | ------------------------------- |
63| Windows | `winget install T3Tools.T3Code` |
64| macOS | `brew install --cask t3-code` |
65| Arch Linux | `yay -S t3code-bin` |
66| Arch Linux nightly | `yay -S t3code-nightly-bin` |
67
68### Windows Subsystem for Linux
69
70Choose a WSL distro in **Settings → Connections** to run agents and projects
71there. Install the provider CLIs inside that distro. T3 Code installs its own
72server runtime there automatically; the first launch after an app update can
73take longer.
74
75### Open a project from a terminal
76
77With the desktop app already running on the same machine:
78
79```bash
80t3 app
81```
82
83This opens a new thread for the current directory, adding the project if needed.
84Pass a path, such as `t3 app ../my-project`, to open another directory. It requires
85the desktop app, so a standalone server or an SSH session is not enough. If the
86command cannot reach the app, start or update the desktop app and try again.
87
88## Mobile app
89
90Install T3 Code from the
91[App Store](https://apps.apple.com/us/app/t3-code-remote-claude-more/id6787819824) or
92[Google Play](https://play.google.com/store/apps/details?id=com.t3tools.t3code).
93The phone connects to a server on another machine. Follow
94[remote access](./remote-access.md) to link it through T3 Connect or a pairing URL.
95
96If the app crashes during launch, open Settings → Diagnostics on the next launch
97that succeeds. It lists startup crashes from the last 7 days with the error and
98component stack that store crash reports leave out. Copy the report and paste it
99into a GitHub issue. Error messages can quote values from the app, so read it over
100before sharing.
101
102## Providers
103
104Open **Settings → Providers** in the web or desktop app, select the environment,
105and enable the provider you want. Installation, login, and configuration belong
106to that environment's machine, even when you connect from a phone or another
107computer.
108
109| Provider | Install and authenticate |
110| ----------- | -------------------------------------------------------------------------------------------- |
111| Codex | Install [Codex CLI](https://developers.openai.com/codex/cli), then run `codex login`. |
112| Claude | Install [Claude Code](https://claude.com/product/claude-code), then run `claude auth login`. |
113| Cursor | Install [Cursor CLI](https://cursor.com/cli), then run `agent login`. |
114| Grok Build | Install [Grok Build CLI](https://x.ai/cli), then run `grok login`. |
115| OpenCode | Install [OpenCode](https://opencode.ai), then run `opencode auth login`. |
116| Antigravity | Install and sign in with Google from T3 Code's provider settings. |
117
118Provider CLIs must be on the server's `PATH`. If T3 Code cannot find one, set its
119**Binary path** in provider settings, especially when using a version manager.
120Cursor's executable is `cursor-agent`, although its login command is
121`agent login`. Antigravity can use its managed runtime without a `PATH` entry.
122
123When a provider CLI is behind its latest release, its provider card shows the
124available version. **Update now** appears only when T3 Code can tell which
125installer owns the CLI (its own update command, Homebrew, or a global npm, pnpm,
126bun, or Vite+ install) and runs that installer. Otherwise update the CLI the same
127way you installed it. Homebrew installs compare against the version Homebrew
128offers, which can trail the npm release by a few hours.
129
130Add another provider instance for a separate account or configuration. Each
131instance can have its own environment variables, such as API keys or a custom
132base URL. Mark secret values as sensitive; after saving, T3 Code does not display
133their original values.
134
135For provider-specific setup and accounts, see [Codex](./providers-codex.md),
136[Claude](./providers-claude.md), [OpenCode](./providers-opencode.md), and
137[Antigravity](./providers-antigravity.md).
138
139## Next steps
140
141- [Working with threads](./thread-sidebar.md): start tasks and organize parallel work.
142- [Permission modes](./permission-modes.md): choose when agents ask before acting.
143- [Remote access](./remote-access.md): connect from another device.
144- [Running in the background](./background-service.md): keep a Linux or macOS host available.
145- [Updating T3 Code](./updating.md): update the app and connected servers.