Open History to see the last commit
1# Running T3 Code in the Background
2
3On a Linux host, T3 Code can run as a background service for your user. It starts when the machine
4boots and keeps running after you log out.
5
6## Manage the Service
7
8Install it with the latest T3 Code release:
9
10```sh
11npx t3@latest service install
12```
13
14Check whether it is installed:
15
16```sh
17npx t3@latest service status
18```
19
20Update or repair it:
21
22```sh
23npx t3@latest service update
24```
25
26Stop it and remove it from startup:
27
28```sh
29npx t3@latest service uninstall
30```
31
32Updating restarts T3 Code briefly. Let active agent work and terminal commands finish first.
33If a remote update is already in progress, wait for it to finish before retrying a local update.
34
35The systemd unit runs a small stable launcher. Exact T3 Code versions are installed separately, so
36a failed remote candidate can return to the previous version without rewriting the unit. The
37launcher snapshots the database before a remote candidate starts, so database updates roll back
38with the server version. An older launcher may require one local `service update` before this is
39available.
40
41## Using It with T3 Connect
42
43T3 Connect may offer to install the service during setup so the host stays reachable after you log
44out. This is only an onboarding shortcut: the service and T3 Connect are managed separately.
45
46Signing out of T3 Connect does not remove the service. Use `t3 service uninstall` when you no longer
47want T3 Code to start in the background.
48
49The background service currently requires Linux with systemd.