This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

T3 Code

Run the T3 Code server as a systemd service

The default npm installation mode retains the npm launcher. Callers can select t3code_install_method: standalone and supply t3code_archive_src, a controller-side archive whose integrity is verified by the caller’s Bazel repository. The role transfers the archive without downloading it on the host. The role installs the complete official bundle under an administrator-owned release directory and invokes its executable directly. State, work, and home remain owned by the ordinary T3 service account. Archive comparison repairs missing or incomplete bundle files on reapplication; the existence of the executable alone does not skip extraction. Standalone mode uses native T3 pairing/session authentication and omits the legacy npm mode’s T3CODE_AUTH_TOKEN environment entry.

Changed runtime, environment, or service inputs restart T3 Code. An unchanged run ensures the service is started. Token-bearing environment writes are excluded from Ansible logs. Optional t3code_initial_settings seeds first startup without overwriting later UI settings. Deployment and provider setup remain the caller’s responsibility.

1 - Defaults

Defaults for t3code
t3code_user: t3code
t3code_user_uid: 8151
t3code_dir: /opt/t3code
t3code_home_dir: "{{ t3code_dir }}/home"
t3code_work_dir: "{{ t3code_dir }}/work"
t3code_disk:
t3code_port: 5120
t3code_version: "{{ undefined() }}"
t3code_state_dir: "{{ t3code_dir }}/state"
t3code_auth_token: "{{ undefined() }}"
t3code_service_path: /lib/systemd/system/t3code.service
t3code_env_path: "{{ t3code_dir }}/.env"
t3code_env: {}
t3code_install_method: npm
t3code_archive_src: "{{ undefined() }}"
t3code_release_dir: "{{ t3code_dir }}/releases/standalone"
t3code_bin_path: "{{ t3code_release_dir }}/t3"
t3code_initial_settings: {}