docs: focus user guides on features and workflows (#9756)

This commit is contained in:
Julius Marminge authored and GitHub committed 2026-09-04 12:45:04 -07:00
1 parent 2e688a53cf
commit 9e1fb459a9
23 files changed
+931 -1938

No files matched your search

+2 -2
View File
@@ -79,12 +79,12 @@ Full docs live in [docs/](./docs). There's no docs site yet.
- [Install and first run](./docs/user/install.md)
- [Permission modes](./docs/user/permission-modes.md)
- [Keyboard shortcuts](./docs/user/keybindings.md)
- [Customize a project icon](./docs/user/project-settings.md)
- [Project settings](./docs/user/project-settings.md)
- [Remote access from a phone or another machine](./docs/user/remote-access.md)
- [Keeping app and server in sync](./docs/user/updating.md)
- [Source control integrations](./docs/user/source-control.md)
- Multiple accounts: [Codex](./docs/user/providers-codex.md) · [Claude](./docs/user/providers-claude.md)
- Linux: [run T3 Code as a background service](./docs/user/background-service.md)
- [Run T3 Code as a background service](./docs/user/background-service.md)
Building from source? Start at [docs/internals/overview.md](./docs/internals/overview.md).
+13 -13
View File
@@ -2,22 +2,22 @@
## Using T3 Code
- [Install and first run](./user/install.md)
- [Install T3 Code](./user/install.md)
- [Messages and context](./user/composer.md)
- [Working with threads](./user/thread-sidebar.md)
- [Permission modes](./user/permission-modes.md)
- [Terminal history](./user/terminal.md)
- [Source control](./user/source-control.md)
- [Project settings](./user/project-settings.md)
- [Appearance and themes](./user/appearance.md)
- [Keyboard shortcuts](./user/keybindings.md)
- [Organizing threads](./user/thread-sidebar.md)
- [Review usage](./user/usage.md)
- [Anonymous usage data](./user/telemetry.md)
- [Customize a project icon](./user/project-settings.md)
- [Mobile appearance](./user/mobile-appearance.md)
- [Environment themes](./user/environment-theme.md)
- [Import browser sessions](./user/browser-import.md)
- [Usage and limits](./user/usage.md)
- [Product usage data](./user/telemetry.md)
- [Remote access](./user/remote-access.md)
- [Keeping app and server in sync](./user/updating.md)
- [Source control integrations](./user/source-control.md)
- [Background service (Linux)](./user/background-service.md)
- Providers: [Codex](./user/providers-codex.md) · [Claude](./user/providers-claude.md) · [OpenCode](./user/providers-opencode.md)
Mobile app: [apps/mobile/README.md](../apps/mobile/README.md)
- [Running in the background](./user/background-service.md)
- [Updating T3 Code](./user/updating.md)
- Provider guides: [Codex](./user/providers-codex.md) · [Claude](./user/providers-claude.md) · [OpenCode](./user/providers-opencode.md) · [Antigravity](./user/providers-antigravity.md)
---
+66
View File
@@ -0,0 +1,66 @@
# Appearance and themes
Open **Settings → Appearance** to choose a theme and follow the system appearance or stay in light
or dark mode. To use different themes for light and dark mode, select the corresponding preview
within each theme. Appearance preferences are saved separately on each device or browser.
Mobile has its own themes and text, code, and terminal preferences. It does not follow environment
themes or defaults.
## Custom themes
On web and desktop, choose **Create theme** to adjust a palette, or import a T3 Code or VS Code
theme. The theme editor's color picker lets you select an area of the app to find the color to
change. Export your theme as JSON to share it.
## Environment themes
Environment themes and defaults come from the server serving your web app or the desktop app's
main local environment. app.t3.codes and additional connections do not use them.
Select a published theme in **Settings → Appearance** to follow its palette as the server updates
it. **Duplicate** makes an independent copy you can edit. A saved custom theme with the same ID
takes precedence. If the server stops publishing the selected theme, T3 Code falls back to its
standard theme.
Run this on the server to set a default and switch connected clients to it:
```bash
t3 theme set nightfall
```
Clients that are offline apply it when they reconnect. Each client applies the setting once;
choosing another theme afterward sticks until the next `t3 theme set`. Run the command again to
reapply it, even if the name is unchanged.
`t3 theme clear` removes the default without changing anyone's current theme. `t3 theme show` lists
the default and published themes.
### Publish a theme
Save a theme exported from T3 Code into `~/.t3/userdata/themes/` on the server, or the `themes`
directory under your custom state directory. The filename supplies the theme ID: `nightfall.json`
can be selected with `t3 theme set nightfall`. Keep the filename stable when updating its colors.
Do not use `system`, `light`, `dark`, or a built-in theme's ID.
For an integration that generates a palette, this shorter format also works:
```json
{
"name": "Nightfall",
"appearance": "dark",
"canvas": "#1a1b26",
"accent": "#7aa2f7",
"colors": {
"terminalSelection": "#292e42",
"error": "#f7768e"
}
}
```
Set `appearance` to `light` or `dark` and supply hex colors for `canvas` and `accent`. T3 Code
generates the rest. The optional `colors` overrides use the names in the theme editor's advanced
view.
Write updates to a temporary file and rename it into place so clients never read a partial theme.
Invalid files are not published.
+57 -99
View File
@@ -1,123 +1,81 @@
# Running T3 Code in the Background
# Running T3 Code in the background
On Linux and macOS, T3 Code can run as a background service for your user, so it is ready without
keeping a terminal open.
On Linux and macOS, T3 Code can run as a service for your user so you do not need
to keep a terminal open.
## Manage the Service
## Manage the service
Install it with the latest T3 Code release:
Run these commands on the machine that will host T3 Code:
```sh
npx t3@latest service install
```
| Task | Command |
| ------------------------------- | --------------------------------- |
| Install and start | `npx t3@latest service install` |
| Inspect status and log location | `npx t3@latest service status` |
| Update or repair | `npx t3@latest service update` |
| Stop and remove from startup | `npx t3@latest service uninstall` |
Check whether it is installed. On Linux this also checks whether the service is running, enabled
at startup, and allowed to keep running after logout:
Uninstalling the service leaves your projects, threads, and settings intact.
```sh
npx t3@latest service status
```
Install and update use the version of the CLI you invoke. For nightly, use
`npx t3@nightly service update`; replace `nightly` with an exact version to pin
one. An older CLI refuses to replace a newer service unless you explicitly add
`--allow-downgrade`.
Update or repair it:
Updating restarts the server. Finish active work first, and wait for any remote
update already in progress. To match a remote client's version, follow
[Updating T3 Code](./updating.md).
```sh
npx t3@latest service update
```
## Platform support
The service uses the same T3 Code version as the CLI you run. To install a nightly or an exact
version, use that version of the CLI:
Linux needs systemd user services. Setup enables lingering so T3 Code starts at
boot and keeps running after logout. If this needs administrator permission,
setup prints a recovery command before changing the service.
```sh
npx t3@nightly service update
npx [email protected] service update
```
macOS starts the service when you log in and stops it when you log out. Keep the
Mac logged in and awake for unattended remote access. Installing over SSH while
nobody is logged in at the Mac's screen can fail at the final start step; the
service is still installed and will start at the next login.
The install and update commands refuse to replace a newer service with an older version. Setup
through T3 Connect leaves a newer service unchanged. To downgrade, select the exact older version
and pass `--allow-downgrade`:
Windows background services are not supported.
```sh
npx [email protected] service update --allow-downgrade
```
Stop it and remove it from startup:
```sh
npx t3@latest service uninstall
```
Updating restarts T3 Code briefly. Let active agent work and terminal commands finish first.
If a remote update is already in progress, wait for it to finish before retrying a local update.
The service runs a small stable launcher. Exact T3 Code versions are installed separately, so a
failed remote candidate can return to the previous version without rewriting the service
definition. The launcher snapshots the database before a remote candidate starts, so database
updates roll back with the server version. An older launcher may require one local
`service update` before this is available.
## Platform Support
**Linux** uses a systemd user unit at `~/.config/systemd/user/t3code.service`. The service starts
when the machine boots and keeps running after you log out (lingering is enabled during install).
Setup checks the systemd user manager and enables lingering before installing a runtime or stopping
an existing service. If that requires administrator permission, setup stops with a recovery command.
**macOS** uses a launch agent at `~/Library/LaunchAgents/com.t3tools.t3code.service.plist`. It
starts when you log in, not when the Mac boots, and it stops when you log out; macOS has no
equivalent of Linux lingering for user agents. For a Mac that should stay reachable unattended,
turn on automatic login (System Settings → Users & Groups; unavailable while FileVault is on) and
keep the Mac from sleeping.
A few more macOS notes:
- Installing over SSH needs someone logged in at the Mac's screen to start the agent right away.
Without that, the install command reports an error at the final start step, but the agent is
fully installed and starts at the next login.
- macOS may show privacy prompts for protected folders such as Desktop, Documents, or Downloads,
attributed to a bare `node` process, or deny access without a prompt. If agent work fails to
read those folders, grant Full Disk Access to the node binary listed in the launch agent's
`ProgramArguments`.
- The agent appears under System Settings → General → Login Items. If it was switched off there,
or disabled with `launchctl disable`, macOS will not start it at login until you switch it back
on.
**Windows** is not supported yet.
## Using It with T3 Connect
T3 Connect may offer to install the service during setup so the host stays reachable in the
background. This is only an onboarding shortcut: the service and T3 Connect are managed separately.
Signing out of T3 Connect does not remove the service. Use `t3 service uninstall` when you no longer
want T3 Code to start in the background.
T3 Connect can offer service installation during setup, but the two are managed
separately. Signing out of T3 Connect does not stop or uninstall the service.
## Troubleshooting
Run `t3 service status` on the server machine. An installed version alone does not mean the service
is running or will survive logout. Linux status reports these problems:
Start with `t3 service status` on the host. It prints the log path and, on Linux,
checks whether the installed service is running, enabled, and allowed to survive
logout.
| Code | What it means | Recovery |
| -------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `linger-disabled` | The service stops after your last login session ends and does not start at boot. | Run `sudo loginctl enable-linger "$(id -un)"`, then retry setup as your normal user. |
| `linger-unavailable` | T3 Code could not verify the logout setting. | Run `loginctl show-user "$(id -un)" --property=Linger` and check that systemd-logind is available. |
| `user-manager-unavailable` | T3 Code cannot reach your systemd user manager. | Run `systemctl --user status` in a login session for the service user. Install your distribution's systemd user-session support if needed. |
| `service-disabled` | The service is not enabled to start automatically. | Run the repair command shown by `t3 service status`. |
| `service-stopped` | The service is installed but is not running. | Read the service log and `systemctl --user status t3code.service`, then run the displayed repair command. |
If it stops when your SSH session closes, check for `linger-disabled`. An
administrator can enable lingering with:
For an SSH host, run the administrator command in an interactive terminal so sudo can prompt for
your password:
```sh
sudo loginctl enable-linger "$(id -un)"
```
Over SSH, allow sudo to prompt:
```sh
ssh -t your-server 'sudo loginctl enable-linger "$(id -un)"'
```
Run only the `loginctl` command with sudo. Running `t3` with sudo creates a separate installation and
Connect identity for root. If an administrator is unavailable, run `t3 serve` in a terminal and
keep that session open.
Then retry service setup as your normal user. Run only the `loginctl` command
with sudo; running T3 Code as root creates a separate installation and Connect
identity. Without administrator access, run `t3 serve` in a terminal and keep
that session open.
The repair command shown by status uses the CLI version, or the installed service version if that
is newer. An older stable CLI therefore does not recommend downgrading a nightly installation.
Setup leaves an existing service running if the user-manager or lingering check fails.
| Status problem | Next step |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `linger-unavailable` | Run `loginctl show-user "$(id -un)" --property=Linger` and check that systemd-logind is available. |
| `user-manager-unavailable` | Run `systemctl --user status` in a login session for the service user; check your distribution's systemd user-session support. |
| `service-disabled` or `service-stopped` | Read the log and `systemctl --user status t3code.service`, then use the repair command printed by T3 Code. |
`t3 service status` prints the log path. The adjacent `server.trace.ndjson` file contains detailed
server traces. For failures after authorization, see [T3 Connect troubleshooting](./remote-access.md#t3-connect-troubleshooting).
On macOS, check **System Settings → General → Login Items** if the service no
longer starts at login. If agent work cannot access Desktop, Documents, or
Downloads, it may need Full Disk Access for the Node executable listed in
`ProgramArguments` in
`~/Library/LaunchAgents/com.t3tools.t3code.service.plist`.
For failures after signing in to T3 Connect, see
[connection troubleshooting](./remote-access.md#t3-connect-troubleshooting).
+12 -14
View File
@@ -1,17 +1,15 @@
# Import browser logins
# Import browser sessions
In the desktop app, open **Settings → Integrations → Browser profiles → Add profile**
and choose a browser under **Import from**. The import copies cookies into a T3 Code browser
profile so you can use existing logins in the preview browser. Changes made afterward stay
separate from the source browser.
The desktop app can import cookies from another browser so you can reuse its signed-in sessions
in the preview browser.
Linux discovery includes Helium and both native and Snap installations of Firefox. Windows
discovery includes Firefox and Helium builds that still use Windows' standard profile
encryption. Other Chromium-based browsers on Windows use app-bound cookie encryption and cannot
be imported. A browser appears once it has a profile with a cookie database. Close the source
browser before importing; the import wizard will prompt you if it is still running.
Open **Settings → Integrations → Browser profiles → Add profile**, then choose a browser under
**Import from**. Close the source browser before importing, and allow an operating-system keyring
unlock prompt if one appears.
On Linux, Chromium-based browsers use your desktop keyring to protect their cookies. T3 Code
includes the keyring reader; no separate command-line tool is needed. Allow the desktop unlock
prompt if one appears. If the keyring cannot be accessed, T3 Code reports that failure when no
cookies can be imported. Partitioned cookies are skipped.
This is a one-time copy. Later login changes stay separate between the two browsers, and some
sites may still require you to sign in again.
On Windows, import supports Firefox and Helium profiles that use standard profile encryption.
Other Chromium-based browsers use app-bound encryption and cannot be imported. Partitioned cookies
are skipped on all platforms.
+85 -206
View File
@@ -1,240 +1,119 @@
# Message composer
# Messages and context
Messages can contain up to 120,000 characters. If a draft is longer, T3 Code keeps it in the
composer and shows how many characters need to be removed. Shorten the draft or split it into
multiple messages, then send again in the same thread.
Give the agent a task in the composer. Add files, quote a previous response, or
include a skill when the task needs more context.
On mobile, an empty composer shows an interrupt button while the agent is working. Adding text
or an attachment replaces it with the send button. This applies to both compact and expanded
composers.
Messages can contain up to 120,000 characters. Longer drafts stay in the composer
so you can shorten them or split them into several messages.
You can attach images up to 10 MB. On servers that support file uploads, you can also
attach videos, text files, PDFs, ZIP archives, and other files. Each file can be up to the limit advertised
by the server, capped at 50 MB. Each message can contain up to eight attachments in total. Files
upload directly to the environment, where your agent can read, copy, or edit them by their file path.
## Attach files
Attachments upload as soon as you add them while connected to a server that supports uploads.
The send button becomes available after every upload finishes. Failed uploads can be retried or
removed. On mobile, tap **+** to open
the photo library from either the compact or expanded composer. When the connected server supports
file uploads, **+** opens a menu beside the button with **Photo Library** and **Choose Files**.
Videos use the server's file upload limit. You can also share photos, videos, and files into
T3 Code from other apps through the system share sheet. Mobile keeps a local copy of each draft
attachment, so you can still preview it and queue messages while offline. Uploads resume when
you reconnect. Drafts and queued messages survive app restarts; signing out of T3 Connect keeps
them on your device until you sign back into the same account. Select a received file on mobile
to preview it or open the system share options.
Attach up to eight files per message. Images can be up to 10 MB; other files can
be up to 50 MB, subject to the environment's upload support and limit. The agent
receives them on the environment's machine.
Tap an image or PDF before or after sending to open it. On iOS, images zoom from their thumbnail
into the native viewer. Pinch or double-tap to zoom, and swipe down or tap Close to return.
Use Share to save a copy or send it to another app. PDFs support page navigation and search.
PDF links in assistant responses open the same preview. On Android, images open in the image
viewer and PDFs open the system chooser.
Uploads begin when you add an attachment. All uploads must finish before the
message can send. Retry or remove a failed upload. On web and desktop, reloading
before an upload finishes requires you to attach that file again.
On web and desktop, select a sent PDF or HTML attachment to open it in the file viewer, or use the
download button beside it to save a copy. Other attached files download when selected.
You can drag or paste images into the web or desktop composer. HEIC and HEIF
photos are converted to JPEG there and when selected from the iOS photo library;
the image limit applies after conversion. On mobile, you can also send files to
T3 Code through another app's system share sheet.
Select a video attachment before or after sending to play it. Web and desktop use the browser's
built-in controls. On mobile, videos open in a full-screen player with native playback controls.
Supported videos show a thumbnail in the conversation and composer.
Received videos stream from their environment as they play on every platform. Supported formats and
codecs depend on the browser or device; you can save an unsupported video to open it in another app.
See [images and videos](#images-and-videos-in-messages) for previewing and saving media.
On iOS, the system player zooms from the attachment. Swipe down or tap Close to return to the
conversation or draft. Touch and hold a video thumbnail, then choose **Save or share** to open
the system share options. On Android, the same menu is also available inside the preview.
## Queue messages offline on mobile
On web and desktop, if you reload before a file finishes uploading, the draft keeps the file's name
and shows **Attach again** next to it. Attach the file again or remove it, then send.
On web and desktop, HEIC and HEIF photos are automatically converted to JPEG when you drag them into
the composer or paste them into a message. On iOS, selecting them from **Photo Library** also
converts them to JPEG. The 10 MB image limit applies to the converted photo.
On web and desktop, an existing thread settles its composer into a single-line resting state when
the composer loses focus. At wider sizes, scrolling the conversation also rests a focused composer,
except when scrolling toward the end while already there. When the thread-context strip has room,
the model and mode controls stay available beside the thread context; otherwise they return when the
composer is focused. Focus the composer or start typing to expand it again. The conversation keeps
the expanded composer's space clear above its last message while the composer rests, so expanding it
again never covers what you scrolled to. New-thread layouts keep the full composer. **Settings → General → Collapse composer** chooses which triggers rest it:
**On unfocus**, **On scroll**, both, or neither. With neither selected the composer stays expanded.
At phone-sized web or desktop window widths, existing threads animate between their compact and
expanded layouts. Up to three image attachments remain visible in either resting layout, followed
by a count when more are attached. At wider sizes, videos, files, and other draft context remain
visible at their natural height; the phone-sized compact row reveals those details when expanded.
On mobile, the model picker shows each OpenCode model's upstream provider, such as Anthropic,
GitHub Copilot, or OpenCode Zen, beneath its name. Search by that provider name to narrow the list
when starting a thread or changing an existing thread's model.
Mobile keeps local copies of draft attachments, so you can preview them and queue
messages while disconnected. Uploads resume when you reconnect. Drafts and queued
messages survive app restarts. Signing out of T3 Connect keeps that work on your
device until you sign back into the same account.
## Model defaults
T3 Code remembers the last provider, model, and model options you selected and reuses that
selection for new threads. A model configured in a project's settings overrides the remembered
selection for that project; resetting the project setting returns it to the remembered selection.
T3 Code remembers your provider, model, and model options for new threads. A
project's configured model takes precedence; resetting that project setting
returns to the remembered selection.
Model options shown as provider defaults remain display values until you choose them in T3 Code.
T3 Code only sends options you selected explicitly, so an unset reasoning level or service tier can
still come from the provider's own configuration.
Leaving reasoning level or service tier unset uses the provider's own configuration.
## Quote an assistant response
On web and desktop, select text in an assistant response, then choose **Cite in composer** from the
menu that appears when you release the selection. This inserts an inline quote chip at your cursor
and opens an optional comment bubble beside the selected text; press `Enter` or choose **Save** to
attach the comment, or leave it blank to keep just the quote. You can type before and after the
chip, such as a quote followed by "what do you mean?". A selection must stay within one response
and fit in 8,000 characters.
On web and desktop, select text within one assistant response and choose
**Cite in composer**. You can add a comment about the quote and write instructions
around it.
The chip shows your comment when it has one, or a short quote preview otherwise. Use the pencil
button to add or change the comment, and the remove button to delete the quote and its comment from
the draft. Copying, reloading, and restoring a [stashed prompt](#prompt-stash) keep each comment
with its quote, and sending tells the agent which words were quoted and which comment you wrote.
The quoted text and comment count toward the message limit.
Select the quote in a draft or sent message to return to its source. If the source
is unavailable or has changed, the saved quote remains readable.
Select a chip in the composer or a sent message to open the source thread, scroll to the response,
and highlight the quoted passage — including in older history. The
highlight pulses, holds for a moment, then fades on its own; press `Escape` to stop the navigation
or clear it early. If the source is unavailable or its text has changed, the saved quote stays
readable and T3 Code shows a warning.
Mobile shows the full saved quote and its comment in sent messages. It does not offer
**Cite in composer** or navigation to a quote's source.
## Images and videos in messages
On web, desktop, and mobile, select a link to an image or video to open it inside T3 Code.
Workspace image and video links open the file viewer. Links to media outside the workspace
open a media preview.
Videos opened from the file explorer or a file-viewer tab also play inside T3 Code. They
stream from the environment as needed, rather than downloading the entire video before playback.
Paths in inline code, such as `/tmp/recording.mp4`, work the same way. Image embeds stay inline;
video embeds show a player with the browser's controls, full screen included. Visible video previews load
an initial frame when supported, but stay paused until you press Play. Video file references use
a filmstrip icon.
On web and desktop, hover over a preview to see its full file path or original URL. Right-click
to copy that reference, save the image or video, or copy an image to the clipboard. The video
player's built-in controls can download a video too. If the player cannot decode a video, its error message
offers a link to open the source in the browser. Workspace media also offers **Copy relative
path** and **Open in file viewer**. These actions are available in expanded previews too.
On mobile, touch and hold an inline image or a video thumbnail to see its source,
copy the path or URL, or choose **Save or share**. Workspace files can open in the file viewer
from the same menu. Saving downloads a copy only when you request it; it does not change how
the video buffers during playback. On iOS, touch and hold a file reference in a message to
copy its full or relative path or open it in the file viewer.
Use Markdown image syntax to embed either kind of media:
```markdown
![Screenshot](/tmp/screenshot.png)
![Recording](/tmp/recording.mp4)
[Open recording](/tmp/recording.mp4)
```
Relative paths resolve from the thread's workspace. Absolute paths and `file://` links refer to
the environment's machine, even when you connect remotely or use your phone. Supported media
can live outside the workspace, including in Downloads or `/tmp`.
T3 Code serves the original file without adding it to attachment storage. If that file is moved
or deleted, its preview can no longer load from the environment. A browser or device may still
have a cached copy. Supported video formats and codecs depend on the browser or device.
Bare paths in ordinary prose and paths inside code blocks stay text. Raw HTML `<video>` tags
are not supported; use the Markdown embed syntax above.
## Files outside the workspace
When an agent links to a file it wrote outside the workspace, such as a Markdown report in
`/tmp`, select the link to open it in the file viewer. The viewer shows the file read-only, with
rendered Markdown available as usual; it cannot edit files outside the workspace. The workspace
file tree stays hidden because it does not describe the open file. HTML and PDF files outside the
workspace open the same way as ones inside it. Because such a file is served on its own, an HTML
page outside the workspace cannot load scripts, styles, or images from files beside it.
## HTML and PDF files in the file viewer
On web and desktop, the file viewer shows HTML and PDF files as a rendered page. Use the
source toggle in the viewer's header to switch an HTML file between the page and its markup; the
choice persists like the rendered-Markdown toggle. A link to a line always opens the source. HTML
runs in an isolated frame with no access to your T3 Code session. On desktop, the integrated
browser remains available from the same header for a full browser view.
## Changing projects
On web and desktop, changing the project from a new thread keeps the current environment when that
project exists there. If it does not, T3 Code selects another environment that has the project.
## Notices above the composer
On web and desktop, loading and syncing statuses fill the available banner width beside the
stash tab. Task progress appears above the composer, while the timeline's working timer shows
only elapsed time.
Loading, syncing, and server-update icons are static. Live tool labels do not shimmer.
On web and desktop, additional notices peek out above the attached banner. Hover over the peek
to reveal them, or focus **Show other notices** with `Tab` and press `Enter` or `Space`. Press
`Escape` to close the stack and return focus to that control. On a touchscreen, tap the peek to
open the stack. Interacting with the attached banner or composer does not open the stack.
Mobile displays saved quotes and comments, but does not create citations or
navigate to their sources.
## Prompt stash
Use the default shortcut, `Cmd+S` on macOS or `Ctrl+S` on Windows and Linux, to stash the current
prompt and its attachments after all file uploads finish. When the composer is empty and the stash
has one entry, press the shortcut again to restore it. The shortcut opens the stash menu if there
are multiple entries or the entry's images are still saving. You can also open the menu from the
stash badge. Stashes that contain files must be restored in the environment where those files were
uploaded. Stashed files stay uploaded on the server for 24 hours. If you restore an entry after
that, the file comes back with **Attach again** next to it. Attach the file again or remove it, then
send.
On web and desktop, press `Cmd+S` on macOS or `Ctrl+S` on Windows and Linux to save
the current prompt and its attachments for later. Wait for uploads to finish first.
With an empty composer, the same shortcut restores a single stash or opens the
stash menu when there are several.
Stashes containing uploaded files must be restored in their original environment.
Those files are retained for 24 hours. After an upload expires, restore the prompt
and use **Attach again** or remove the missing file before sending.
## Voice input on iPhone
On supported iPhones with iOS 26 or later, tap the microphone in the composer to record a message.
An expanded composer keeps your draft visible and flips its bottom toolbar into recording controls
with waves that respond to your voice. A collapsed composer flips into a compact recording strip
without changing height. Tap the checkmark to finish and transcribe on your device. The waves fade
into a transcription status, then the usual
controls return with the text inserted at the selection where recording started. If the keyboard
is open when you start, it stays open during voice input. You can review and edit the text before
you send it.
On supported iPhones with iOS 26 or later, use the composer's microphone to record,
then confirm to transcribe. Text is inserted where your selection was when
recording started, ready for you to review and edit before sending.
The first use can download Apple's speech model and needs a network connection. Later transcription
works offline for that language. A recording can be up to five minutes long. Canceling voice input,
leaving the screen, or an audio interruption discards the new recording and keeps the existing draft
and attachments. T3 Code deletes the local audio file after transcription or cancellation. It sends
only the normal message text when you submit the draft.
The first use may download Apple's speech model and needs a network connection.
Later transcription works offline for that language. Recordings can be up to five
minutes long. Canceling, leaving the screen, or an audio interruption discards the
recording and preserves your existing draft.
Transcription runs on your device. T3 Code deletes the temporary audio after
transcription or cancellation; only the message text is sent when you submit.
## Commands and skills
Type `/` to open the command menu. Type `$` to find and add a skill. Skill rows show their source,
such as System, Personal, Project, or App.
Type `/` for commands or `$` to add a skill from the selected environment and
provider. On mobile, both are also available before starting a thread on
**New task**.
On mobile, these menus are available on the **New task** screen before you start a thread. They
use the skills and commands from the selected environment and provider.
The slash menu also includes skills unless you turn off **Settings → General →
Show skills in slash menu**. Only skills enabled for the provider are listed.
In a thread with prior conversation context, send `/compact` to reduce context usage. Web and desktop also offer this action from the context meter, and the work log records token counts when the provider reports them.
Provider commands must start the message to run. T3 Code commands such as
`/model` and `/plan`, and skill mentions, work on any line.
By default, the `/` menu includes skills. To keep this menu command-only, turn off **Show skills in
slash menu** in **Settings → General**. Skill results use the `/skill:Skill Name` label and add the
same `$name` skill token to your message. The original skill name remains searchable. If the provider
also reports that skill as a native slash command, T3 Code hides the duplicate native entry and keeps
the `/skill:Skill Name` label.
Send `/compact` in an existing conversation to reduce context usage when the
provider supports it. Web and desktop also offer compaction from the context meter.
A skill token runs the skill wherever it sits in your message. T3 Code sends it to each provider in
the form that provider runs, so the text before and after the token is kept. Skills that only you may
start, and never the agent on its own, work the same way. A skill you switched off in the provider's
settings does not appear in either menu.
## Images and videos in messages
Provider commands such as `/compact` only run when they open the message, so the `/` menu offers
them only there. T3 Code's own commands, such as `/model` and `/plan`, and skills stay available on
any line.
Select an image or video attachment or link to preview it. Playback support depends
on your browser or device; save an unsupported video to open it in another app.
On desktop, press `Cmd+Enter` on macOS or `Ctrl+Enter` on Windows and Linux from a new thread to
start it in the background. T3 Code opens another new thread and shows an **Open** action for the
thread that started. The new thread keeps the selected workspace mode and base branch. If **New
worktree** is selected, each background thread creates its own worktree.
On web and desktop, right-click media to save it or copy its path or URL. On mobile,
touch and hold an image or video thumbnail and choose **Save or share**. On iOS,
return to the thumbnail to open this menu after watching a full-screen video.
File links refer to the environment's machine, including when you connect remotely.
Previews use the original file, even outside the workspace. Moving or deleting it
can break the preview, so save a copy if you need to keep it.
## Files outside the workspace
Follow an agent's file link to read a report or other file outside the workspace.
These files open read-only. An HTML file outside the workspace cannot load scripts,
styles, or images from neighboring files.
## HTML and PDF files in the file viewer
On web and desktop, HTML and PDF files open as rendered pages. Switch an HTML
file to source view to read its markup; a link to a specific line opens source
automatically. HTML previews cannot access your T3 Code session.
On mobile, select a PDF attachment or link to open it. iOS uses the native viewer;
Android opens the system chooser.
-92
View File
@@ -1,92 +0,0 @@
# Environment theme
Some desktops publish the palette they are currently wearing so that apps can match it. When the
machine running your T3 Code server does that, its themes appear in the theme library alongside
your own, and T3 Code follows them: change the desktop theme and T3 Code retints with it, without
a restart.
To use one:
1. Open **Settings**.
2. Select **Appearance**.
3. Choose the theme published by your environment.
Like every theme, this is a per-client choice: picking it on your desktop does not change what your
phone or another browser shows.
The machine can also set the environment's theme:
```bash
t3 theme set nightfall
```
Web and desktop clients switch to it — immediately when connected, on their next connect
otherwise — and a fresh client opens with it. Each client applies a set once, so picking a
different theme in Settings afterwards sticks until the next `t3 theme set`, and running the same
set again is how you bring clients back. `t3 theme clear` removes the setting without changing
what anyone currently has, and `t3 theme show` prints the current theme and everything the
machine publishes. Only the environment you are anchored to publishes themes, so a remote client
follows the machine it is connected to, not the device it runs on. T3 Code Mobile keeps its own
appearance settings and does not follow environment themes.
Select **Duplicate** on a published theme's card to keep a copy you can edit. The published theme
itself cannot be edited or removed, because the environment rewrites it whenever its own theme
changes. If the machine stops publishing it, the card disappears and clients using it fall back to
the standard T3 Code look. A theme you saved always wins over a published one with the same id.
When the theme editor is open, its draft stays visible while published themes change.
Close the editor to show the latest selected theme.
## Publishing themes
A machine publishes themes by writing files into the `themes` directory of the T3 Code state
directory (`~/.t3/userdata/themes/` by default). The filename is the theme id — `nightfall.json`
appears as `nightfall` — and stays stable while the machine rewrites the colors underneath, so
selections and defaults keep pointing at it.
The filename may not be an appearance keyword (`system`, `light`, `dark`) or a built-in theme's
id — those names already mean something on every client. Two formats are accepted. A theme
exported from T3 Code (the **Download** button's output) works as-is, so any theme someone shared
can be dropped in unchanged. Or, for a desktop that only knows
its own palette, a short seeded form:
```json
{
"name": "Nightfall",
"appearance": "dark",
"canvas": "#1a1b26",
"accent": "#7aa2f7"
}
```
`appearance` is `light` or `dark`, and `canvas` and `accent` are hex colors. T3 Code generates the
rest of the palette from those two, the same way the guided theme editor does, so the result reads
as a T3 Code theme wearing your desktop's colors rather than a transplant of another app's.
A machine that knows a role better than a derivation can guess — its terminal palette, its
semantic colors — can publish that role directly under `colors`, layered over the generated
palette:
```json
{
"name": "Nightfall",
"appearance": "dark",
"canvas": "#1a1b26",
"accent": "#7aa2f7",
"colors": {
"terminalSelection": "#292e42",
"error": "#f7768e"
}
}
```
Any of the roles shown in the theme editor's advanced view can be published this way; roles left
out keep their generated value. A role this version of T3 Code does not know is ignored rather
than rejected, so publishing a role added by a newer release is safe. An `id` inside the file is
ignored — the filename decides.
A theme with no usable colors is not listed on that client.
Write each file atomically — write a temporary file beside it and rename — so T3 Code never reads
a half-written theme. An unreadable or invalid file is simply not published; the machine's other
themes are unaffected.
+68 -111
View File
@@ -1,142 +1,99 @@
# Install T3 Code
T3 Code is a web and desktop GUI for running coding agents on your machine.
T3 Code runs coding agents on your computer and lets you control them from its
desktop, web, or mobile app. Set up the machine where the agents will work first.
## Requirements
Node.js `^22.16 || ^23.11 || >=24.10` on the machine that runs the T3 Code server.
Command-line use, SSH hosts, and WSL backends need Node.js 22.16+ (22.x), 23.11+
(23.x), or 24.10 and later. The native desktop app includes its server runtime.
At least one provider runtime, installed and authenticated. You can install Antigravity from
T3 Code settings. See [Providers](#providers) below.
You need an installed, authenticated provider before starting a thread. You can
launch T3 Code and configure providers afterwards.
## Run Without Installing
## Run without installing
```bash
npx t3@latest
```
This starts the T3 Code server on your machine and opens the local web app. Use
`npx t3@latest --help` for the full CLI reference.
This starts the server and opens the local web app. Run
`npx t3@latest --help` for command-line options.
If the web or desktop app shows "T3 Code could not load", check your connection and select
**Reload** to try again.
## Desktop app
## Open a project in the desktop app
Download a release from [GitHub Releases](https://github.com/pingdotgg/t3code/releases),
or use a package manager:
When the T3 Code desktop app is running on the same machine, open the current directory with:
| Platform | Install |
| ------------------ | ------------------------------- |
| Windows | `winget install T3Tools.T3Code` |
| macOS | `brew install --cask t3-code` |
| Arch Linux | `yay -S t3code-bin` |
| Arch Linux nightly | `yay -S t3code-nightly-bin` |
### Windows Subsystem for Linux
Choose a WSL distro in **Settings → Connections** to run agents and projects
there. Install Node.js and provider CLIs inside that distro. T3 Code installs its
matching server runtime there automatically; the first launch after an app
update can take longer.
### Open a project from a terminal
With the desktop app already running on the same machine:
```bash
npx t3 app
```
Pass a path to open another directory:
This opens a new thread for the current directory, adding the project if needed.
Pass a path, such as `npx t3 app ../my-project`, to open another directory. It requires
the desktop app, so a standalone server or an SSH session is not enough. If the
command cannot reach the app, start or update the desktop app and try again.
```bash
npx t3 app ../my-project
```
## Mobile app
The command adds the directory as a project when needed, focuses the desktop app, and opens a new
thread. It does not launch the desktop app, open a browser, or start a T3 Code server. A background
server does not count as the desktop app. The command also rejects SSH sessions because a remote
shell cannot focus a local desktop window. The CLI package and the running desktop app must both
include `t3 app` support.
## Desktop App
Download the latest release from
[GitHub Releases](https://github.com/pingdotgg/t3code/releases), or install from a package
registry.
Windows:
```bash
winget install T3Tools.T3Code
```
macOS:
```bash
brew install --cask t3-code
```
Arch Linux:
Stable:
```bash
yay -S t3code-bin
```
Nightly:
```bash
yay -S t3code-nightly-bin
```
### Windows Subsystem for Linux
When the desktop app runs a WSL backend, it installs the matching server runtime into
`~/.t3/wsl-runtime` inside the selected distro. The first launch after installing or updating T3
Code may take a little longer while that release's runtime is extracted. Later launches reuse the
Linux-local copy so startup does not depend on reading application files through `/mnt/c`. After a
successful launch, T3 Code keeps the current runtime and one previous runtime for rollback and
removes older caches automatically. If a cached runtime stops working, T3 Code launches from the
application files under `/mnt/c` instead and reinstalls the runtime on the next launch.
Install T3 Code from the
[App Store](https://apps.apple.com/us/app/t3-code-remote-claude-more/id6787819824) or
[Google Play](https://play.google.com/store/apps/details?id=com.t3tools.t3code).
The phone connects to a server on another machine. Follow
[remote access](./remote-access.md) to link it through T3 Connect or a pairing URL.
## Providers
T3 Code uses provider runtimes but does not bundle them. Install and authenticate each
provider's CLI, or use T3 Code's managed setup for Antigravity.
Open **Settings → Providers** in the web or desktop app, select the environment,
and enable the provider you want. Installation, login, and configuration belong
to that environment's machine, even when you connect from a phone or another
computer.
| Provider | CLI | Default binary | Log in with |
| ----------- | ---------------------------------------------------------------------------------------------------------- | ------------------ | ---------------------------------- |
| Codex | [Codex CLI](https://developers.openai.com/codex/cli) | `codex` | `codex login` |
| Claude | [Claude Code](https://claude.com/product/claude-code) | `claude` | `claude auth login` |
| Cursor | [Cursor CLI](https://cursor.com/cli) | `cursor-agent` | `agent login` |
| Grok Build | [Grok Build CLI](https://x.ai/cli) | `grok` | `grok login` |
| OpenCode | [OpenCode](https://opencode.ai) | `opencode` | `opencode auth login` |
| Antigravity | [Official ACP agent](https://github.com/agentclientprotocol/registry/blob/main/antigravity-acp/agent.json) | Managed by T3 Code | **Sign in with Google** in T3 Code |
| Provider | Install and authenticate |
| ----------- | -------------------------------------------------------------------------------------------- |
| Codex | Install [Codex CLI](https://developers.openai.com/codex/cli), then run `codex login`. |
| Claude | Install [Claude Code](https://claude.com/product/claude-code), then run `claude auth login`. |
| Cursor | Install [Cursor CLI](https://cursor.com/cli), then run `agent login`. |
| Grok Build | Install [Grok Build CLI](https://x.ai/cli), then run `grok login`. |
| OpenCode | Install [OpenCode](https://opencode.ai), then run `opencode auth login`. |
| Antigravity | Install and sign in with Google from T3 Code's provider settings. |
Codex and Claude are on by default. Cursor, Grok Build, OpenCode, and Antigravity are off by
default. Turn them on in **Settings** > **Providers** when you want to use them.
Provider CLIs must be on the server's `PATH`. If T3 Code cannot find one, set its
**Binary path** in provider settings, especially when using a version manager.
Cursor's executable is `cursor-agent`, although its login command is
`agent login`. Antigravity can use its managed runtime without a `PATH` entry.
For Antigravity, select the environment in provider settings, then install and sign in there.
The runtime and credentials stay on that environment, even when you use a phone or remote
browser. See [Antigravity setup](./providers-antigravity.md) for Google sign-in, remote callback
steps, and supported hosts.
Add another provider instance for a separate account or configuration. Each
instance can have its own environment variables, such as API keys or a custom
base URL. Mark secret values as sensitive; after saving, T3 Code does not display
their original values.
Cursor is the one to watch: install Cursor CLI, which provides the `cursor-agent` binary that
T3 Code looks for, but authenticate with `agent login`, not `cursor-agent login`.
For provider-specific setup and accounts, see [Codex](./providers-codex.md),
[Claude](./providers-claude.md), [OpenCode](./providers-opencode.md), and
[Antigravity](./providers-antigravity.md).
Grok models that support adjustable reasoning show a **Reasoning** control beside the model picker.
The available levels and default come from the installed Grok Build CLI, so they can vary by model
and CLI version.
## Next steps
Run CLI login commands on the machine running the T3 Code server, not on the device you browse
from. Antigravity uses its sign-in controls in T3 Code instead of a CLI login command.
### Binary Discovery
Each provider CLI must be on the server's `PATH`, or have an explicit binary path set in
**Settings** → the provider instance → **Binary path**. Use the explicit path when a version
manager or a non-standard install location keeps the CLI off the `PATH` of the shell that
started T3 Code.
Antigravity can use its managed runtime without a `PATH` entry. Its optional **Binary path**
overrides the managed runtime and must point to the official ACP executable.
### When Auth Is Needed
Provider auth is required before you start a session with that provider, not before you start
T3 Code. You can install T3 Code, open it, and add providers afterwards. A provider that is not
authenticated shows its status and setup instructions in **Settings**.
For multi-account setups, see [Codex](./providers-codex.md), [Claude](./providers-claude.md), and
[Antigravity](./providers-antigravity.md#accounts-and-removal).
## Next Steps
- [Permission modes](./permission-modes.md): how much T3 Code asks before acting
- [Remote access](./remote-access.md): connect from a phone, tablet, or another desktop
- [Keeping T3 Code in sync](./updating.md): client and server version skew
- [Running in the background](./background-service.md): Linux background service
- [Working with threads](./thread-sidebar.md): start tasks and organize parallel work.
- [Permission modes](./permission-modes.md): choose when agents ask before acting.
- [Remote access](./remote-access.md): connect from another device.
- [Running in the background](./background-service.md): keep a Linux or macOS host available.
- [Updating T3 Code](./updating.md): update the app and connected servers.
+54 -101
View File
@@ -1,14 +1,13 @@
# Keybindings
Edit keybindings from **Settings** → **Keybindings**. That page lists every command, its current
shortcut, whether it is a default or your own, and warns about conflicts.
Customize shortcuts in **Settings → Keybindings** on web and desktop. That page
also lists the command IDs and defaults available in your version.
The same configuration lives in `~/.t3/userdata/keybindings.json` on the machine running the
server, if you prefer editing it directly. T3 Code writes the built-in defaults into that file on
first run, and adds any new defaults on later startups unless a rule of yours already claims the
command or the shortcut.
## Edit the configuration file
The file is a JSON array of rules.
Keybindings live on the environment's machine, in
`~/.t3/userdata/keybindings.json` by default. You can edit this file directly.
It is a JSON array of rules:
```json
[
@@ -17,109 +16,63 @@ The file is a JSON array of rules.
]
```
Invalid rules are ignored. An invalid file is ignored entirely, and the server logs a warning.
T3 Code creates the file with its defaults and adds new defaults on later startups.
New defaults do not replace commands you customized. If a new default overlaps one
of your shortcuts, [rule order](#precedence) decides which runs.
Invalid rules are ignored; if the file cannot be parsed, T3 Code uses defaults.
## Rule Shape
## Rule shape
- `key` (required): shortcut string, like `mod+j`, `ctrl+k`, `cmd+shift+d`
- `command` (required): the command ID to run
- `when` (optional): boolean expression controlling when the shortcut is active
Each rule requires a `key` shortcut and a `command` ID. An optional `when`
expression restricts when it runs.
## Key Syntax
Project scripts use `script.{id}.run`, such as `script.test.run`.
Modifiers: `mod` (`cmd` on macOS, `ctrl` elsewhere), `cmd` / `meta`, `ctrl` / `control`, `shift`,
`alt` / `option`.
## Key syntax
Examples: `mod+j`, `mod+shift+d`, `ctrl+l`, `cmd+k`.
Join modifiers and a key with `+`, such as `mod+shift+d` or `ctrl+l`.
`mod` means Command on macOS and Control elsewhere. Other modifiers are
`cmd` / `meta`, `ctrl` / `control`, `alt` / `option`, and `shift`.
## Commands
## When conditions
Commands are IDs like `terminal.toggle`, `commandPalette.toggle`, `preview.refresh`, and
`chat.new`. Project scripts are addressable as `script.{id}.run`, for example `script.test.run`.
Available context keys are `terminalFocus`, `terminalOpen`, `previewFocus`,
`previewOpen`, and `modelPickerOpen`. Unknown keys evaluate to `false`.
`filePicker.toggle` opens file search for the active project and defaults to `mod+p`.
`projectSearch.toggle` searches inside the active project's files and defaults to `mod+shift+f`.
Repeating either shortcut closes that search, and switching shortcuts replaces the open search.
`themeEditor.toggle` opens or closes the floating theme editor and defaults to
`mod+alt+shift+t`. Select a color label to spotlight the elements that use it; select the label
again to clear the spotlight. The swatch and hex field keep that color selected while you edit it.
Advanced mode groups related app tokens into a smaller set of color families. Changing a family
updates its paired text and interaction states while leaving every unrelated imported color intact.
Use **Inspect** to pick an element in the app and reveal its color token. Inspect disarms after one
successful pick; its hover glow and badge preview the element and color family that click will select.
**Cancel** or `Escape` exits Inspect and clears its selection and spotlight.
Combine keys with `!` for not, `&&` for and, `||` for or, and parentheses:
`rightPanel.toggleMaximized` maximizes or restores the open right panel. It has no default shortcut,
so add one in **Settings** → **Keybindings** if you want to use it.
`rightPanel.close` closes the active right panel tab and defaults to `mod+w`. Press it again to close
the next tab. With the terminal focused, `mod+w` closes the terminal instead, and with nothing left
to close it closes the desktop window as before. Browsers reserve `mod+w` for closing their own tab
and never pass it to the page, so in a browser rebind this command (and `terminal.close`) to a
shortcut the browser leaves alone, such as `alt+w`.
`thread.copyReference` copies the active thread's pull request link, or its thread ID when no pull
request is available. Its default shortcut is `mod+shift+c`, and it does not replace terminal copy
while the terminal has focus.
`thread.settle` settles the active thread or restores it when it is already settled. Its default
shortcut is `mod+shift+s`, and it does not run while the terminal has focus.
`thread.pin` pins the active thread to the pinned section of the sidebar, or unpins it when it is
already pinned. Its default shortcut is `mod+shift+p`, and it does not run while the terminal has
focus. See [Organizing threads](./thread-sidebar.md) for how pinned threads are ordered.
The command palette searches settings, active thread titles, projects, branches, user messages, and
final agent responses across connected environments. A setting result opens its exact control or
section. Message matches show one labeled excerpt while keeping the thread's project, branch, and
machine context visible. Message search begins after two characters and uses SQLite's ASCII
case-insensitive matching.
The full command list and the current defaults are shown in **Settings** → **Keybindings**, which
always matches the build you are running. Use that rather than a copied list.
Note that `chat.new` and `chat.newLocal` both create a thread through the same path. A new thread
inherits the project you were in, along with model and mode selections. Branch, worktree, and
environment mode always come from your configured defaults, not from the thread you were looking
at. To keep a worktree, use the explicit "new thread in this worktree" action in the branch
toolbar. The only difference between the two commands: with the current sidebar and more than one
project, `chat.new` opens a project chooser first.
Background submission from a new thread is the exception. `mod+enter` starts that thread and opens
another new thread with the same workspace mode and base branch. **New worktree** remains selected,
but the new thread does not reuse the worktree created for the thread that just started.
## Desktop quit shortcut
Use `Cmd+Q` on macOS or `Ctrl+Q` on Windows and Linux. In the default **Hold** mode, hold the
shortcut for 1.2 seconds or press it twice within 500 milliseconds. The second press quits
immediately. You can keep Command or Control held between presses, or release both keys.
Hold mode needs keyboard repeat. If holding does not quit, use two quick presses or choose
**Quit** from the application menu.
Change **Quit shortcut** in **Settings** → **General** → **Confirmations**. **Direct** quits on
the first press. **Double press** requires two quick presses and does not accept a hold. The
application menu's **Quit** action always quits immediately.
## `when` Conditions
A `when` expression is evaluated against context keys describing the current UI state. The keys
the app supplies today are `terminalFocus`, `terminalOpen`, `previewFocus`, `previewOpen`, and
`modelPickerOpen`. The set is open and grows over time, so treat that as the current list rather
than a fixed one. Any key the running app does not supply evaluates to `false`.
Operators: `!` (not), `&&` (and), `||` (or), and parentheses.
Examples:
- `"when": "terminalFocus"`
- `"when": "terminalOpen && !terminalFocus"`
- `"when": "!terminalFocus"`
```json
{ "key": "mod+j", "command": "terminal.toggle", "when": "terminalOpen && !terminalFocus" }
```
## Precedence
- Rules are evaluated in array order.
- For a key event, the last rule where both `key` matches and `when` evaluates to `true` wins.
- Precedence is across commands, not only within the same command. A later rule for a different
command can take a key away from an earlier one.
The last rule whose key and condition both match wins, even if it belongs to a
different command. Put a more specific rule after a general one when they share
a shortcut.
## Commands with special behavior
`chat.new` may ask you to choose a project when there is more than one.
`chat.newLocal` skips that chooser. Both use your
[new-thread defaults](./thread-sidebar.md#start-a-thread).
## Reserved shortcuts
In the desktop app, `mod+w` closes the focused terminal or the active right-panel
tab. When nothing remains to close, it closes the window. In a browser, `mod+w`
closes the browser tab; rebind `rightPanel.close` and `terminal.close` to an available
shortcut such as `alt+w`.
Many defaults include `!terminalFocus` so they do not intercept terminal input.
Keep that condition when remapping them if you want the same behavior.
## Desktop quit shortcut
Use `Cmd+Q` on macOS or `Ctrl+Q` on Windows and Linux. In the default **Hold** mode,
hold for 1.2 seconds or press twice within 500 milliseconds. Holding requires
keyboard repeat; if repeat is disabled, use two presses or the application menu.
Change **Settings → General → Confirmations → Quit shortcut** to **Direct** for a
single press or **Double press** for two presses only. Choosing **Quit** from the
application menu always quits immediately.
-21
View File
@@ -1,21 +0,0 @@
# Mobile appearance
T3 Code Mobile includes the T3 Code, T3 Chat, Grove, Ocean, Ember, and Iris themes. Each theme has
light and dark colors that apply throughout the app, including code reviews, file previews, the
terminal, native headers, and sheets.
On supported iOS versions, the new-task and thread composers, working timer, and scroll-to-end
button use the system glass material. Other platforms use a themed background.
To change themes:
1. Open **Settings**.
2. Select **Appearance**.
3. Choose a theme.
4. Select **System**, **Light**, or **Dark**.
Tap a theme card to use it for both light and dark appearance. To mix themes, tap the light or dark
preview circle inside a card to change only that appearance.
**System** follows the device appearance automatically. Theme, text, code, and terminal appearance
preferences are stored on the device.
+21 -50
View File
@@ -1,60 +1,31 @@
# Permission Modes
# Permission modes
A permission mode controls how much the agent does on its own and when it stops to ask you.
Permission modes control when an agent needs your approval to act. Choose a mode in the message
composer; it applies to that thread.
The mode is set per thread, from the mode control in the message composer. Changing it in one
thread does not change any other thread. A thread created from inside another thread keeps that
thread's mode; otherwise new threads start in **Full access** unless you pick something else
before sending.
New threads start in **Full access** unless you choose another mode before sending. A thread
created from another thread inherits its mode.
## The Modes
| Mode | Behavior |
| --------------------- | ------------------------------------------------------------------------------------- |
| **Supervised** | Requests approval for commands and file changes. |
| **Auto-accept edits** | Approves file edits automatically; other actions can still require approval. |
| **Auto** | Uses the provider's automatic review to approve routine actions and ask about others. |
| **Full access** | Allows commands and edits without approval prompts. |
**Supervised**: ask before commands and file changes. The agent pauses and shows you what it
wants to run or edit, and waits for approval. Work outside the workspace is restricted.
Approve or reject requests in the conversation to let the agent continue. Permission modes do
not prevent the agent from asking questions about the task.
**Auto-accept edits**: auto-approve edits, ask before other actions. File changes go through
without prompting; commands and anything else still stop for approval.
## Provider differences
**Auto**: routine actions proceed without you; risky ones still ask. How this is enforced depends
on the provider: Codex delegates routine approvals to an AI reviewer, Claude uses its own auto
permission mode, Cursor uses Smart Auto review, and providers without an equivalent (such as
OpenCode and Antigravity) fall back to asking, like Supervised.
**Full access**: allow commands and edits without prompts. The default. The agent runs
unattended until it finishes or asks a question of its own.
Approvals appear inline in the conversation. Approve or reject one and the agent continues from
there.
Providers enforce permissions differently. Some read-only actions can proceed in **Supervised**.
**Auto** uses automatic review on Codex, Claude, and Cursor; providers without an equivalent,
including OpenCode and Antigravity, fall back to asking.
For Grok, **Always allow this session** remembers the matching command or tool input. Other
actions still ask for approval. It does not change the thread to **Full access**.
actions still require approval.
Antigravity uses its own permission policy for each mode. T3 Code still shows any approval or
question the official agent sends in **Full access**. A remembered approval is available only
when the agent offers it for that action. Fixed-choice questions require one of the offered
answers and do not accept custom text.
Antigravity can still send native approval requests in **Full access**. It only offers remembered
approvals for actions that support them.
## Choosing a Mode
Use **Full access** for work in a worktree or a sandbox you can throw away.
Use **Supervised** on a repository where an unwanted command is expensive, or the first time you
run an unfamiliar task.
**Auto-accept edits** suits refactors where the edits are the point and you only care about the
shell commands.
## Provider Behavior
Each provider maps these modes onto its own approval and sandbox settings. Codex, for example,
translates the mode into its approval policy and sandbox level, so **Supervised** runs the CLI
with prompting enabled and a restricted workspace while **Full access** disables both. Grok
threads do the same: **Supervised** starts Grok in ask mode even if your Grok CLI config is
set to always-approve, and **Full access** starts Grok with always-approve. The labels above
describe what you get; the exact per-provider translation is internal and may change.
Mobile offers the same four modes with the same labels and descriptions.
Antigravity's native `/plan` command requests a plan. It does not change the permission mode.
T3 Code's separate Plan mode control is not available for Antigravity. See
[Antigravity](./providers-antigravity.md) for setup and thread limits.
See the [provider guides](./install.md#providers) for setup and provider-specific limits.
+11 -25
View File
@@ -1,32 +1,18 @@
# Customize a project icon
# Project settings
T3 Code selects a project icon automatically. It checks `t3.json`, common favicon and app icon
paths, and icon links in project HTML files. If it does not find an image, it chooses a built-in
icon from the saved project name. In web and desktop, this icon stays the same when the sidebar
shows a repository label such as `owner/repo`.
Open **Settings → Projects** and select a project to change its preferences.
To choose a different icon or emoji:
## Project icons
1. Open **Settings** and select **Projects**.
2. Select the project.
3. Next to **Project icon**, select **Choose icon**.
4. Search the full Lucide icon set and choose a color, or switch to **Emoji** and choose or paste
an emoji.
To use an image from the project instead, select **Choose file**, search for an image, and select
it.
T3 Code supports SVG, PNG, ICO, JPEG, GIF, AVIF, and WebP files. The selected path applies to
each checkout in the project group and appears on your connected clients.
To use automatic detection again, select **Automatic**.
Choose an icon, emoji, or image from the project to make it easier to recognize. The choice applies
to every checkout in the project group and appears on connected clients. Choose **Automatic** to
let T3 Code detect an icon again.
## Keep the default branch current
Turn on **Automatically pull** in a project's settings to keep its default-branch checkout current.
T3 Code checks in the background and when the server starts. It uses the branch's configured
upstream and only performs a fast-forward pull when the checkout has no working-tree changes,
untracked files, or local commits.
Enable **Automatically pull** to keep the default-branch checkout up to date with its configured
upstream.
The pull is skipped if the checkout is on another branch, has no upstream, or contains local work.
Pull failures do not prevent the server from starting.
T3 Code only pulls when it can fast-forward and the checkout has no changed files, untracked files,
or local commits. It skips checkouts on another branch or without an upstream. If a checkout has
local work, resolve it yourself before automatic pulls can resume.
+89 -152
View File
@@ -1,198 +1,135 @@
# Antigravity
T3 Code runs Google's official Antigravity ACP agent. By default it signs in with your personal
Google account and uses that account's Antigravity access, including access provided by a
Google AI subscription. It never falls back to a different sign-in method than the one you
select.
The agent, files, conversation state, and Google credentials stay on the selected environment.
Your browser or phone controls that environment. Signing in to the Antigravity IDE or CLI does
not sign in this T3 Code provider.
T3 Code runs Google's official Antigravity ACP agent on your selected environment.
It has its own sign-in, separate from the Antigravity IDE or CLI. Google controls
which models and account access are available through this agent.
## Set up Antigravity
On web or desktop, open **Settings** > **Providers**, select the device that runs your project,
then select **Antigravity**. Provider setup is not available in the mobile app.
On web or desktop, open **Settings > Providers**, choose the environment that runs
your project, and enable Antigravity. Install its runtime there, then choose
**Sign in with Google** and complete the browser sign-in. Wait for T3 Code to confirm
account access and load models before starting a thread. Provider setup is not
available in the mobile app.
1. Choose **Enable Antigravity**. Antigravity is off by default.
2. Choose **Install Antigravity**. T3 Code downloads the official runtime from Google to that
environment. Installation continues if you leave the page or reconnect.
3. Choose **Sign in with Google**.
4. Choose **Open sign-in page**. You can use **Copy sign-in link** to open it in another browser.
5. Complete Google sign-in. Use the account you use for Antigravity.
6. Wait for T3 Code to confirm sign-in and load the model choices. Select an Antigravity model
in the thread's model picker.
Setup requires a connection with permission to operate the environment. If setup is unavailable
on an older server, update that environment first.
Installation continues if you leave settings or reconnect. Setup requires
permission to operate the environment; update an older server if it does not offer
Antigravity setup.
### Sign in from a remote device
Google returns to a `127.0.0.1` address on the device running your browser. If that is the same
machine as the T3 Code environment, sign-in can finish directly.
Google returns to a `127.0.0.1` address. It can finish directly when your browser is
on the environment's machine. From another device, the final page will usually
fail to load because the sign-in listener is on the environment.
On a phone or another computer, the final page will usually fail to load. This is expected.
Copy the full address from the browser, including everything after `?`, and paste it into the
return URL field in the web or desktop client where you started setup. Choose **Continue**. Do not
change the address to your server's hostname.
Copy the full return address, including everything after `?`, into the return URL
field in the web or desktop client where you started setup, then choose
**Continue**. Keep the original address; do not replace it with the server's
hostname. Only that T3 Code sign-in session can finish the attempt. If it expires,
retry sign-in and use the new link.
Return to the same T3 Code client and environment where you started sign-in. Another client
can see that sign-in is in progress, but cannot complete that attempt. The setup screen shows
the expiry time. If it expires, choose **Retry Google sign-in** and use the new link.
The return URL contains a temporary sign-in code. Paste it only into the setup field, not into
a thread or bug report. T3 Code waits for Google's agent to confirm sign-in. A successful
callback page alone does not prove account access.
The return URL contains a temporary sign-in code. Paste it only into the setup
field. A successful callback page alone does not confirm account access; wait for
T3 Code's confirmation.
### Other sign-in methods
**Sign-in method** in the Antigravity provider settings on web or desktop selects how the
agent authenticates.
Choose **Sign-in method** in the Antigravity provider settings:
| Method | What you enter | How it signs in |
| -------------------------- | ---------------------------------------- | ------------------------------- |
| Google account | Nothing | Google sign-in page |
| Gemini Enterprise | GCP project and GCP location | Google sign-in page |
| Gemini API key | API key | Choose **Connect**. No browser. |
| Agent Platform (Vertex AI) | API key, or GCP project and GCP location | Choose **Connect**. No browser. |
| Method | Credentials |
| -------------------------- | -------------------------------------------------------------------------------------------- |
| Google account | Personal Google sign-in in the browser |
| Gemini Enterprise | Browser sign-in, GCP project, and GCP location |
| Gemini API key | API key; choose Connect without a browser |
| Agent Platform / Vertex AI | API key, or GCP project and location with Application Default Credentials on the environment |
Gemini Enterprise resolves your license for the project and location you enter. Agent Platform
with a project and location uses Application Default Credentials on the environment. API keys
are stored in plain text in T3 Code settings on that environment and are passed only to the
Antigravity agent process. Ambient `GEMINI_API_KEY` or `GOOGLE_*` variables on the environment
are ignored.
Changing the method stops the instance's sessions. Sign out or disconnect before you switch
accounts.
The Antigravity API key field is stored in plain text in settings on the
environment. The agent uses the method and credentials selected for this instance;
ambient `GEMINI_API_KEY` and Google credential variables do not override them.
Changing the method stops the instance's sessions. Sign out before replacing an
account.
## Runtime installation
Managed downloads are available for these environment hosts:
| Host | Architecture |
| ------- | ------------- |
| macOS | Apple Silicon |
| Linux | x64 or ARM64 |
| Windows | x64 or ARM64 |
Google does not publish a local Intel Mac runtime. Use an Intel Mac as a client connected to
a supported remote environment.
The current Linux x64 runtime downloads about 682 MB and uses about 2.01 GB after extraction.
Allow at least 3 GB free for installation. An update keeps the previous runtime too.
T3 Code does not download it until you choose to install it.
On web or desktop, **Update Antigravity** appears when T3 Code has a newer managed release.
Running sessions keep their current runtime. New sessions use the installed update.
Managed installation supports Apple Silicon macOS, Linux x64 or ARM64, and Windows
x64 or ARM64. Intel Macs can connect to a supported remote environment. Allow
several GB of free disk space, especially on Linux.
### Use a manual installation
Download the correct archive from the [official ACP Registry][registry] and extract both the
ACP executable and its `localharness_external` helper into the same directory. Keep both files
at the same version and make them executable on macOS or Linux. Windows uses `.exe` files.
Download the archive for your environment from the [official ACP Registry][registry].
Extract the ACP executable and its `localharness_external` helper into the same
directory, at the same version. Make both executable on macOS or Linux; Windows
uses `.exe` files.
On web or desktop, set **Binary path** in the Antigravity provider settings to the ACP
executable on the selected environment. Do not point it at the helper or the Antigravity IDE.
A nonempty **Binary path** takes priority. With the field empty, T3 Code uses its managed
runtime, then an installation on the environment's `PATH`. An invalid explicit path reports
an error instead of selecting another installation. T3 Code does not update or remove manual
installations. Clear **Binary path** to use managed installation controls.
Set **Binary path** to the ACP executable on the environment and update it yourself.
Leave the field blank to use the managed runtime, or a compatible executable on
`PATH` if no managed runtime is installed.
## Models and threads
The current official ACP exposes Gemini models only. T3 Code uses the model IDs and names
returned for your account, including any model choices with different thinking levels. Models
available in other Antigravity apps might not be available through this agent.
The model picker updates when a running session reports new model choices.
The model list comes from your Antigravity account and can differ from other
Antigravity apps. A resumed thread keeps its selected model. If access to that
model ends, select another available model before continuing.
New threads use Gemini 3.8 Flash (High) when your account offers it. Older Gemini generations
stay available under **Legacy models** in the picker.
Use Antigravity's native `/plan` command for planning. T3 Code's separate Plan mode
is unavailable. Tool approvals follow [Permission modes](./permission-modes.md).
Questions with fixed choices still need one of the offered answers, even in
**Full access**.
Threads keep their selected model when you resume them. If that model is no longer available,
T3 Code asks you to select an available model instead of silently changing it.
T3 Code keeps conversation history and file diffs, but Antigravity cannot rewind
its conversation. Reverting a thread or editing and resubmitting an earlier turn
is unavailable. Continue with a follow-up message or start a new thread.
Use Antigravity's native `/plan` command to request a plan. T3 Code's separate Plan mode control
is not available for this provider.
### Skills and attachments
Project skills should use `.agents/skills`. T3 Code also discovers `.gemini/skills` and the legacy
`.agent/skills` location. When multiple locations define the same skill name, `.gemini/skills`
takes precedence, followed by `.agents/skills` and then `.agent/skills`.
Put project skills in `.agents/skills`. T3 Code also reads `.gemini/skills` and the
legacy `.agent/skills` directory. Among these project locations, the first copy
wins in this order: `.gemini/skills`, `.agents/skills`, `.agent/skills`. See
[commands and skills](./composer.md#commands-and-skills) for invoking them.
Antigravity reads and edits workspace files through T3 Code. Each write shows up as a file
change approval with the content, so **Supervised** and **Auto-accept edits** behave the same way
they do for other providers. Attach images, PDFs, text files, or audio clips to a message and
the agent receives them directly.
When the agent offers **Allow for this thread** on a shell or web tool, T3 Code shows Google's
prompt injection warning next to that choice. Untrusted content could re-run the same action
without asking again.
Antigravity can ask you to choose from a fixed set of answers. Select one of the offered
choices. These questions do not accept custom text and still appear in **Full access** mode.
See [Permission modes](./permission-modes.md) for tool approvals.
T3 Code keeps thread history and file diffs. Antigravity does not support conversation rewind,
so reverting a thread or editing and resubmitting an earlier turn is unavailable. Send a
follow-up message or start a new thread instead.
Antigravity accepts images, PDFs, text files, and supported audio formats directly.
Its limits are 1 MiB per text file, 10 MiB per image, 20 MiB per audio clip, and
50 MiB total attachments per message. Unsupported formats are rejected. These
limits can be lower than the general upload limit; uploading a file does not
mean this provider can use it.
### Subagents
Subagent launches appear as **Antigravity subagent batch** in **Agents** on web and desktop,
and in the work log on mobile. One launch can start several agents. The batch stays active
after launch while the parent turn runs. When that turn ends, the entry becomes idle and
states that individual agent status is unavailable. Launch errors remain visible.
The conversation summary counts launches as batches and shows idle or stopped batches
without a completion checkmark.
The official ACP agent does not send individual child status, names, models, token usage,
or reply ownership. T3 Code cannot show separate child entries or separate child replies
from the parent conversation. The launch description is not a child result. Batch entries
cannot be opened or controlled as separate threads.
Antigravity groups subagent activity into batches. You cannot open or control
individual subagents, and an idle batch does not confirm that every child
succeeded. See [agent work](./thread-sidebar.md#inspect-agent-work) for where to
inspect activity.
## Accounts and removal
Each Antigravity provider instance has its own Google sign-in on its environment. Use
**Add provider** in web or desktop provider settings to create a separate instance for another
account. To replace an instance's account, sign out first, then sign in again.
Add an Antigravity provider instance for each Google account in
**Settings > Providers** on web or desktop. Each has its own sign-in; downloaded
runtimes are shared on the environment.
| Action | Result |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Disable Antigravity | Stops the instance's sessions. Keeps Google sign-in, thread history, and files. |
| Sign out of Google | Stops the instance's sessions and removes its saved Google credentials. Keeps thread history and files. |
| Remove downloaded runtime | Removes the runtime shared by Antigravity instances on that environment. Keeps Google credentials, thread history, and files. |
| Action | Effect |
| ------------------------- | ----------------------------------------------------------------- |
| Disable | Stops the instance's sessions and keeps its Google sign-in. |
| Sign out of Google | Stops the instance's sessions and removes its saved Google login. |
| Remove downloaded runtime | Removes the shared installation and keeps Google credentials. |
Send `/logout` by itself in an Antigravity thread to sign out that provider instance. This has
the same effect as **Sign out of Google**, including stopping its other sessions.
All three keep thread history and workspace files. Sending `/logout` by itself in
a thread signs out its instance, including stopping that instance's other sessions.
Sign out, then sign in again to replace an account.
Before removing a managed runtime, disable the instances that use it and cancel any active
installation. T3 Code refuses removal while the runtime is in use. An explicit **Binary path**
that points into the managed runtime must be cleared first.
Before removing a managed runtime, disable its instances and cancel any active
installation. Clear any explicit binary path pointing into that runtime. Removal
is refused while the runtime is in use.
## Account access and errors
## Check access and troubleshoot
Google controls account eligibility, models, and usage limits. T3 Code does not report your
paid-plan tier or remaining subscription quota. See Google's [Antigravity plans][plans] and
[personal Google sign-in guide][google-setup].
To check access and reload models, use **Refresh provider status** in web or desktop
provider settings, or **Refresh models** in mobile thread settings. If asked to
sign in again, use setup on web or desktop.
After an environment restarts, Google sign-in can show as not checked until an authenticated
session succeeds. You can continue an existing thread. Antigravity checks saved Google sign-in
when the session starts. An unchecked status does not require signing in again.
To check account access and reload models on web or desktop, open **Settings** > **Providers**
and select the circular arrow beside **Checked** at the top of the page. Its tooltip says
**Refresh provider status**. On mobile, use **Refresh models** in the model picker.
Refresh uses saved Google sign-in and does not open a login page. If sign-in is required,
use the provider's setup controls on web or desktop. Automatic status checks verify the
installation only.
The packaged runtime can be slow to start, especially on Windows. Health checks, model refresh,
and sign-out each allow up to 90 seconds before reporting a timeout.
If Google reports `SUBSCRIPTION_REQUIRED`, an account restriction, or a usage limit, read the
provider's message. A finished turn can contain an upstream error instead of completed work.
Use any retry time Google supplies. T3 Code does not switch to an API key to get past the limit.
If Google reports `SUBSCRIPTION_REQUIRED`, an account restriction, or a usage limit,
follow the provider's message and any retry time. See [Google's account plans][plans]
for eligibility.
[registry]: https://github.com/agentclientprotocol/registry/blob/main/antigravity-acp/agent.json
[plans]: https://antigravity.google/docs/plans
[google-setup]: https://antigravity.google/docs/ide/extensions/zed
+63 -210
View File
@@ -1,236 +1,89 @@
# Claude
This guide is for people who want to use more than one Claude setup in T3 Code. For Codex, see
[Codex](./providers-codex.md). For first-time setup, see [Install T3 Code](./install.md).
T3 Code uses Claude Code's login and configuration. Start with the default provider
for one account; [provider setup](./install.md#providers) covers installation and
shared provider settings.
Common reasons:
## Separate accounts or configurations
- use separate work and personal Claude accounts
- try a different Claude Code configuration without disturbing your main setup
- run Claude through a router such as Claude Code Router
- use external providers exposed through a Claude-compatible workflow
Use a separate Claude config directory for each account. This also works for named
presets that need different Claude settings or a router connection.
## I Only Use One Claude Account
Use the default provider.
Log in with Claude Code normally:
Keep your existing account in the default directory. On the environment's machine,
create the second login:
```bash
claude auth login
mkdir -p ~/.claude_personal
CLAUDE_CONFIG_DIR=~/.claude_personal claude auth login
```
In T3 Code Settings, your Claude provider can stay like this:
Add another Claude instance in **Settings > Providers**:
```text
Display name: Claude
Binary path: claude
CLAUDE_CONFIG_DIR path: empty
```
| Instance | Binary path | CLAUDE_CONFIG_DIR path |
| --------------- | ----------- | ---------------------- |
| Claude Work | `claude` | Leave empty |
| Claude Personal | `claude` | `~/.claude_personal` |
An empty `CLAUDE_CONFIG_DIR path` means T3 Code uses Claude Code's normal config directory.
An empty config-directory setting uses Claude Code's normal configuration. The
custom setting changes `CLAUDE_CONFIG_DIR`, leaving `HOME` and the system keychain
location intact. Use the same variable for the login command. Setting `HOME`
instead can put credentials where this provider will not find them.
When you set this field, T3 Code points Claude Code at that directory with the
`CLAUDE_CONFIG_DIR` environment variable. It does not change `HOME`, so your system keychain and
the rest of your environment stay as they are.
Check the account reported in provider settings after signing in. Existing
threads can switch only between Claude instances with the same config directory.
Separate account directories stay isolated, including their local conversation
state. Claude does not have Codex's shared-home and shadow-home arrangement.
## Reduce Context Usage
For presets that differ only in API keys or endpoints, use the instance's
**Environment variables**. Variable assignments do not belong in **Launch arguments**.
In Settings, open your Claude provider and set **Auto-compact after** to a token count between
`100000` and `1000000`. For example, `300000` compacts the conversation into a summary once it
reaches about 300,000 tokens, without changing the model's context window. Leave the field
empty to keep Claude Code's default behavior.
## Compact long conversations
On web and desktop, when you return to an older Claude thread with a large context, T3 Code
offers to compact the conversation before you continue. You can also select **Compact context**
from the context meter. On every client, you can enter `/compact` in the message composer, and
Claude can show its own resume prompt when you continue an old session.
Set **Auto-compact after** in the Claude provider settings to an integer between
`100000` and `1000000`. For example, `300000` asks Claude to summarize at about
300,000 tokens. This changes when compaction happens, not the model's context
window. Leave it empty for Claude Code's default.
## Where Claude Skills Are Loaded
You can also send `/compact` in an existing conversation. Web and desktop offer
**Compact context** from the context meter and may suggest it when you return to
a large older thread. See [commands and skills](./composer.md#commands-and-skills)
for using composer commands.
T3 Code looks for Claude skills in the Claude config directory's `skills` folder and
`<workspace>/.claude/skills`, the two places Claude Code loads them from.
## Skills
If the same skill name exists in more than one folder, the one in the Claude config directory
wins, the same way Claude Code resolves it.
Claude skills come from the config directory's `skills` folder and the project's
`.claude/skills` folder. If both define the same name, the config-directory copy
wins. Skills disabled in Claude's settings do not appear in the composer.
A skill set to `off` in Claude Code's `skillOverrides` is left out of both composer menus. A skill
marked `disable-model-invocation` still appears, because you start it yourself when you pick it.
Claude Code runs one skill per message; when a message names several, the last one runs directly and
Claude starts the others through its Skill tool, which refuses skills marked
`disable-model-invocation`.
Use `$` in the composer to select a skill. Skills marked `disable-model-invocation`
can still be started by you. Invoke those one per message: Claude directly runs
only the last named skill and may try to start earlier ones through its Skill
tool, which refuses skills reserved for manual invocation.
## I Want Work And Personal Claude Accounts
## OpenRouter
Use a different Claude config directory for each account.
Create a Claude instance with its own config directory, such as
`~/.claude_openrouter`, and keep **Binary path** set to `claude`. In that instance's
**Environment variables**, use:
Example:
| Variable | Value |
| ---------------------- | ----------------------------------------- |
| `ANTHROPIC_BASE_URL` | `https://openrouter.ai/api` |
| `ANTHROPIC_AUTH_TOKEN` | Your OpenRouter API key, marked Sensitive |
| `ANTHROPIC_API_KEY` | An explicitly empty value |
```text
default config dir work account
~/.claude_personal_home personal account
```
If that Claude config directory has a cached Anthropic login, run `/logout` in a
Claude Code session using that directory before starting the router setup. Cached
login credentials can conflict with the router token.
### Set Up The First Account
Verify requests in OpenRouter's activity dashboard. For model-role overrides and
current compatibility requirements, use the
[OpenRouter Claude Code guide](https://openrouter.ai/docs/cookbook/coding-agents/claude-code-integration).
Log in normally:
## Other routers
```bash
claude auth login
```
In T3 Code Settings:
```text
Display name: Claude Work
Binary path: claude
CLAUDE_CONFIG_DIR path: empty
```
### Set Up The Second Account
Log in with a separate config directory:
```bash
mkdir -p ~/.claude_personal_home
CLAUDE_CONFIG_DIR=~/.claude_personal_home claude auth login
```
Use `CLAUDE_CONFIG_DIR`, not `HOME`. Setting `HOME` writes the login to
`~/.claude_personal_home/.claude`, which is not where T3 Code looks.
Then add another Claude provider in T3 Code:
```text
Display name: Claude Personal
Binary path: claude
CLAUDE_CONFIG_DIR path: ~/.claude_personal_home
```
Use the email shown in Settings to confirm each provider is using the intended account. Emails are
blurred by default; click the blurred email to reveal it.
## Can I Switch Claude Accounts In An Existing Thread?
Usually, no.
T3 Code only offers Claude providers that use the same config directory for an existing thread. A
different config directory is treated as a different Claude environment.
This is different from the recommended Codex setup. Claude Code keeps account and local state across
multiple files under its config directory, so T3 Code keeps separate config directories isolated
instead of trying to share part of the state.
## I Want To Use OpenRouter
Use this when you want Claude Code to talk to OpenRouter directly, without running a local router.
This is the simplest external-provider setup.
OpenRouter provides a Claude Code integration through Claude's Anthropic-compatible environment
variables.
### Configure A Claude OpenRouter Provider
Add or edit a Claude provider in T3 Code Settings:
```text
Display name: Claude OpenRouter
Binary path: claude
CLAUDE_CONFIG_DIR path: ~/.claude_openrouter_home
```
In that provider's Environment variables section, add:
```text
ANTHROPIC_BASE_URL https://openrouter.ai/api
ANTHROPIC_AUTH_TOKEN sk-or-... Sensitive
ANTHROPIC_API_KEY Empty value
```
Mark `ANTHROPIC_AUTH_TOKEN` as sensitive. T3 Code stores the value as a server secret and does not
send it back to the app after saving.
If you want this setup isolated from your normal Claude account, create that home first:
```bash
mkdir -p ~/.claude_openrouter_home
```
If you previously used the same Claude home with a normal Anthropic login, run `/logout` in a Claude
Code session for that home before using OpenRouter. Otherwise Claude Code may keep using cached
Anthropic credentials instead of the OpenRouter token.
### Pick OpenRouter Models
OpenRouter can route Claude Code's default model roles to OpenRouter model IDs.
Example:
```text
ANTHROPIC_DEFAULT_OPUS_MODEL anthropic/claude-opus-4.6
ANTHROPIC_DEFAULT_SONNET_MODEL anthropic/claude-sonnet-4.6
ANTHROPIC_DEFAULT_HAIKU_MODEL anthropic/claude-haiku-4.5
CLAUDE_CODE_SUBAGENT_MODEL anthropic/claude-sonnet-4.6
```
Add those to the same provider's Environment variables section if you want stable model choices.
### Verify OpenRouter Is Being Used
Open a Claude session and run:
```text
/status
```
You should see the Anthropic base URL set to:
```text
https://openrouter.ai/api
```
You can also check the OpenRouter activity dashboard for requests from your API key.
### Common OpenRouter Mistakes
- Use `https://openrouter.ai/api`, not `https://openrouter.ai/api/v1`, for Claude Code.
- Set `ANTHROPIC_AUTH_TOKEN` to your OpenRouter API key.
- Set `ANTHROPIC_API_KEY` to an empty string so Claude Code does not try to use an Anthropic login.
- Put these variables on the Claude provider instance, not in global shell startup files.
OpenRouter's setup can change over time. Use its upstream Claude Code guide for the current details:
<https://openrouter.ai/docs/guides/guides/claude-code-integration>.
## I Want To Use Claude Code Router
Claude Code Router is useful when you want a local routing layer with more control than a direct
OpenRouter setup.
T3 Code does not need a special Claude Code Router provider. Treat the router as a Claude
environment: give a Claude provider its own `CLAUDE_CONFIG_DIR path`, and put whatever variables
the router tells you to export into that provider's Environment variables section. Mark tokens
and API keys as sensitive.
```text
Display name: Claude Router
Binary path: claude
CLAUDE_CONFIG_DIR path: ~/.claude_router_home
```
Follow the upstream project's README for the router's own install, startup, and configuration
steps: <https://github.com/musistudio/claude-code-router>.
## I Want Different Claude Settings, Not A Different Account
Create another Claude provider with the same account if you want a named preset.
Examples:
- "Claude Default"
- "Claude Router"
- "Claude Experimental"
If the preset needs different Claude files, give it a different `CLAUDE_CONFIG_DIR path`. If it needs
different API keys, base URLs, or router settings, use Environment variables.
Do not put environment variable assignments in `Launch arguments`.
A local router uses an ordinary Claude provider instance. Give it a separate
config directory and put the router's endpoint and credential variables in that
instance's **Environment variables**. The router must run where the environment
can reach it. Follow the [Claude Code Router instructions](https://github.com/musistudio/claude-code-router)
for its installation and routing configuration.
+54 -162
View File
@@ -1,179 +1,71 @@
# Codex
This guide is for people who want to use more than one Codex account in T3 Code. For Claude, see
[Claude](./providers-claude.md). For first-time setup, see [Install T3 Code](./install.md).
For one account, use the default Codex provider with your normal Codex login.
[Provider setup](./install.md#providers) covers installation, Settings > Providers,
and custom binaries or environment variables.
Common reasons:
## Use multiple accounts
- use a work account for work projects
- use a personal account for personal projects
- switch to another account when one account hits limits
- keep one shared Codex history instead of maintaining two separate Codex setups
A shared Codex home with a shadow home lets work and personal accounts continue
the same threads. The accounts share Codex sessions and configuration while keeping
their own login and available models.
## I Only Use One Codex Account
Use the default provider.
In Settings, your Codex provider can stay like this:
```text
Display name: Codex
CODEX_HOME path: ~/.codex
Shadow home path: empty
```
Log in with Codex normally:
Keep your first account in `~/.codex`. On the environment's machine, sign the
second account into a fresh directory:
```bash
codex login
mkdir -p ~/.codex_personal
CODEX_HOME=~/.codex_personal codex login
```
## Send feedback to OpenAI
Then add a second Codex instance in **Settings > Providers**:
In an existing Codex thread, send `/feedback` or `/feedback` followed by a description of the
issue. T3 Code uploads the thread and Codex logs to OpenAI and shows a thread ID that you can copy
and share with OpenAI employees.
| Instance | CODEX_HOME path | Shadow home path |
| -------------- | --------------- | ------------------- |
| Codex Work | `~/.codex` | Leave empty |
| Codex Personal | `~/.codex` | `~/.codex_personal` |
Both instances must use the same **CODEX_HOME path**. T3 Code prepares the shared
state in the shadow directory; do not populate it by copying your whole Codex
home.
The shadow account needs its own `auth.json` file. If Codex uses an OS credential
store, configure file storage for this setup. See
[OpenAI's credential storage guide](https://learn.chatgpt.com/docs/auth#credential-storage).
Use a completely separate **CODEX_HOME path**, with no shadow home, when you want
separate Codex sessions and configuration. That instance cannot continue threads
from the other home.
## Switch accounts in an existing thread
Choose the other account from the thread's model picker. T3 Code offers compatible
Codex instances that share the thread's **CODEX_HOME path**. Changing accounts does
not move the conversation into a separate Codex home.
If the account is missing from the picker, compare the home paths in provider
settings. If two instances show the same unexpected account or models, check their
reported accounts, refresh provider status, and confirm the second instance has
its own shadow path and login. A shadow-home conflict usually means the directory
contains a copied Codex setup. Use a fresh shadow directory and sign in again.
## Answer questions while Codex works
Codex can ask questions without stopping its work. Choose a suggested answer or enter your own
in the question panel. Questions without suggested answers accept text.
Codex can ask a question and keep working. Answer it in the thread's question
panel. The answer becomes a new message: it reaches the active turn, or starts
another turn if Codex has finished. Unanswered questions survive reconnects.
This requires a Codex version that supports async questions.
Your answers are sent as a new message. They reach the current turn while Codex is working, or
start a new turn if it has finished. Unanswered questions stay available after you reconnect.
This works in the web, desktop, and mobile apps. Codex must support async questions.
## Approve app access
## Sub-agent models
Codex tools can request access to another app. Respond to the named app's request
in the thread on web, desktop, or mobile. Some tools offer access for one request,
the current session, or permanently. See [Permission modes](./permission-modes.md)
for command and file approvals.
The web and desktop Agents panel shows each sub-agent's model and reasoning effort when Codex
reports them. If Codex does not report either value, T3 Code leaves it out instead of using the
parent agent's settings.
## Send feedback to OpenAI
## Browser and computer activity
Browser and Computer Use calls show their user-facing task title when Codex provides one. Expanded
activity groups show an icon for every call. Website calls use the active page's favicon when it is
available, and desktop app calls use the app's native icon on macOS when available. Other hosts use
a generic fallback glyph.
Collapsed activity groups are summarized by source, such as `Used Chrome integration`, instead of
showing the underlying tool name. Website favicons and native app icons keep their original colors;
integrations that provide separate light and dark logos use the logo for the current appearance.
## Approve access to other apps
When a Codex tool needs access to an app such as Safari, T3 Code shows the app name and asks for
approval. You can approve, decline, or cancel the request from the desktop app, web app, or mobile
app. Some tools also offer approval for the current session or permanent approval.
## I Want Work And Personal Codex Accounts
Use one real Codex home and one shadow home.
Recommended setup:
```text
~/.codex shared Codex home
~/.codex_p second account auth
```
The idea is:
- both accounts can see the same T3/Codex sessions
- each account keeps its own login
- existing threads can continue with either account
### Set Up The First Account
Log in normally:
```bash
codex login
```
This is the account used by `~/.codex`.
In T3 Code Settings, name it something obvious:
```text
Display name: Codex Work
CODEX_HOME path: ~/.codex
Shadow home path: empty
```
### Set Up The Second Account
Log in with a separate Codex home:
```bash
mkdir -p ~/.codex_p
CODEX_HOME=~/.codex_p codex login
```
In T3 Code Settings, add another Codex provider:
```text
Display name: Codex Personal
CODEX_HOME path: ~/.codex
Shadow home path: ~/.codex_p
```
The important part is that both providers use the same `CODEX_HOME path`, but only the second one
has a `Shadow home path`.
## Which Account Am I Using?
Open Settings and look at the provider row.
T3 Code shows the authenticated email for providers that report one. Emails are blurred by default;
click the blurred email to reveal it.
Use display names and accent colors to make accounts easy to tell apart in the model picker.
## I Need A Different API Key Or Endpoint
Use the provider's Environment variables section in Settings.
This is useful when a Codex-compatible setup needs account-specific variables. Add the variables to
the provider instance that should receive them, and mark API keys or tokens as sensitive. Sensitive
values are stored as server secrets and are not sent back to the app after saving.
## Can I Switch Accounts In An Existing Thread?
Yes, when both Codex providers share the same `CODEX_HOME path`.
For example:
```text
Codex Work CODEX_HOME path: ~/.codex
Codex Personal CODEX_HOME path: ~/.codex, Shadow home path: ~/.codex_p
```
Those two providers are considered compatible for continuation, so the locked model picker can show
both.
If you add a third Codex provider with a completely different `CODEX_HOME path`, T3 Code treats it
as a different workspace. It will not be offered for existing threads created under `~/.codex`.
## If Both Accounts Look The Same
If two Codex providers show the same account or the same unexpected model list:
1. Check the email in Settings.
2. Refresh provider status.
3. Confirm the second provider has `Shadow home path` set.
4. Confirm the shadow directory has its own `auth.json`.
5. If you copied `~/.codex` into the shadow directory, remove everything except `auth.json`.
Example cleanup:
```bash
find ~/.codex_p -mindepth 1 ! -name auth.json -exec rm -rf {} +
```
## When To Use A Separate CODEX_HOME
Use a totally separate `CODEX_HOME path` only when you want a separate Codex workspace.
That means separate sessions and less account switching inside old threads. Most dual-account users
should use the shared-home plus shadow-home setup instead.
In an existing Codex thread, send `/feedback` with an optional description, for
example `/feedback The agent stopped before finishing the tests`. This uploads
the conversation and Codex logs to OpenAI. The returned thread ID can be shared
with OpenAI support.
+35 -79
View File
@@ -1,93 +1,49 @@
# OpenCode
T3 Code uses the OpenCode setup on the connected environment. With a remote environment, its
OpenCode login and configuration apply, not the setup on your desktop or phone.
Install and authenticate OpenCode on the machine running your environment, then
enable it in **Settings > Providers**. See [provider setup](./install.md#providers).
T3 Code requires OpenCode 1.14.19 or newer, including when you connect an existing
OpenCode server.
T3 Code requires OpenCode 1.14.19 or newer. It checks the server version before it loads models or
starts work. If the check fails, update OpenCode or fix the server URL and password, then refresh
the provider status. Reconnecting the client also runs the check again.
## Local or external server
## Server authentication
Leave **Server URL** empty to let T3 Code start OpenCode locally. A password in
provider settings applies to both that server and T3 Code's connection. With no
password setting, the local server uses `OPENCODE_SERVER_PASSWORD` from its
environment.
Without a server URL, T3 Code starts a local OpenCode server. The process inherits
`OPENCODE_SERVER_PASSWORD` from the environment. A password in the provider settings overrides
that environment value for both the local process and T3 Code.
To use an existing OpenCode server, set **Server URL** and its password in provider
settings. T3 Code uses only that configured password for an external server; it
does not forward a local `OPENCODE_SERVER_PASSWORD`. If connection or version checks
fail, check the URL, credentials, and OpenCode version, then refresh provider status.
With a server URL, T3 Code connects to that external server and uses only the password in the
provider settings. It does not send a local `OPENCODE_SERVER_PASSWORD` to an external server.
OpenCode uses this password for HTTP Basic authentication.
After a lost connection, send another prompt to reconnect to the same OpenCode
session.
## Approvals
In **Supervised** and **Auto** modes, OpenCode can read normal project files, search files, load
skills, and update its task list without approval. Files such as `.env` and `.env.local` still
require approval. `.env.example` does not. OpenCode does not have an AI approval reviewer, so
**Auto** uses the same permission rules as **Supervised**.
OpenCode follows the shared [permission modes](./permission-modes.md). **Auto** has
the same rules as **Supervised** because OpenCode has no AI approval reviewer.
Environment files such as `.env` and `.env.local` need approval in restricted
modes even though normal file reads do not; `.env.example` is allowed.
OpenCode asks before it runs commands, edits files, accesses the web, or accesses directories
outside the workspace. **Auto-accept edits** also permits file edits without approval.
**Full access** permits all these actions. Questions that need your answer can still appear.
**Allow for workspace** applies to matching requests in other OpenCode sessions
using the same workspace. It is broader than the current thread, especially on a
shared external server. Use **Allow once** for a single request. Denying an action
does not stop the whole turn.
An **Approval** badge means OpenCode needs a decision. Open the thread to see the action and
choose one of these options:
## Refresh models, commands, and skills
- **Allow once** permits this request.
- **Allow for workspace** permits matching requests in other OpenCode sessions in the same
workspace. It is not limited to the current thread.
- **Deny** rejects this request. Use **Stop** to stop the whole turn.
After changing an OpenCode login or configuration, use **Refresh provider status**
in **Settings > Providers** for that environment. On mobile, use **Refresh models**
in the thread settings. Reconnecting also refreshes the catalog; periodic provider
health checks do not.
If a connection error prevents the reply, the approval stays available so you can try again.
Credential changes are read on refresh. Native OpenCode configuration can remain
cached while the local helper is running. Let it sit for 30 seconds without model
refreshes or text-generation work, then refresh again to reload the files. Repeated
refreshes keep the helper alive. An external server may need its own reload or
restart before T3 Code can see configuration changes.
## Progress
T3 Code shows OpenCode's response text and tool results while work runs. The web and desktop apps
also show its task-list progress. A task-list update does not require approval.
If the OpenCode connection closes unexpectedly, T3 Code shows an error. Send another prompt to
reconnect to the same OpenCode session.
## Stop a turn
When you select **Stop**, T3 Code stops the main OpenCode session and all nested child sessions.
T3 Code waits for this cleanup before it marks the turn as stopped or sends the next prompt. It
does not stop unrelated OpenCode sessions. After Stop succeeds, pending approvals and questions
are cleared.
Stop reports an error if OpenCode cannot stop the main session or list or stop a child session.
When T3 Code closes an OpenCode session, it also tries to stop the child sessions, but this
teardown is best effort.
## Refresh the model list
T3 Code loads the model list when an enabled OpenCode provider starts and keeps the list in its
cache. Reconnecting a client or using a refresh control asks OpenCode for the list again. The
periodic provider health setting does not refresh OpenCode's catalog.
After changing an OpenCode login or configuration outside T3 Code, open **Settings > Providers**,
select the environment, and choose **Refresh provider status**. Changing the provider's
configuration in T3 Code also replaces that provider connection.
On mobile, open the thread settings and select **Refresh models**. The control stays disabled while
the refresh runs and shows an error if the refresh fails.
OpenCode reads credential changes on each model-list request. Native OpenCode configuration files
can stay cached while the local helper is running. The helper closes after 30 seconds with no
model-list or text-generation work. Refresh after that idle period to start a new helper and read
the file changes. Repeated refreshes or active helper work can extend this wait.
T3 Code does not own an external OpenCode server. Native configuration changes on that server can
require its own reload or restart before a refresh returns the new list.
If a refresh fails, T3 Code keeps the last known models, slash commands, and skills. Fix the
connection, then refresh again. A successful refresh can remove entries that OpenCode no longer
offers.
## Continue an existing thread
An existing thread keeps its selected model and options when that model is temporarily absent
from the catalog. The web picker shows an **Unavailable** row and keeps saved option values visible
until the model metadata returns. T3 Code does not switch the thread to the first model in the
list.
The stored selection does not guarantee that OpenCode can still run the model. If the provider
rejects it, select an available model before trying again.
Existing threads keep their selected model and options even when it disappears
from the catalog. If OpenCode rejects that model, select an available one and retry.
+115 -242
View File
@@ -1,290 +1,163 @@
# Remote Access
# Remote access
Use this when you want to connect to a T3 Code server from another device such as a phone, tablet, or separate desktop app.
Connect a phone, browser, or another desktop app to T3 Code running on a different
machine. That machine must stay running and reachable while you work.
## T3 Connect troubleshooting
## T3 Connect
Run `t3 connect` on the server machine to authorize it and optionally install the background service.
The authorization message means your sign-in was saved. The server must then start and establish its
relay link before the machine is reachable.
T3 Connect makes an environment available to your other devices without setting
up router forwarding. In the desktop app on the host, open **Settings →
Connections**, sign in, and enable **T3 Connect** for that environment.
`t3 connect status` reports saved authorization and link configuration, not a live reachability
check. If the machine appears offline, run `t3 service status` on it and read the displayed log.
On Linux, a service that works while SSH is open but stops after logout usually has lingering
disabled. See [background service troubleshooting](./background-service.md#troubleshooting).
For a command-line host, run:
Relay errors include the returned reason and trace ID when available:
```bash
npx t3@latest connect
```
| Error | Next step |
| ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `environment_link_limit_exceeded` / managed tunnel limit reached | Unlink an unused environment in T3 Connect, then restart T3 Code on this machine. |
| `auth_invalid` / `invalid_bearer` | Run `t3 connect login`. If the stored credential was revoked, run `t3 connect logout`, then `t3 connect` and restart the server. |
| Expired or invalid link proof | Check the server's date and time, update T3 Code, and restart it. Include the reason and trace ID if it still fails. |
| HTTP 403 without a recognized error response | Check relay access and any proxy or firewall restrictions. Include the Cloudflare Ray ID if one was returned; an HTTP status alone does not identify the cause. |
| HTTP 408, 429, or 5xx | The server retries temporary failures during startup for up to ten minutes. Check network and relay availability; include the trace ID when reporting a persistent failure. |
Follow the sign-in instructions. Setup offers a
[background service](./background-service.md); if you decline it, start the
server with `npx t3 serve`. Saving your sign-in alone does not make the machine
reachable.
Authorization and other permanent 4xx rejections stop the startup link attempt immediately.
After correcting them, restart the server. For the Linux background service, use
`systemctl --user restart t3code.service`; for a foreground server, stop it and run `t3 serve` again.
Keep the diagnostic message and trace ID when reporting a problem. Do not post authorization codes,
pairing URLs, or the contents of the secrets directory.
On your other device, sign in to the same T3 Connect account and choose the
environment. Over SSH, the CLI prints a browser link and accepts the returned
authorization code, so you do not need to forward an OAuth callback port.
## Quick Pairing for a Running Server
## Pair over a LAN or private network
If a server is already running on this machine, mint a fresh pairing token and QR code without restarting anything:
Use direct pairing when the other device can reach the host's network address.
On a desktop host, open **Settings → Connections**, enable **Network access**,
then create a pairing link using an address the other device can reach. Changing
network access restarts the desktop app. You can turn it off in the same place.
For a command-line host, replace `<private-ip>` with the host's LAN or tailnet
address:
```bash
npx t3 serve --host <private-ip>
```
If a server is already running, generate a fresh link without restarting it:
```bash
npx t3 pair
```
`t3 pair` finds the running server (the shared `~/.t3` install, or the current worktree's dev server when run inside one), issues a one-time pairing token, and prints the pairing URL as a QR code you can scan from your phone.
Scan the QR code on your phone or paste the pairing URL into **Add environment**
in the receiving app. Connection settings are under **Settings → Connections**
on web and desktop and **Settings → Environments** on mobile. A loopback address
such as `127.0.0.1` reaches only the device opening the link.
If the server is only bound to loopback, the printed URL is not reachable from another device. Pair over your tailnet instead:
Pairing authorizes that device for future connections. Use a fresh one-time link
for each new device; you do not need the original token to reconnect. Links
created in Settings can only be copied from the client that created them while
its Connections page stays open. If you leave or reload that page, create
another link to share.
```bash
npx t3 pair --tailscale
```
### Tailscale HTTPS
This publishes the server over Tailscale Serve HTTPS (configuring the mapping if needed — it persists until you run `tailscale serve --https=443 off`) and pairs through the `https://machine.tailnet.ts.net/` URL. Use `--tailscale-serve-port` for a different HTTPS port, `--ttl` to change the token lifetime, and `--base-dir` to target a specific data directory.
Join both devices to the same tailnet. In the desktop app, enable **Tailscale
HTTPS** in **Settings → Connections**. Turn it off there to remove that route.
If no server is running, `t3 pair` says so and points you at `npx t3 serve` or `npx t3 connect`.
## Recommended Setup
Use a trusted private network that meshes your devices together, such as a tailnet.
That gives you:
- a stable address to connect to
- transport security at the network layer
- less exposure than opening the server to the public internet
## Enabling Network Access
There are three ways to reach your server from another device: expose the desktop app's backend,
run a headless server from the CLI, or have the desktop app launch T3 Code over SSH.
### Option 1: Desktop App
If you are already running the desktop app and want to make it reachable from other devices:
1. Open **Settings** → **Connections**.
2. Under **This environment**, toggle **Network access** on. This will restart the app and run the backend on all network interfaces.
3. The settings panel will show the default reachable endpoint, with a `+N` control when more endpoints are available. Expand it to inspect alternatives such as loopback, LAN, private-network, or HTTPS endpoints.
4. Use **Create Link** to generate a pairing link you can share with another device.
Pairing codes and share links are available only in the client that created them,
while its Connections page remains open. After you leave the page or reload it,
create a new link to share. Other clients can see the active link's name, scopes,
and expiry, and can revoke it if they have access management permission.
The default endpoint controls the QR code and primary copy action for pairing links. You can change it from the expanded endpoint list. The preference is stored by endpoint type, so choosing the local LAN endpoint survives normal IP address changes when you move between networks.
After an app restart, the desktop app replaces its previous
local credential. Old local desktop entries are removed from **Authorized clients**
automatically. Paired phones, browsers, and remote desktop clients keep their access.
When no user default is saved, the app uses the built-in LAN endpoint for pairing links when
available. You can set another endpoint as the default from the expanded endpoint list.
- HTTPS/WSS-compatible endpoints work from `https://app.t3.codes`, but are not made the default
automatically.
- Non-loopback HTTP endpoints are useful for direct LAN pairing.
- Loopback-only endpoints are not useful for another device unless that device is the same machine.
If the copied link points directly at `http://192.168.x.y:3773`, open it from a client that can reach that LAN address. If it points at `https://app.t3.codes/pair?...`, the hosted web app will save the environment and connect directly to the backend URL in the link.
In the mobile app's **Add Environment** form, a numeric IP address without a scheme uses HTTP. Include `https://` explicitly when the backend is served over HTTPS.
### Tailscale Endpoints
When the desktop app can detect Tailscale, it adds Tailnet endpoints to the reachable endpoint list.
Depending on your Tailscale setup, this may include:
- the machine's `100.x.y.z` Tailnet IP
- a MagicDNS name
- an HTTPS MagicDNS endpoint when Tailscale Serve is configured for this backend
The Tailscale HTTPS endpoint uses the clean MagicDNS URL, such as
`https://machine.tailnet.ts.net/`, and is off until you opt in. Turn on **Enable Tailscale HTTPS**
on the **Tailscale HTTPS** row in **Settings** → **Connections**. The desktop app restarts the
backend with the same server-side behavior as `t3 serve --tailscale-serve`, then the server asks
Tailscale Serve to proxy HTTPS traffic to the local backend. Turn the same switch off to stop it.
The Tailscale support is an endpoint provider add-on. The core remote model still works without Tailscale: LAN HTTP endpoints, custom HTTPS endpoints, future tunnels, and SSH-launched environments all use the same saved environment and pairing flow.
For `https://app.t3.codes`, prefer an HTTPS Tailnet or other HTTPS endpoint. A plain `http://100.x.y.z:3773` endpoint can still work from a desktop client or another browser page served over HTTP, but it will not work from the hosted HTTPS app because of browser mixed-content rules.
### Option 2: Headless Server (CLI)
Use this when you want to run the server without a GUI, for example on a remote machine over SSH.
Run the server with `t3 serve`.
```bash
npx t3 serve --host "$(tailscale ip -4)"
```
`t3 serve` starts the server without opening a browser and prints:
- a connection string
- a pairing token
- a pairing URL
- a QR code for the pairing URL
From there, connect from another device in either of these ways:
- scan the QR code on your phone
- in the desktop app, enter the full pairing URL
- in the desktop app, enter the host and token separately
- in the hosted web app, open a hosted pairing URL when the backend is reachable over HTTPS
Use `t3 serve --help` for the full flag reference. It supports the same general startup options as the normal server command, including an optional `cwd` argument.
For hosted web pairing over Tailscale HTTPS, opt in to Tailscale Serve:
To start a command-line server with Tailscale HTTPS:
```bash
npx t3 serve --tailscale-serve
```
By default this configures Tailscale Serve on HTTPS port 443 and advertises
`https://machine.tailnet.ts.net/`. Advanced users can choose a different HTTPS port:
For an already-running server:
```bash
npx t3 serve --tailscale-serve --tailscale-serve-port 8443
npx t3 pair --tailscale
```
Once paired, add projects normally: open the Command Palette and choose **Add Project**, then pick
the environment the project lives on. Every saved environment is offered, not only the local one.
The pairing link uses an address such as `https://machine.tailnet.ts.net/`.
The mapping created by `pair --tailscale` persists across restarts. Remove its
default-port mapping with:
### Option 3: Desktop-Managed SSH Launch
Use this when you want the desktop app to start or reuse T3 Code on another machine over SSH.
1. Open **Settings** → **Connections**.
2. Under **Remote Environments**, choose **Add environment**.
3. Select the SSH launch flow.
4. Enter the SSH target, such as `[email protected]`.
5. Confirm the launch. The desktop app probes the host, starts or reuses a remote T3 server, opens a local port forward, and saves the environment.
After setup, the renderer connects to a local forwarded HTTP/WebSocket endpoint. The remote host still owns the actual T3 server, projects, files, git state, terminals, and provider sessions.
SSH launch is a desktop feature because it needs local process and SSH access. Once the environment is paired and saved, it uses the same environment list and connection model as direct LAN, Tailscale, HTTPS, or future tunnel-backed environments.
#### SSH Launch Troubleshooting
The desktop SSH launcher connects with a non-interactive `sh` session, writes a small launcher script under `~/.t3/ssh-launch/<host-key>/`, starts or reuses a remote T3 server, and forwards the remote loopback port back to your desktop.
The remote host must have a compatible Node.js runtime. T3 Code uses the server package's `engines.node` requirement:
```text
^22.16 || ^23.11 || >=24.10
```bash
tailscale serve --https=443 off
```
During SSH launch, T3 Code first checks whether `node` is on `PATH`. If it is missing, the launcher
looks in the usual install directories and tries to activate a version manager if it finds one
(Volta, asdf, mise, fnm, nodenv, nvm). That covers most setups, but a version manager that only
initializes from an interactive shell profile will not be picked up.
If that port is already in use, choose another with
`--tailscale-serve-port`. See `npx t3 pair --help` for other pairing options.
If launch fails with `node: command not found`, a port-scan failure, or a message that the remote Node version does not satisfy the required range, SSH into the host and check the same non-interactive shell path T3 Code uses:
### Hosted web app
[app.t3.codes](https://app.t3.codes) needs an HTTPS endpoint. It connects directly
to your server; a hosted pairing link does not make an unreachable backend
reachable or convert HTTP to HTTPS.
For a plain HTTP LAN endpoint, use the direct pairing URL in a browser that can
open it, or pair from the desktop app. On mobile, an IP address entered without a
scheme uses HTTP, so include `https://` when your server uses HTTPS.
## Desktop-managed SSH
In the desktop app, open **Settings → Connections → Add environment**, choose
**SSH**, and enter a host or SSH alias such as `[email protected]`. T3 Code starts
or reuses a server there and opens the port forward for you. Projects, provider
credentials, and agent work stay on the remote machine.
The remote host needs a compatible [Node.js installation](./install.md#requirements)
and [provider setup](./install.md#providers). If launch cannot find Node or reports
an incompatible version, check it through a non-interactive SSH session:
```bash
ssh user@example.com 'sh -lc "command -v node && node --version"'
```
If that does not print a compatible Node version, configure your version manager for non-interactive shells or install a compatible Node binary in one of the searched locations. For example, with nvm you may need a default alias:
Configure your version manager for non-interactive shells if this differs from
your normal terminal. With nvm, setting a compatible default, such as
`nvm alias default 24`, can resolve the problem.
```bash
nvm alias default 24
```
If SSH reconnecting fails after an app update, retry the launch once. Removing
the connection stops a server that T3 Code launched; a server that was already
running is left alone.
With mise, asdf, fnm, or nodenv, make sure the tool's shim directory is installed and resolves to a Node version satisfying the range above without an interactive shell.
For Antigravity's Google callback on a remote host, see
[remote sign-in](./providers-antigravity.md#sign-in-from-a-remote-device).
If reconnecting after an app update fails, retry the SSH launch once. The launcher now compares its generated runner script, stops stale launcher-managed remote servers, clears the SSH launch PID/port state, and starts a fresh remote server. You should not normally need to delete `~/.t3/ssh-launch` or kill `t3` processes manually.
## Manage or revoke access
## Antigravity Google sign-in
On the host, **Settings → Connections** lets authorized administrators create
pairing links and revoke client sessions. Revoking an unused link prevents new
pairings; revoke a device's session to remove its existing access. Command-line
management is available through `npx t3 auth --help`.
Antigravity runs and saves its Google credentials on the selected environment. You can install
it and sign in from a remote web or desktop client without an SSH login.
To remove an environment from T3 Connect, open your account menu's **T3 Connect**
page, or **Settings → T3 Connect** on mobile, and choose **Deregister**. This
revokes its cloud access and frees its host space even when the environment is
offline or has been wiped.
Start in **Settings** > **Providers**, select the environment, then choose **Antigravity**.
Provider setup is not available in the mobile app.
On a command-line host, `t3 connect unlink` disables exposure while retaining
your login; `t3 connect logout` also clears that login. Background-service
[removal](./background-service.md#manage-the-service) is separate.
After Google sign-in, a remote browser usually reaches a `127.0.0.1` page that cannot load.
Copy that full address into the return URL field in the same T3 Code client and choose
**Continue**. Keep the address unchanged. Do not paste the return URL into a thread or bug report.
Treat pairing URLs and authorization codes as passwords. Do not include them in
screenshots, logs, or bug reports.
See [Antigravity setup](./providers-antigravity.md) for installation, expiry, and account changes.
## T3 Connect troubleshooting
## Updating a Remote Server
Run `t3 connect status` on the host to inspect saved authorization and link
configuration. It is not a live reachability check. If the environment appears
offline, run `t3 service status` and read the displayed log. If it disappears
when SSH closes, see [background-service troubleshooting](./background-service.md#troubleshooting).
When the T3 Code web or desktop app and a remote server use different versions, a warning appears in
the conversation and in **Settings** → **Connections**. Follow the action shown there: T3 Code may
be able to update and reconnect the server for you, or it may ask you to update the desktop app or
run a copied command on the server machine.
| Error | Recovery |
| --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `environment_link_limit_exceeded` or managed tunnel limit | Deregister an unused environment, then restart T3 Code on the host. |
| `auth_invalid` or `invalid_bearer` | Run `t3 connect login`. If credentials were revoked, run `t3 connect logout`, then `t3 connect` again. Restart the server after signing in. |
| Expired or invalid link proof | Check the host's date and time, update T3 Code, then restart it. |
| HTTP 403 without a recognized error | Check relay access, proxies, and firewall rules. Keep any Cloudflare Ray ID for a bug report. |
| HTTP 408, 429, or 5xx | Check network and relay availability. Startup retries temporary failures for up to ten minutes. |
If T3 Connect cannot connect, check the date and time on both devices, then try again.
After fixing a permanent rejection, restart the host's server. On Linux, use
`systemctl --user restart t3code.service` for the background service. For a
foreground server, stop it and run `t3 serve` again with your usual options.
Include the diagnostic message and trace ID when reporting a persistent failure.
Finish active work before updating because the server restarts briefly. For step-by-step guidance,
see [Keeping T3 Code in Sync](./updating.md).
On a Linux host, you can keep the server running after logout and manage it independently of the
connection method. See [Running T3 Code in the Background](./background-service.md).
## How Pairing Works
The remote device does not need a long-lived secret up front.
Instead:
1. `t3 serve` issues a one-time owner pairing token.
2. The remote device exchanges that token with the server.
3. The server creates an authenticated session for that device.
After pairing, future access is session-based. You do not need to keep reusing the original token unless you are pairing a new device.
## Hosted Web App Pairing
The hosted web app at `https://app.t3.codes` can save a remote backend in browser local storage from a URL like:
```text
https://app.t3.codes/pair?host=https://backend.example.com:3773#token=PAIRCODE
```
Use hosted pairing when the backend is reachable from the browser over HTTPS/WSS. This includes a backend behind a trusted HTTPS tunnel or another HTTPS endpoint you operate.
Do not use hosted pairing for plain HTTP LAN URLs such as `http://192.168.x.y:3773`. Browsers block an HTTPS page from connecting to an insecure HTTP or WS backend. For those endpoints, use the direct pairing URL shown by the desktop app or CLI from a client that can open that HTTP URL directly.
Hosted pairing does not proxy traffic through T3 Code. The browser still connects directly to the backend URL in the pairing link.
## Managing Access Later
Use `t3 auth` to manage access after the initial pairing flow.
Typical uses:
- issue additional pairing credentials
- inspect active sessions
- revoke old pairing links or sessions
Use `t3 auth --help` and the nested subcommand help pages for the full reference.
### Deregister a T3 Connect Environment
Open your account menu and choose **T3 Connect** to see every environment registered to your
account. On mobile, open **Settings** → **T3 Connect**. Choose **Deregister** to revoke an
environment's T3 Connect access, remove any managed tunnel, and free its host space.
Deregistration is an account action and does not need a connection to the environment, so it also
works for a server that was wiped or is no longer reachable. Device-local connect and disconnect
controls remain in **Settings** → **Connections** on web and desktop or **Settings** →
**Environments** on mobile.
## Security Notes
- Treat pairing URLs and pairing tokens like passwords.
- Prefer binding `--host` to a trusted private address, such as a Tailnet IP, instead of exposing the server broadly.
- Anyone with a valid pairing credential can create a session until that credential expires or is revoked.
- Hosted pairing links keep the credential in the URL hash so it is not sent to the hosted app server, but it can still be exposed through browser history, screenshots, logs, or copy/paste.
- Use `t3 auth` to revoke credentials or sessions you no longer trust.
For a connection that still fails after linking, check the date and time on both
devices. For server version warnings, follow [Updating T3 Code](./updating.md).
+61 -149
View File
@@ -1,181 +1,93 @@
# Source Control Integrations
# Source control
T3 Code connects to your Git hosting provider so you can create pull requests, review code, and manage repositories without leaving the app.
T3 Code integrates with GitHub, GitLab, Bitbucket, and Azure DevOps to clone and publish
repositories, create pull requests, and review changes.
## Supported Providers
## Connect an account
T3 Code works with the platforms your team already uses:
Install Git and configure authentication on the machine running your T3 Code server. For a remote
environment, do this on the remote machine. After signing in, open **Settings → Source Control**
and choose **Rescan**.
- **GitHub** – Pull requests, repository creation, and clone integration
- **GitLab** – Merge requests, repository publishing, and hosted clones
- **Bitbucket** – Pull request workflows (via API token authentication)
- **Azure DevOps** – Pull request support for Microsoft-hosted repositories
### GitHub
## What You Can Do
Install [GitHub CLI](https://cli.github.com/) 2.81.0 or newer, then sign in:
### Start Projects from Anywhere
```bash
gh auth login
```
**Clone repositories directly**
### GitLab
- Open the Command Palette (`Cmd/Ctrl + K`) → **Add Project**
- Choose **GitHub repository**, **GitLab repository**, **Bitbucket repository**, **Azure DevOps repository**, or paste any **Git URL**
- Enter the repository path (`owner/repo`, `group/project`, `workspace/repository`, or `project/repository`) or a full Git URL, pick a destination, and start coding
Install [GitLab CLI](https://gitlab.com/gitlab-org/cli), then sign in:
**Publish local projects to the cloud**
```bash
glab auth login
```
- Have a local Git repository without a remote?
- Use the **Publish Repository** action to create a new hosted repository (GitHub, GitLab, Bitbucket, or Azure DevOps), add it as your origin remote, and push, in one flow
- If the local repository has no commits yet, publishing creates the remote and wires it up but does not push. Make a commit, then push normally.
### Bitbucket
### Manage Code Reviews Without Context Switching
**Create pull requests while you work**
- Push a branch and create a pull request from the Git actions controls in the toolbar
- T3 Code can suggest titles and descriptions based on your commits
- With **Repository conventions** selected, generated source control text follows the project's
`AGENTS.md` along with recent commit subjects. Claude writers also follow `CLAUDE.md`
- Supports GitHub Pull Requests, GitLab Merge Requests, Bitbucket Pull Requests, and Azure DevOps Pull Requests
**Stay on top of open reviews**
- See if your current branch already has an open PR/MR
- When an agent finishes a turn on your thread's branch, T3 Code checks for a newly opened
PR/MR if background activity is enabled for that repository. Known reviews keep their normal
refresh schedule.
- Open several reviews from the **Pull requests** page as tabs in the right panel
- Your authored reviews stay at the top and use the selected sort within their group. By default,
see passing and approved reviews first, passing reviews awaiting approval next, and conflicting
reviews last. Smaller changes come first within each readiness group, and finished reviews follow
open work when all states are visible.
- Filter the list by author or labels, rank authors by merges in the loaded results, see label and
change-size context on each row, and sort the results currently shown by readiness, update time,
creation time, or change size. Your filters, search, scope, and sort are restored when you return.
- Merge now, or on GitHub, GitLab, and Azure DevOps, leave an auto-merge instruction with a chosen
strategy while checks are outstanding; see the completed state in the same control after the
pull request merges
- On GitHub, approve fork workflows that are waiting to run and open a revert pull request for a
merged change
- Timeline line counts stay hidden on merge commits, where GitHub's totals include upstream changes
brought in from the base branch
- While working in a thread, open linked reviews in the same compact right-panel tabs without
leaving the conversation
- Show a file tree next to a review's **Code** tab, or a thread's **Diff** panel, to browse the
changed files as folders and jump straight to any of them. The toolbar toggle remembers your
choice.
- Enable **Settings → General → Proactive panels** to open a newly linked review automatically and
switch to the completed turn's diff when agent work changes files. An open review stays in front
- Open the review directly in your browser with one click
- If T3 Code cannot load a GitHub pull request, including when GitHub rate limits requests, use
**Open on GitHub** in the error view
- Command-click (Control-click on Windows and Linux) a pull request number in the sidebar to open it in your browser instead of in T3 Code
- Check out a teammate's branch to review code locally
**Fix what you wrote, in place**
- Comment while closing an open pull request or reopening a closed one when the host offers that
action
- Rewrite a pull request's title and description from the review itself, in Markdown, with a
preview before you save
- Rewrite your own comments the same way, wherever they are shown
- Works on GitHub, GitLab, and Bitbucket. Azure DevOps takes a new title and description; its
comments stay read-only here, as they already were
- On GitHub, put a label on a pull request or take one off from the **Labels** row of the review.
Changing labels needs triage access or better on the repository
### Know Your Setup at a Glance
The **Source Control settings** page shows you exactly what's connected:
- ✅ Which providers are authenticated and ready
- ⚠️ What's missing and how to fix it
- 👤 Which account is signed in (when available)
Run a quick **Rescan** after setting up a new machine or changing credentials.
## Getting Started
### For GitHub (Recommended for most users)
1. Install the GitHub CLI (version 2.81.0 or newer) on the machine running T3 Code:
```bash
brew install gh
```
2. Sign in:
```bash
gh auth login
```
3. Open **Settings → Source Control** in T3 Code and verify GitHub shows as authenticated
You can now clone, publish, and create pull requests.
### For GitLab
1. Install the GitLab CLI:
```bash
brew install glab
```
2. Authenticate:
```bash
glab auth login
```
3. Check **Settings → Source Control** to confirm the connection
### For Bitbucket
Bitbucket uses tokens instead of a CLI tool. Two options, both set as environment variables on the
machine running T3 Code.
Recommended, a Bitbucket access token:
Set an access token in the server's environment:
```bash
export T3CODE_BITBUCKET_ACCESS_TOKEN="your-access-token"
```
Or an Atlassian account email plus API token, with read/write access to pull requests and
repositories, plus read access to your user account (`read:user:bitbucket`, used to verify the
connection):
Or use an Atlassian account email and API token with read/write access to repositories and pull
requests, plus user read access (`read:user:bitbucket`):
```bash
export T3CODE_BITBUCKET_EMAIL="you@example.com"
export T3CODE_BITBUCKET_API_TOKEN="your-token"
```
If both are set, the access token wins. Restart T3 Code and verify the connection in **Source
Control settings**.
The access token takes precedence if both are configured. Restart the server after changing these
variables.
### For Azure DevOps
### Azure DevOps
1. Install Azure CLI:
```bash
brew install azure-cli
```
2. Add the DevOps extension:
```bash
az extension add --name azure-devops
```
3. Sign in:
```bash
az login
```
Install [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/), add the DevOps extension, and sign in:
---
```bash
az extension add --name azure-devops
az login
```
## Requirements & Troubleshooting
## Clone or publish a project
**Git is required** – T3 Code uses Git for all local operations. Ensure `git` is installed on your server.
Use **Add Project** in the command palette (`Cmd/Ctrl+K`) to clone a repository. Choose a hosting
provider or paste a Git URL, then choose where to save it.
**Server-side setup** – Authentication happens on the machine running T3 Code (the server), not your local browser. If you're using a hosted or team instance, your administrator may have already configured providers.
For a local Git repository without a remote, **Publish Repository** creates a hosted repository,
adds it as `origin`, and pushes your commits. If there are no commits yet, it creates the remote;
make your first commit before pushing.
**Common issues:**
## Create a pull request
- **Provider shows "Not authenticated"** – Run the login command for that provider (e.g., `gh auth login`) in a terminal on the server, then rescan in Settings
- **GitHub says it could not verify sign-in status** – T3 Code needs GitHub CLI 2.81.0 or newer to check sign-in status. Update `gh` (e.g., `brew upgrade gh`), then rescan
- **Bitbucket not connecting** – Double-check your environment variables are set in the correct shell profile and the server was restarted
- **Can't push to a remote** – Verify your Git remote URL matches the provider you've authenticated with (SSH vs HTTPS remotes may need different credentials)
Use a thread's Git actions to commit, push, and create a pull request. T3 Code can generate commit
messages, review titles, and descriptions from your changes.
**Need more help?** Check your provider's CLI documentation:
Choose the writing style and model in **Settings → Source Control**. **Repository conventions**
uses the project's instructions and recent commit subjects.
- [GitHub CLI](https://cli.github.com/)
- [GitLab CLI](https://gitlab.com/gitlab-org/cli)
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/)
## Review and merge
Open **Pull requests** to review changes and comments, request reviewers, check out a branch,
or merge. You can edit review titles and descriptions and your own comments where the host allows it.
GitLab calls these merge requests.
GitHub, GitLab, and Azure DevOps support auto-merge while checks are outstanding. GitHub also
supports approving waiting fork workflows and opening a revert pull request for a merged change.
For Azure DevOps, use the host website to view diffs or change comments. Bitbucket does not support
reopening a declined pull request.
## Troubleshooting
- **Not authenticated:** run the provider's login command on the server, then rescan. For Bitbucket,
confirm the running server received the environment variables.
- **GitHub sign-in cannot be verified:** update GitHub CLI to at least 2.81.0.
- **Push fails despite a connected account:** check the Git remote's credentials. SSH and HTTPS
remotes can require separate setup from the hosting provider's API access.
- **A review cannot load:** open it on the host website while resolving connectivity, permissions,
or rate limits.
+8 -12
View File
@@ -1,15 +1,11 @@
# Anonymous usage data
# Product usage data
The T3 server sends anonymous product events to PostHog. These events include
the provider, model, reasoning effort, permission mode, turn result, duration,
and normalized main-agent token totals when the provider reports them.
The T3 Code server sends product usage events to PostHog, associated with a hashed account or
installation identifier. Events include the provider, model, reasoning effort, permission mode,
turn result, duration, and main-agent token totals when available.
T3 Code does not send prompts, responses, file contents, raw provider events,
thread IDs, turn IDs, provider instance IDs, authentication tokens, or child
agent output. Token totals can be complete, partial, or unavailable. Child
agent token use is not included.
Events do not include prompts, responses, file contents, authentication tokens, conversation IDs,
raw provider events, or child-agent output. Child-agent token use is excluded from the totals.
Set `T3CODE_TELEMETRY_ENABLED=false` before you start the T3 server to stop
product events from being recorded or sent. The server still derives an
anonymous identifier during startup and can create its local fallback
identifier file.
To disable collection, set `T3CODE_TELEMETRY_ENABLED=false` in the server's environment before
starting it. This stops product events from being recorded or sent.
+53 -68
View File
@@ -1,88 +1,73 @@
# Organizing threads
# Working with threads
Pin a thread from its context menu to keep it in the pinned section above your active work.
`mod+shift+p` pins or unpins the thread you have open. Pinned threads are shown independently of
their project, including when you connect to more than one environment.
Use a new thread for a separate task. Choose **New worktree** when its code changes
need a separate branch and working directory.
To require confirmation before unpinning, enable **Settings → General → Unpin confirmation**. The
confirmation applies to the sidebar controls, thread menus, and the `mod+shift+p` shortcut.
## Start a thread
Pinned threads still move to **Settled** when they become inactive. They also move when their pull
request merges if **Auto-settle merged threads** is enabled.
On web and desktop, a new thread keeps the current project and carries your model
and mode selections, unless the destination project has its own model default.
Its branch and workspace mode come from your configured defaults. To continue in
an existing worktree, use **New thread in this worktree** from the branch toolbar.
Each server stores its own copy of the automatic settlement settings and checks them even when no
web, desktop, or mobile client is connected. By default, it settles threads after three days without
activity and when their pull request merges. An eligible idle thread also settles when its pull
request closes. An open pull request does not block inactivity settlement. Active work, pending
input, and live background work keep the thread active. T3 Code settles from a closed or merged
pull request only when its timestamp is not older than the user's latest activity. If that timestamp
is not available, the inactivity rule still applies. A manual un-settle also keeps the thread active.
When you change a new thread's project, T3 Code stays in the current environment
if that project exists there. Otherwise it selects an environment that has it.
**Settled** lists threads by when their work finished, newest first. A thread you settle yourself
sorts by the moment you settled it. A thread that settled on its own sorts by its last message or
turn, not by when the server noticed it was inactive.
### Start in the background
Change these rules in **Settings > General**. The change is written to every connected environment
whose server supports shared settings. An environment that is offline or needs a server update
keeps its old value and does not appear in mismatch warnings. When a connected environment whose
server supports shared settings holds a different value, **Settings > General** shows a warning
that names it. Choose **Apply to all** to write your current values to the environments named in
the warning. The same applies to the new-thread workspace mode and the source control writing
style.
In a desktop browser or the desktop app, press `Cmd+Enter` on macOS or `Ctrl+Enter`
on Windows and Linux to start a new thread and immediately open another draft. The
next draft keeps the workspace mode and base branch you selected. With **New
worktree**, each background submission creates its own worktree.
A settings change affects future settlement and does not reopen a settled thread. Settings saved
by older clients on one device no longer control this behavior.
## Pin and reorder threads
When you un-settle a thread, it returns to the top of the active list so you can find it right
away. Its timestamps do not change. Other threads keep their positions.
Pin a thread from its menu to keep it above your active work. Drag pinned threads
to reorder them on web and desktop, or use **Move up** and **Move down** on mobile.
The order syncs across devices.
A thread whose composer holds unsent text or attachments shows an amber tint and a pen icon in the
sidebar, the same marks a new-thread draft uses. On web and desktop, hover the row and choose the
**X** to discard that draft without opening the thread.
Pinning does not prevent automatic settlement. Settling a thread removes its pin.
Right-click a pull request link in a thread and choose **Link to thread** to show that pull request
in the sidebar. The thread settles when the linked pull request merges if **Auto-settle merged
threads** is enabled. Right-click the same link and choose **Unlink from thread** to remove it.
## Settle finished work
On web and desktop, drag a pinned thread to change its position. On mobile, open the thread's menu
and choose **Move up** or **Move down**. The order is stored by the server and appears on your
other connected devices.
Choose **Settle thread** from its menu to move finished work out of the active list
without deleting the conversation. **Un-settle thread** restores it to active work
and prevents automatic settlement until new activity resumes the usual rules.
If reordering is unavailable for one environment, update the T3 Code server running in that
environment. Older servers can still pin and unpin threads, but do not understand synced ordering;
their pinned threads keep the default newest-first order below the ones you have arranged.
By default, environments settle inactive threads after three days and settle
threads whose pull request merged. A closed pull request can also settle an idle
thread. Work in progress, pending questions or approvals, and live background work
prevent automatic settlement. An open pull request does not prevent inactivity
settlement, but an old closed or merged pull request does not settle work you
resumed after it closed.
## Panel motion
Change these rules in **Settings → General**. They continue to run when your apps
are closed. Changes apply to connected environments that support shared settings;
offline environments and older servers keep their previous values. If connected
environments disagree, **Apply to all** copies your current settings to those named
in the warning. Changing a rule does not reopen already settled threads.
The main sidebar, right panel, and terminal drawer open and close immediately by default. Under
**Settings → Appearance → Motion**, move the **Panel animations** slider above 0 ms to add motion.
The duration can be set up to 400 ms. Clicking the preview replays all three panel transitions; at
0 ms, it snaps between the same open and closed states.
## Link a pull request
## Environment icons
On web and desktop, right-click a pull request link in a thread and choose
**Link to thread**. Use **Unlink from thread** on the same link to remove it.
The linked pull request participates in automatic settlement.
When you are connected to more than one environment, every thread that lives somewhere other than
the machine you are on wears a small icon for that machine at the end of its row: a server, a cloud
VM, a desktop, a laptop, a Mac mini, or a Mac Studio. In the hosted web app and the mobile app,
where every environment is remote, each row wears its machine so you can tell them apart at a
glance. The same icon appears wherever an environment is named: the thread tooltip, the command
palette, the "Run on" picker, the pull request server filter, the provider settings device tabs,
and the environment lists under **Settings → Connections**. On mobile it appears in the thread
lists, the archive, the new-task environment picker, and the Environments and storage settings.
## Find and reference work
Servers pick the icon themselves from the hardware they run on. A Mac reports its model, a Linux
machine reports its chassis type and whether it is a virtual machine, and anything without a usable
signal shows a generic server. To override it, open **Settings → Connections** and choose an icon
for that environment; **Automatic** goes back to what the server detected. The choice is stored on
that server, so every device that connects to it sees the same icon.
On web and desktop, open the command palette with `Cmd/Ctrl+K` to search threads
across connected environments. Message search starts after two characters and
includes your messages and final agent responses.
## Environment artwork
Use **Settings → Keybindings** to find or customize shortcuts for searching files
and copying a thread reference. A copied reference uses the thread's pull request
link when available, otherwise its thread ID. See [keybindings](./keybindings.md)
for custom configuration.
Dev and Nightly environments can identify themselves with artwork at the top of the sidebar and in
the send button. Choose **Artwork**, **Version pill**, or **None** in Settings under environment
identification. Artwork is recolored to match each built-in theme. Custom themes use the **Version
pill** fallback because their colors are not controlled by T3 Code.
## Inspect agent work
To generate a fresh title from the conversation, open a thread's context menu and choose
**Regenerate title**. While T3 Code is generating it, the action reads **Regenerating…** and cannot
be selected again. The option is hidden when the connected environment needs a server update.
On web and desktop, use **Agents** to follow work delegated to subagents.
Expand a tool call in the conversation to see its full command and output.
Summaries shorten shell wrappers and can still describe the latest call after it
finishes; the call's own result shows its status.
-25
View File
@@ -1,25 +0,0 @@
# Tool activity
Open a tool-group summary in the conversation to see its individual calls. Each row has an icon;
select a row to inspect its details. Select the group summary again to collapse it.
Long groups scroll inside a bounded area without expanding the whole conversation. Faded edges
indicate more calls above or below. Short groups use only the space they need.
Collapsing and reopening a group preserves your reading position and any open call details.
Recognized T3 tools use descriptive labels in both the running summary and individual rows.
The latest live activity stays in the present tense while the turn continues, such as
"Running vp" or "Clicking in the preview browser", even after that call has completed.
Expanded rows follow the call's own state, such as "Clicked" after success.
When a call has not reported a state yet, the label stays in the present tense.
Failed, declined, and stopped calls say what happened without implying success.
Failed calls keep their tool icon with a muted red tint, so a failed command still
looks like a command. App logos and other multicolor icons keep their artwork and
show a small muted red failure mark beside the row. Expand the call to inspect its
output. Runtime errors and warnings keep their stronger styling.
Preview browser actions use a globe icon. Other T3 tools keep the T3 mark.
Group summaries count browser actions separately, such as "Used browser 18 times" or
"Ran 4 commands and used browser 15 times". Browser-only groups also use a globe icon.
Command summaries show the program inside a shell wrapper, such as "Running vp" for
`/bin/zsh -lc 'vp test run'`. Expanded rows keep the full command.
+38 -75
View File
@@ -1,95 +1,58 @@
# Keeping T3 Code in Sync
# Updating T3 Code
The T3 Code web or desktop app and the server it connects to work best when they use the same
version. If they do not match, T3 Code shows a warning with the right update option for that server.
The app you use and the server running your agents can be on different machines.
When a server is behind your web or desktop app, an update notice appears in the
conversation and **Settings → Connections**. Update the machine named in that
notice.
## Where to Find the Update
## Before you update
You may see the warning in either of these places:
Server updates restart the connection and can interrupt active agents and
terminal commands. Saved threads, settings, and project files remain.
- above the message box in the current conversation
- **Settings** → **Connections**, beside the affected connection
**Settings → General → Continue threads after server updates** is off by default.
Enable it to resume supported active threads once the replacement server is
ready. Terminal commands may still be interrupted.
Dismissing the conversation warning only hides that reminder for those two versions. It does not
update the server, and the version difference remains visible in Connections.
## Update a connected server
## Before You Update
The offered action depends on how the server runs:
Updating restarts the server, so the connection will disappear briefly. **Settings** → **General**
has a **Continue threads after server updates** preference. It is off by default. When enabled, the
update buttons automatically resume supported provider threads after the replacement server is
ready. Providers with native promptless continuation use it; other providers receive a short
instruction to continue where they left off. Terminal commands and other running work may still be
interrupted during the update.
| Action | What to do |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Update server** | Keep the client open while it installs and reconnects. Supported background services update remotely. For a desktop-hosted server, this also closes and relaunches the desktop app on the host. |
| **Update the desktop app** | Update the desktop app on the machine running the server, then reopen it if needed. |
| **Copy update command** | Stop the command-line server on its host and relaunch with the copied command, keeping your usual startup options. |
The update does not remove saved threads, settings, or project files.
## Choose the Action You See
| Action | What to do |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Update server** | Available for the T3 Code Linux background service and for servers run by a current T3 Code desktop app. Select the button and leave T3 Code open while it downloads, installs, restarts, and reconnects. For desktop-app servers this closes and relaunches the desktop app on that machine. If installation fails, the desktop app stays open and reconnects to its server. |
| **Update the desktop app** | Shown for desktop apps that predate remote updates. Open the T3 Code desktop app on the machine that runs the server and install the app update there. Reopen it if needed. |
| **Copy update command** | Copy the command, open a terminal on the server machine, stop the current T3 Code server, and relaunch it with the copied command and any startup options you normally use. |
The available action depends on how that server was started. T3 Code does not update connected
servers silently in the background.
An older background-service launcher may ask you to run the exact
`npx t3@<version> service update` command on the server machine. That one local update installs the
rollback support needed for later remote updates, including versions that change the database.
After selecting **Update**, the notice becomes a live status line: **Downloading…** while the new
version is fetched and verified, then **Restarting…** while the server restarts into it. The same
status appears in the conversation and in Connections, so navigating between them does not lose the
update. A failure remains visible with its error and an option to retry.
**Copy update command** gives you `npx t3@<client-version>`, which relaunches the server directly
at the matching version. Add whatever startup options you normally use.
If the server instead runs as the T3 Code background service, update the service on the host and
pin the same version:
For a background service, run the matching version's CLI on the host:
```sh
npx t3@<client-version> service update
```
`service update` installs the version of the CLI that invoked it, so `npx t3@latest service update`
only resolves the skew when your client happens to be on the latest release. The exact version from
the warning always works.
Replace `<client-version>` with the version shown in the notice. Using
`@latest` only resolves the mismatch if your client is on that release. An older
service launcher may require this local update before it supports remote updates
and rollback.
See [Running T3 Code in the Background](./background-service.md) for install, status, and removal
commands.
For a foreground server, the copied command is `npx t3@<client-version>`. Add
`serve` if you normally run without a browser, and preserve options such as
`--host` or `--tailscale-serve`. See
[background services](./background-service.md) for service management.
## Nightly desktop release notes
## If an update fails
The desktop app shows a compact release-notes preview when a nightly update is available. Changes
appear newest first within each release. Each release links to its exact page on GitHub, even when
all changes fit in the preview.
The preview shows up to eight changes from each of six releases. When it leaves out changes or older
releases, it shows the exact number and links to the rest. Contributor credits do not count as
changes.
## After the Update
Keep the web or desktop app open while the server restarts. The update completes only after the
service launcher reports that exact update committed and the replacement server is ready to accept
commands. A rollback is reported immediately instead of waiting for a generic reconnect timeout.
If a step fails:
Keep the client open until it reconnects or reports a failure. A failed service
update can roll back to the previous version. If the update still fails:
1. Retry the offered action once.
2. Make sure you updated the machine named in the warning, not only the device you are using.
3. For a command-line server, relaunch it with `npx t3@<client-version>`, replacing
`<client-version>` with the client version shown in the warning.
2. Check that you updated the server's machine, not only the device you are using.
3. For a command-line server, stop it and relaunch the exact version shown in the notice.
## The Mobile App
## Mobile updates
The mobile app keeps itself current on its own. When it finds a new version, it downloads it in the
background and installs it automatically the next time you leave the app. Unsent drafts and queued
messages are saved before the restart. Only if the app stays open long enough that the update never
gets that chance does it ask whether to install right away; choosing **Later** is safe and keeps the
automatic install armed.
For remote connection setup and access troubleshooting, see [Remote Access](./remote-access.md).
Install App Store or Google Play releases as usual. The mobile app can also
download updates in the background and apply them when you next leave the app.
It saves drafts and queued messages before restarting. If you keep the app open
for a long time, it may ask to install immediately; choosing **Later** leaves the
update queued for the next suitable moment.
+26 -30
View File
@@ -1,35 +1,31 @@
# Review usage
# Usage and limits
The Usage page combines Codex, Claude Code, and Grok Build activity from your connected
environments. It reads the providers' local session history and shows API-equivalent token cost,
processed tokens, cache savings, provider shares, and model breakdowns. Subscription billing is
separate from the raw token cost shown here.
## Understand your usage
Grok Build totals come from persisted session updates. Interactive turns that never wrote a
completed-turn record will not appear.
**Usage** combines Codex, Claude Code, and Grok Build session history from your connected
environments. It shows token use, cache savings, model breakdowns, and estimated API-equivalent
cost. These estimates are not your subscription bill.
The **Limits** view shows how much of each subscription window you have used on Codex and Claude
Code, per connected environment: the session and weekly windows, plus a per-model weekly window
such as Fable when your plan has one. Each window is a bar from the moment it opened to its reset,
filled by the share of quota spent; a thin line marks how far into the window you are, which is
also where even spending would have put the fill, and the icon beside the label says whether you
are ahead of, on, or under that pace. Hover a bar for the exact reset time. Limits refresh on the
provider health-check interval and update live while a turn runs. API-key accounts have no
subscription windows and say so; that includes a Claude Code that reaches Anthropic through a proxy
via `ANTHROPIC_AUTH_TOKEN`, since the CLI then treats itself as an API-key client.
Totals depend on the history available on each server. Grok turns without a saved completed-turn
record are missing from the totals.
If you pool accounts behind a CLIProxyAPI hub, open **Settings → Providers → Usage providers**
and choose **Add hub**. Select the device that should connect to the hub; its accounts appear on
the Limits view. Remove hubs from the same settings section. Each limits row shows its provider
and instance name, or a small _CLI Proxy_ label for
hub accounts. When a connected provider reports limits for the same provider and email, its row
replaces the hub copy, keeping details such as banked reset credits. The hub copy remains visible
if the connected provider cannot report limits. Enter the hub's URL and management key; the key
is stored on the server and never sent back to a client. Emails are blurred until clicked, as in
provider settings.
If recent work is missing or a new model shows no cost, refresh to rescan session history and
update model pricing.
Use **Past 24h** for an hourly chart covering the exact rolling 24-hour period. The **7 days**,
**30 days**, and **90 days** ranges use daily resolution. Cost and token toggles update both the
headline and chart. Refreshing rescans every connected environment and refetches model pricing on
each of them, so a newly released model that showed $0.00 gets a price without waiting for the daily
pricing update.
## Track subscription limits
**Usage → Limits** shows quota use and reset times for Codex and Claude subscriptions. It also
compares quota consumed with time elapsed in each window, so you can judge your pace before the
next reset.
API-key accounts may not report subscription limits. This also applies to Claude connections
using a proxy through `ANTHROPIC_AUTH_TOKEN`.
## Connect a CLIProxyAPI hub
To see pooled accounts, open **Settings → Providers → Usage providers → Add hub**. Choose the
environment that will connect to the hub and enter its URL and management key.
The accounts appear under **Usage → Limits**. This connection supplies usage information; configure
the provider separately to send agent requests through the hub. Remove the hub from the same
settings section when you no longer need it.