Coding agents over SSH
Termius and Blink give you a fast, keyboard-friendly terminal on a server, from a laptop or a phone. An EnvHaven workspace is a server made for coding agents. How to connect the two, keep sessions alive, and switch to the browser whenever you like.
Updated November 23, 2026
Plenty of people would rather drive a coding agent from a native SSH app than from a browser tab. Their keys and hosts are already in it, the keyboard behaves the way they set it up, and one app reaches every server they run. Termius runs on macOS, Windows, Linux, iOS and Android and syncs hosts, keys and snippets between them; Blink is a terminal for iPhone and iPad built around SSH and Mosh. What both need is a server worth connecting to: one that stays on, with the agents installed and signed in. An EnvHaven workspace is that server.
Connect to a workspace
- Add your key. Open the workspace in a browser, and in its EnvHaven sidebar open Remote Access. Paste your public key, or type your GitHub username to import the keys on your GitHub account. The workspace accepts keys only; password logins are off.
- Add the host in your SSH app: the address is
ssh-<workspace>.envhaven.app, the port 22 and the userabc. Remote Access shows the wholesshcommand, with a copy button. - Connect. The login lands in the workspace’s tmux session, the same one the browser shows, so a task started on a laptop is waiting on the phone.
In Termius
- A key the workspace knows. Termius’s SSH ID makes a key on each of your devices and lists the public halves at
sshid.io/<your handle>; copy them from that page and paste them under Remote Access (Termius). A key you already use elsewhere works too: import its private half into Termius’s Keychain (Termius) and paste the public half under Remote Access. - The host. On the Hosts screen, tap + then New Host, and enter
ssh-<workspace>.envhaven.app, port 22 and the usernameabc. Pick your SSH ID or key, save, and tap the host to connect (Termius).
Termius’s free Starter plan covers SSH and port forwarding; syncing hosts and keys between your devices needs Pro (Termius). Termius can also start a coding agent each time you connect, set per host (Termius).
In Blink
- A key. Type
config, open Keys (Keys & Certificates in recent versions), tap + then Generate New, and pick Ed25519, since the form suggests RSA (Blink). Tap the new key, copy its public key, and paste it under Remote Access. - The host. In Hosts, tap + and fill in an alias such as
envhaven, the HostNamessh-<workspace>.envhaven.app, port 22, the userabcand the key (Blink). Then typessh envhavenat Blink’s prompt.
Blink+ costs $19.99 a year after two free weeks (Blink).
Run agents in the session
- One command each.
claude,codex,opencode,openclawand the rest of the 17 agents are built in and kept current by the workspace. - Sign in once. Over SSH, each agent’s own sign-in works, such as the code Claude Code asks for or
codex login --device-auth. In the browser, the Launch menu does it with a tap. Either way the sign-in is saved on the workspace, so it holds over SSH, in the browser and on every device. - One agent per window.
Ctrl+Bthennopens a tmux window, andCtrl+Bthen a number switches between them. Windows opened in the browser show up over SSH, and the other way round. - No prompts to babysit. Most agents start without permission prompts, because the workspace is their sandbox; the full-access reference says which, and how.
Keeping the session alive
Phones suspend SSH apps in the background. Termius says its sessions on iPhone and iPad lose background activity within about 20 to 30 seconds, and recommends tmux for keeping the terminal session (Termius). A workspace login is already in tmux, so close the app, lock the phone or lose the signal, and the agent keeps working; reconnecting puts you back on the same screen.
Use SSH rather than Mosh. Mosh needs UDP ports on the server, 60000 to 61000 by default (Blink), and the workspace runs no Mosh server and opens only TCP port 22. tmux keeps the session through dropped connections, which covers most of what people use Mosh for, though it does nothing for typing on a slow link.
Seeing what the agent builds
A dev server on port 3000 is live at the workspace’s preview address, https://preview-<workspace>.envhaven.app, so open it in the phone’s browser. For other ports, the workspace’s SSH server allows port forwarding, so an SSH app’s local forwarding brings them to your device privately; in Termius that is New Port Forwarding on the Port Forwarding screen (Termius).
The browser, any time
The workspace is built for phones as well. The same tmux session opens in Safari or Chrome, with a key bar above the keyboard for Esc, Ctrl, Alt, Tab and the arrows, and the Launch menu one tap away. Switch between your SSH app and the browser in the middle of a task; both show the same session, so nothing has to be handed over.
From a laptop
ssh abc@ssh-<workspace>.envhaven.app works from any terminal. To edit in your own editor while the agents work on the workspace, the Haven CLI syncs a local folder with it: haven connect . <workspace>.
Without a workspace
The same apps reach any server you run, such as a VPS or a computer at home, often over Tailscale. Then you install the agents, sign them in without a browser and keep the machine on yourself; Claude Code on a VPS walks through it.