A session can run on an SSH host instead of your Mac. The agent, its files, its git repository and its commands are all on that machine. BeyDock shows the session on your Mac and keeps it alive across disconnects.
Requirements
- BeyDock Pro. SSH hosts are a Pro feature, and a new BeyDock account starts with 14 days of Pro. Without Pro, hosts you already added stay in the list but BeyDock doesn't connect to them. Sessions already running there keep running.
- Key-based SSH login. BeyDock uses your
~/.ssh/configand keys, and password prompts aren't supported. - Node.js 20 or newer on the host. Cursor sessions need 22.13 or newer and Command Code needs 22. If the host doesn't have a suitable Node.js, BeyDock installs its own copy, as described under Node.js on the host below.
- The tool of each provider you want to run there. BeyDock downloads Claude Code (which also runs Z.ai) and Cursor's SDK to the host the first time you use them there, and installs Command Code itself. Codex, Antigravity and OpenCode need their command line tools (
codex,agy,opencode) installed on the host. Sign-ins are per machine.
Add a host
- In Home, open Overview and click Add Device, or click + next to Devices in the Home sidebar. The Add Device window opens on Server (SSH).
- Pick hosts from From your SSH config, or type an address such as
my-serveroruser@hostunder Other host (titled SSH host when your SSH config has no hosts). - Choose an Environment: Development, Staging or Production.
- Click Add Device (or Add N Devices).
You can also type the address under Add SSH host in Settings › Devices and click Add. A host added there starts as Development.
Settings › Devices lists every device. Open a device's page and use Test Connection to check the connection. It reports the host's home folder or the error. You can change the environment on that page or from the device's menu in the Home sidebar, and Remove Device takes the host out of BeyDock. On a Production device, new sessions start in a mode that asks before every change (Read only for Codex and Antigravity), and stopping a process or container always asks first. See Permissions and approvals.
The first time BeyDock connects, it installs a small helper in ~/.beydock on the host. Nothing is installed just to monitor a device. The device page shows CPU, memory, disk, ports, containers and processes, and the sessions on that device.
Node.js on the host
BeyDock checks for Node.js when it connects. If it's missing or older than version 20, BeyDock installs its own copy in ~/.beydock/node on the host, with no sudo, and connects in the same attempt. Nothing else on the host changes. If a provider needs a newer Node.js than the host has, such as Cursor, the session says so.
If the install fails, the device page, the folder picker and a band above the message box say why and offer Try Again. If you install Node.js yourself, Test Connection on the device page reconnects.
Sign in on the host
An account that works on your Mac isn't automatically signed in on the host. If a session's account isn't signed in on its host, a band above the message box says so and offers Sign In…. It opens Terminal and connects to the host so you can sign in there.
With BeyDock Pro, the band also offers Use This Mac's Sign-In. The host then gets a short-lived access token for the account, this Mac keeps renewing it, and the long-lived sign-in stays on your Mac. Sign-ins that can't be leased this way, such as Cursor's or Command Code's, are copied to the host instead. BeyDock asks you to confirm first, and a host's own sign-in is only replaced after you confirm.
You can do the same from Settings › Accounts: open the account and look under Other devices. Each host has a status line, Share Sign-In (Pro), and a … menu with Sign In on that host. A host can also take over renewing the sign-in while your Mac sleeps (Renew While This Mac Sleeps). With Sync with BeyDock (Pro), the sign-in is kept in your BeyDock account, end-to-end encrypted, and a host you add to your BeyDock account keeps getting it while your Mac is asleep or off. Add the host in Settings › BeyDock Account › SSH Hosts.
An account that uses an API key needs no Terminal sign-in. The key stays in your Mac's Keychain and reaches the host while BeyDock is connected, and the host keeps it in memory only. If the key hasn't arrived, the band offers Send Again.
Start a session on the host
On the new session screen, choose the host in the machine menu under the message box. It shows when you have more than one device. Choose a folder with the remote folder picker, then work as usual. Show in Finder is only for your Mac.
The background process
On each remote host, BeyDock runs a background process that keeps running on its own. Your Mac connects to it. That is why agents keep running on the host while your Mac sleeps, loses Wi-Fi or quits BeyDock.
The device page has a Background process box with:
- The state: Connected, Connecting…, Reconnecting… or Not connected, with Connect when it's not connected and Retry Now while it reconnects.
- Uptime, Version and Connected Macs.
- An update notice, such as "Update pending". It restarts the process when sessions finish, so an update never kills running work. Restart Now forces it and stops running sessions.
- Keep running after host restarts. BeyDock shows the service file and the commands, and installs it only after you approve.
When the connection drops, sessions on that host don't die. The sidebar shows "reconnecting", and a band says "Reconnecting to" the host's name, "The agent keeps working." When your Mac is back, everything that happened in the meantime is replayed in order, including transcripts and approval cards.
MCP servers on a host
BeyDock Hub servers reach sessions on a host through a tunnel from your Mac. Sessions on the host can use your Hub servers while the tunnel is up, and the Hub itself keeps secrets on your Mac. You can also run a Hub server on the host. In Add Server, a Command server has a Run on choice when you have more than one device. Its environment values are sent to the host only for that process and aren't written to disk there. See Connections and the BeyDock Hub.
Worktrees and other features
Worktrees are created on the host, under ~/.beydock/worktrees unless you change the Worktree location on the device page. See Branch, rewind and worktrees. Delegation and agent browser control work on a host as well. Browser control runs in the app on your Mac, so browser calls from a host session need BeyDock connected. See Delegation and Browser.
If you can't connect, see Troubleshooting and FAQ.