Remote Workspaces
Connect Termdock computers, share projects, and run agents on the remote host. Use the separate SSH path when your server is reached through SSH.
Choose the connection path
- Another computer running Termdock: use LAN peer pairing and shared workspaces to create remote terminals and divide agent work. Use 1.24 on both ends for this release’s peer persistence and reconnection behavior.
- A host reached through SSH: add an SSH workspace from the workspace picker. It remains Beta and does not inherit peer broker persistence.
- A phone operating existing desktop terminals: use browser pairing instead of mounting a workspace.
1. Pair and mount a LAN workspace
- Start Termdock on both computers and confirm network reachability. In Peer Sessions on the host, enable sharing and select only the workspaces needed for this task.
- Select the discovered device, compare pairing codes, and approve. LAN discovery uses mDNS; paired device connections are end-to-end encrypted without a cloud intermediary.
- Mount the shared workspace from the workspace picker and open a terminal. Its shell, agents, builds, and tests execute on the computer sharing that workspace.
- Install Git, AI CLIs, project dependencies, and credentials on the remote host as needed. Mounting does not copy your local CLI installation or account to it.
2. Let an agent use the remote terminal
Creating a terminal through CLI/API with the mounted workspace ID targets that remote host, not a silent local fallback. List workspaces, confirm the device and project, then create the terminal. Replace every angle-bracket placeholder below. One-click CLI installation is currently macOS-only; configured HTTP clients can use the Terminal API.
termdock workspace list --json
termdock session create --workspace <mounted-workspace-id> --name remote-review --json
termdock session output <returned-session-id> --mode text --lines 40 --jsonAfter starting another agent, send the task and context explicitly and read back its result. General remote terminal control does not imply peer/SSH support for the dispatch queue’s automatic safe-send signals; those currently support local macOS Claude/Codex.
CLI and dispatch limits3. Inspect, take over, and hand back
Open Peer Sessions from the host’s bottom toolbar to watch incoming terminals read-only or terminate a single session. The host can take over a terminal created by another Termdock device and later hand it back; only one side can type at a time. Local API writes return SESSION_HELD_BY_PEER while the remote peer owns input. Take over first rather than repeatedly retrying.
Disconnected peer terminals follow the host’s bounded or until-termination retention setting. In 1.24 the host broker owns peer terminals, so they can return to the same shell after host app quit, crashes, or updates. Host sign-out or shutdown still ends their processes.
SSH workspaces and file limits
Add an SSH connection from the workspace picker, enter the host, authenticate, choose a remote directory, and open a terminal. Short connection drops can reconnect and custom tab names are retained. SSH terminals still end with the app; peer broker persistence does not apply.
Mounted remote workspaces expose read-only file viewing and Git status, with PDF preview in 1.24. Those views do not provide file editing or Git writes; commands run inside a terminal still operate with the remote account’s permissions. If the host stops sharing or revokes pairing, access is withdrawn and open PDFs close.
Troubleshooting the connection
- Device not discovered: check host/sharing enablement, network reachability, mDNS, and firewall policy. Version 1.24 avoids repeated firewall prompts on Windows hosts.
- Offline mount: confirm the host is powered on and its app is reachable, then use Reconnect in the workspace panel. Revoked pairing needs renewed authorization; reconnecting cannot bypass it.
- Input refused: inspect the current input owner and take over on the host if appropriate. Do not send commands from both ends at once.
- Only an old screen after reopening: distinguish a live process from restored screen history. A restored screen does not prove the task is still running.