You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let a desktop user create a new boat cloud sandbox (an on-demand Ubuntu VM billed per second) from Settings → Connections → Add environment, and have T3 Code connect to it as an ordinary SSH environment, including after boat has stopped and resumed the sandbox.
Problem to solve
T3 Code can run agents on a remote machine only when that machine already exists and is reachable over SSH, Tailscale, a direct URL, or T3 Connect. Users who want agent work off their laptop (heavy builds, parallel tasks, closing the lid while a task runs) must keep an always-on server or hand-build a VM and then pair it.
boat already provides the machine T3 needs: its base image is Ubuntu 24.04 on x86_64 with passwordless sudo, Node, Docker, and the claude, codex, opencode, pi, and cursor-agent CLIs, and a stock OpenSSH client can reach it. Using it with T3 today still takes several manual steps:
Install the boat CLI, sign in, and run boat new.
Register an SSH key with the sandbox and write an ~/.ssh/config entry with the sandbox's address, port, user user, and pinned host key.
Add that host in Settings → Connections → SSH.
Repeat steps 2 and 3 after every stop and resume, because boat puts the resumed sandbox on a new machine with a new IP address and a new SSH host key.
boat's default auto-stop also ends the sandbox one hour after it was created or resumed. An open SSH session does not extend that deadline, so a hand-paired environment goes offline within the hour and needs manual repair before T3 can reach it again.
Proposed behavior
The desktop Add environment dialog offers a boat sandbox option beside the existing remote and SSH options.
The user supplies a boat API key once. T3 stores it as a secret, never shows it again in full, and never sends it to clients or writes it into logs or plain settings.
The user picks a sandbox size (boat's small, default, large, or xlarge) and an auto-stop duration, and gives the environment a label. T3 shows that boat bills per second while the sandbox runs.
T3 creates the sandbox, waits until it is ready, authorizes an SSH key, pins the host key boat reports for that sandbox, and then runs the existing desktop-managed SSH flow: install the T3 runtime, start t3 serve, open the tunnel, and pair. Provisioning progress, cancellation, and failures appear in the dialog.
Retrying a failed or interrupted creation does not create a second sandbox.
After the sandbox has stopped, for example through auto-stop, reconnecting the environment resumes the sandbox, refreshes its address and host key, relaunches the T3 server, and keeps the same T3 environment identity. The environment's projects, threads, and files remain available.
The environment details show which boat sandbox backs the environment and when it will auto-stop.
boat errors appear as actionable messages rather than generic SSH failures. Examples include a missing plan or card (billing_required), plan or trial limits (limit_reached, rate_limited, the trial's two-hour auto-stop cap), a key without the needed permissions, and a stopped disk that has expired (snapshot_data_expired).
Acceptance criteria
On a desktop build with no boat CLI installed, a user with a valid boat API key can go from Add environment to a connected environment in one dialog flow without editing ~/.ssh/config or running a terminal command.
In that environment the user can add a project, start a thread with Codex or Claude, and the agent's commands run inside the boat sandbox, not on the desktop machine.
After the sandbox is stopped outside T3 (with boat stop or the API) and the user reconnects in T3, the environment returns to connected under the same environment entry, and an existing thread from before the stop is still listed and can take a new turn.
SSH host-key verification stays enabled throughout: T3 connects only to the host key boat reports for that sandbox, and T3 neither disables strict host-key checking nor asks the user to accept a fingerprint by hand.
Interrupting creation and retrying it leaves exactly one sandbox for that request in the user's boat account.
The stored API key does not appear in any settings payload sent to clients, in the environment record, or in desktop or server logs.
Each listed boat error produces a message that names the cause and the next step.
The flow is hidden or disabled on surfaces where desktop-managed SSH is unavailable, matching the existing SSH option.
Affected area
apps/web/src/components/settings/AddEnvironmentDialog.tsx: the dialog currently offers two hardcoded options, remote and SSH, and SSH appears only on desktop.
apps/desktop/src/ssh/ and packages/ssh/: the desktop-managed SSH flow, whose remote runtime installer needs only curl or wget, tar, and sha256sum on a Linux x64 host (docs/user/remote-access.md).
packages/contracts/src/ipc.ts: DesktopSshEnvironmentTargetSchema holds only alias, hostname, username, and port, and SSH commands rely on the user's SSH configuration and known hosts. The resume behavior therefore needs a stable environment identity that survives a changing address and host key.
Secret storage for the API key: server settings marked with secretSetting() (packages/contracts/src/settings.ts) or desktop-side secret storage. This proposal does not prescribe which.
Non-goals
Running agents through boat's own integrated-agent prompts (boat prompt). T3 keeps running its own provider harnesses inside the environment.
Creating boat environments from the web or mobile apps.
Managing boat environments, snapshots, or AI credential profiles from T3. The user configures provider sign-in inside the sandbox as on any SSH host, or in boat's dashboard.
Run t3 serve as a systemd service in a boat named snapshot and reach it through a private boat-hosted HTTPS URL. This is boat's documented "daemon pattern". It needs no SSH and could reach the web and mobile clients. boat's hosted URLs are token-gated through a ?_token= query that sets a cookie, and browsers can block that cookie as third-party. Whether T3's clients can carry that credential is unverified, so this proposal keeps the SSH route, which already works with stock OpenSSH.
Document the manual steps only. This does not solve the address and host-key change on every resume, which is what makes a hand-paired boat environment break.
Supporting context
Baseline: T3 Code main at defb7e6e6b87d03259745367214db13060fb322b.
boat facts from its documentation: POST /sandboxes accepts type, ttlSeconds (default 3600, or null to turn auto-stop off), and an Idempotency-Key header. POST /sandboxes/{id}/sshkey returns the host key, machine IP, and SSH endpoint. A stop keeps the disk and ends all processes. A resume uses a new machine with a new IP address and host key, and stopped disks expire after 14 days. API key presets include ci, which can create, use, and delete the sandboxes that key created.
CONTRIBUTING.md requires explicit maintainer approval of direction and scope in an Ideas discussion before a feature PR.
Triage assessment
Impact level: not-applicable
Assessment status: not-applicable
Impact basis: This proposes a new capability, an integrated boat sandbox environment. No existing T3 Code contract fails today.
Workaround status: not-applicable
Workaround basis: No defect is involved. Today a boat sandbox can be paired by hand as an SSH host, but that pairing has to be repaired after every resume.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Let a desktop user create a new boat cloud sandbox (an on-demand Ubuntu VM billed per second) from Settings → Connections → Add environment, and have T3 Code connect to it as an ordinary SSH environment, including after boat has stopped and resumed the sandbox.
Problem to solve
T3 Code can run agents on a remote machine only when that machine already exists and is reachable over SSH, Tailscale, a direct URL, or T3 Connect. Users who want agent work off their laptop (heavy builds, parallel tasks, closing the lid while a task runs) must keep an always-on server or hand-build a VM and then pair it.
boat already provides the machine T3 needs: its base image is Ubuntu 24.04 on x86_64 with passwordless sudo, Node, Docker, and the
claude,codex,opencode,pi, andcursor-agentCLIs, and a stock OpenSSH client can reach it. Using it with T3 today still takes several manual steps:boat new.~/.ssh/configentry with the sandbox's address, port, useruser, and pinned host key.boat's default auto-stop also ends the sandbox one hour after it was created or resumed. An open SSH session does not extend that deadline, so a hand-paired environment goes offline within the hour and needs manual repair before T3 can reach it again.
Proposed behavior
small,default,large, orxlarge) and an auto-stop duration, and gives the environment a label. T3 shows that boat bills per second while the sandbox runs.t3 serve, open the tunnel, and pair. Provisioning progress, cancellation, and failures appear in the dialog.billing_required), plan or trial limits (limit_reached,rate_limited, the trial's two-hour auto-stop cap), a key without the needed permissions, and a stopped disk that has expired (snapshot_data_expired).Acceptance criteria
~/.ssh/configor running a terminal command.boat stopor the API) and the user reconnects in T3, the environment returns to connected under the same environment entry, and an existing thread from before the stop is still listed and can take a new turn.Affected area
apps/web/src/components/settings/AddEnvironmentDialog.tsx: the dialog currently offers two hardcoded options, remote and SSH, and SSH appears only on desktop.apps/desktop/src/ssh/andpackages/ssh/: the desktop-managed SSH flow, whose remote runtime installer needs onlycurlorwget,tar, andsha256sumon a Linux x64 host (docs/user/remote-access.md).packages/contracts/src/ipc.ts:DesktopSshEnvironmentTargetSchemaholds only alias, hostname, username, and port, and SSH commands rely on the user's SSH configuration and known hosts. The resume behavior therefore needs a stable environment identity that survives a changing address and host key.secretSetting()(packages/contracts/src/settings.ts) or desktop-side secret storage. This proposal does not prescribe which.Non-goals
boat prompt). T3 keeps running its own provider harnesses inside the environment.Alternatives considered
t3 serveas a systemd service in a boat named snapshot and reach it through a private boat-hosted HTTPS URL. This is boat's documented "daemon pattern". It needs no SSH and could reach the web and mobile clients. boat's hosted URLs are token-gated through a?_token=query that sets a cookie, and browsers can block that cookie as third-party. Whether T3's clients can carry that credential is unverified, so this proposal keeps the SSH route, which already works with stock OpenSSH.sbx. This adds an install step and a second sign-in. boat's REST API and@boatdev/sdkcover create, resume, SSH-key registration, and stop directly with an API key.Supporting context
mainatdefb7e6e6b87d03259745367214db13060fb322b.sbxcard that hands an SSH host to the existing flow, with no new connection target kind. The open PR feat: threads can run in Docker sandboxes with their own ports and services #15350 proposes Docker sandboxes for each thread.POST /sandboxesacceptstype,ttlSeconds(default 3600, ornullto turn auto-stop off), and anIdempotency-Keyheader.POST /sandboxes/{id}/sshkeyreturns the host key, machine IP, and SSH endpoint. A stop keeps the disk and ends all processes. A resume uses a new machine with a new IP address and host key, and stopped disks expire after 14 days. API key presets includeci, which can create, use, and delete the sandboxes that key created.CONTRIBUTING.mdrequires explicit maintainer approval of direction and scope in an Ideas discussion before a feature PR.Triage assessment
All reactions