Skip to content

SSH remote hosts

Since v0.58.0 a project can live on a Linux machine you reach over SSH. The repository, the agent, its edits, its builds, and its tests all stay on that host. This computer runs the board and needs no clone, no local agent CLI, and no local login for the project. Everything else works the way it does for a project here: columns start agents, worktrees isolate tasks, and the Changes panel shows the diff.

  • Linux on x86_64 or arm64, with glibc 2.28 or newer. Alpine and other musl-based systems are refused with a sentence that says what the host is.
  • The project’s folder inside your home folder on the host. Kangentic reads and writes only beneath it, so a folder such as /srv/app is refused when you add the project.
  • The agent CLIs installed on the host. A remote project’s agent pickers list what the host has, never what is on this computer (Agents on a host).
  • The ssh program on this computer. Kangentic runs your own ssh, so it reads the same ~/.ssh folder, config, agent, and keys a terminal does. On Windows it prefers Windows’ own OpenSSH over a Git for Windows ssh earlier on your PATH, because the MSYS build writes paths a Windows program reads wrongly. The SSH client card shows which program it found and its version, or the error when it found none.

The host needs no internet access of its own. Kangentic copies everything it installs there over the SSH connection.

Open Settings > SSH and click Add host. Setup runs in the card, with no terminal:

  1. Name and address. The name is for you, such as “Build server”. The address is what ssh is given: user@host, or a name from your SSH config, which is also where a jump host, a port, or a certificate is set. The field suggests the Host names in your ~/.ssh/config, following Include and skipping wildcard patterns.
  2. The host key. Kangentic connects once to read the key the host presents and shows its type and fingerprint. Trust it only if it matches the host. Trust this key records it in your own known_hosts, so a terminal ssh agrees with Kangentic.
  3. How to sign in. My SSH config uses your own config, agent, and keys, exactly as a terminal does. Key file copies a private key you choose into Kangentic’s own folder with owner-only permissions; a file that is not a private key, or that has a passphrase, is refused as soon as you choose it. Password is used once, to add a key Kangentic makes for this host, and is never stored.

Kangentic then installs its program on the host and connects. A step that fails undoes the steps before it, and a password step that fails takes the key it made back off the host when it got that far. A host whose only problem is that it cannot be reached stays in the list with the reason, so you can fix it and press Reconnect.

Kangentic never asks for a passphrase. A key with one has to be in your SSH agent, or the host takes the Password route. A reconnect never prompts either: it runs ssh in batch mode, so a host that needs input fails with ssh’s own words, shown as they came. When a sign-in through your SSH config is refused, Kangentic tries once more without batch mode only to read what ssh asks, and shows Enter passphrase for key '...' under the refusal when that is the cause.

The SSH tab has two cards. Hosts lists each host with its address, its state (Connected, Connecting, Reconnecting, or Unreachable, and since when), how many projects live on it, and the program running there, with Add host below the list. SSH client shows the ssh program on this computer that Kangentic connects with. The figure shows one host in use: Build server at dev@build-box, Connected, with one project and two terminals running on it. Live, the pointer opens the host’s edit form, picks Key file, and cancels.

Settings on the SSH tab with one host in the Hosts card: Build server at dev@build-box, Connected, with 1 project and 2 terminals running, above the SSH client card showing the ssh program Kangentic connects with. v0.67.0 The real app on a sample install. The projects and terminals are recordings, connected to nothing, so click anything.

An agent on a host gets the same MCP tools as an agent here, across every project on your board. Nothing about a host is allowlisted, so adding one is the trust step and removing it ends its access. The host never connects to Kangentic: each tool call and hook event crosses the SSH link as a file, and this computer posts it to its own MCP server, which listens on loopback only.

If a host’s key changes, the connection is refused with ssh’s own warning and the host’s row shows a key icon, Trust new key. It shows the fingerprint recorded before and the one the host presents now, and trusts nothing until you confirm. On confirm Kangentic reads the key again, and if it still carries the fingerprint you were shown, it removes that host’s old entry from known_hosts, records the new one, and reconnects. Trust it only if you know the host was rebuilt or reinstalled.

The pencil on a row edits the host’s name, address, and sign-in. A new name saves at once. A new address first shows the key it presents and saves only after you trust it, and it is refused while terminals run on the host, because the connection restarts. Before anything changes, Kangentic signs in to the new address with the new sign-in, and a failure leaves the host as it was. A key Kangentic made belongs to the old machine, so a new address needs a new sign-in.

Remove asks first. It suspends the agents of the host’s projects, deletes the key Kangentic made, takes its line out of the host’s authorized_keys when the host can be reached, and hides the host’s projects everywhere: the sidebar, search, and the MCP tools. Nothing is deleted. Add the same address again and the projects come back with their folders, and what they had running resumes once the host connects. A workflow with a task on a removed host’s projects pauses, and only you can resume it once the host is back.

Clear data on a host’s row stops its projects’ agents and deletes Kangentic’s boards, tasks, history, and transcript copies for them. It works while the host is down, leaves the host in the list, and never touches files on the host.

Once a host exists, Add project asks where the project is: This computer, or one of your hosts. A host opens a form for the folder on it, which Kangentic checks on the host. The Directory field lists the folders of what you have typed so far (~/ is your home on the host), and Browse shows the same listing with a breadcrumb and a git tag on each repository. See Multiple projects.

The folder can itself be a git worktree or a submodule, whose .git is a file rather than a folder. Kangentic then leaves that .git as it is and adds nothing to an exclude file there. Before v0.65.0 adding such a folder failed. A path that is a file, or sits under one, is refused with a sentence such as “/home/dev/notes.txt is not a folder on that host.”

A project on a host shows the host after its name in the sidebar: a server icon while connected, a spinner while reconnecting, and a red warning while unreachable. The board, its tasks, their history, and the project’s settings stay in Kangentic’s database on this computer, as for any project. The figure shows redis on Build server: the server icon after its name, a plan waiting for approval in Planning, and the Executing task’s window, where Claude Code works in the task’s worktree on the host.

The board for redis, a project on a remote host: a server icon follows its name in the sidebar, a plan waits for approval in Planning, and a task window shows Claude Code running shell commands in the project's folder on the host. v0.67.0 The real app on a sample install. The projects and terminals are recordings, connected to nothing, so click anything.

A task in a remote project gets its own git worktree on the host when the project’s folder is the top of a git repository with at least one commit, and worktrees are on for the project and the task. The host’s own git makes it, at <project folder>/.kangentic/worktrees/<n>, on a branch named from the task’s title, and Kangentic adds .kangentic/ to the repository’s .git/info/exclude there. A Done move, a delete, or removing the project removes the worktree on the host and keeps the branch, as for a local task.

Any other folder is shared by every task in the project, so run one agent in it at a time. The Add project form says so.

The Changes panel, the branch header, blame, file history, and the commit graph read the host’s git, not this computer’s. The panel picks up the agent’s edits by asking the host every 2 seconds whether anything changed. When the host cannot answer, the branch header keeps what it showed, and a file reads as an error, never as empty.

  • Pull request linking and the branch switcher, which read git on this computer. So does Pull from (Update from base before v0.63.0). The Changes panel’s Commit and Push are the exception: they run the host’s git.
  • The Post-Worktree Script, the files copied from the project root, the linked node_modules, and spare worktrees. An agent on a host installs its own dependencies in its worktree.
  • kangentic.json. The board file is read from this computer’s copy of the project, not from the host, so a file committed on the host never reaches the app.
Runs on the host Runs on this computer
The agent, its terminal, and the git it uses The board, the task window, and the Browser pane
The task’s worktree and its builds and tests The app’s database and settings
A Run script automation, in the task’s worktree, through sh, with the same KANGENTIC_* variables A Call webhook automation, so localhost in its URL is this computer
A workflow’s own agent, in the project’s folder A Notify me automation
A dev server the agent starts That server’s port, forwarded

A Run script row’s output is not kept on a host, and a variable over 32 KiB is left out and named in the run’s detail. An agent’s opening prompt and every automation’s template variables name the host’s paths: {{worktreePath}}, {{projectPath}}, and {{attachments}}. A task’s attachments are copied to the host before the agent starts. A file attached while the agent runs reaches the host at its next start, or with a column move whose message names it.

The terminal’s shell is the host’s login shell, and since v0.61.0 the context bar and the panel tab’s tip name it as the host does, such as bash or zsh. Before, a Windows desktop renamed a host’s bash to Git Bash.

A dropped connection, a quit, and a restart

Section titled “A dropped connection, a quit, and a restart”

A host’s agents run inside a program Kangentic installs there, which outlives any one connection. So what happens to this computer does not stop them.

  • A drop keeps the agent running. The host’s row and the project’s sidebar mark read Reconnecting and then, after about 20 seconds, Unreachable, and a strip above the board says “Build server is unreachable. Its agents keep running.” with a Reconnect button. When the connection returns, Kangentic reattaches and replays the output it missed. While a host is unreachable, the stall check and the idle timeout wait for that host’s sessions instead of reading the silence as a stuck or idle agent.
  • A quit leaves remote agents running. An agent mid-turn keeps working, and a workflow’s tasks keep advancing as far as their agents take them. A local agent is ended at quit as before.
  • The next launch takes them back. Before it resumes anything, Kangentic asks each host which agents it kept. Each one comes back as a running session with its whole scrollback, and the hook events it wrote while nobody was attached arrive in order. A task you deleted, or moved to To Do or Done, while the host was out of reach is not taken back, and its agent is ended on the host.
  • A start in the first seconds after launch waits for its host. Hosts connect after the window opens, so a remote task you open or start right away can reach its host before the connection exists. Since v0.62.0 such a start waits for the connection, up to 30 seconds, then goes on. A connection that fails, or that is still connecting after 30 seconds, refuses the start with a sentence naming the host and its state, such as “Build server is still connecting.” Before, the start failed with a message that named the host by its internal id. A remote task whose start fails stays resumable, so you can resume it once the host is connected.
  • A permission prompt waits for you. An unattended agent that reaches one blocks until the app returns. In a permissive mode it keeps acting, and keeps spending, while you are away.
  • A launch with the network down keeps trying. Kangentic retries a host after 5 seconds, then 10, 20, and 40, then every minute, until it connects or you press Reconnect. A refused sign-in, a changed host key, an invalid address, and a host too old for the program are never retried, because they would fail the same way each time, and repeated failures can get you banned by the host’s fail2ban.

An agent on a remote project reserves a port with kangentic_reserve_dev_ports, as on any project, and starts its server on the host at that number. The port it gets is free on the host and on this computer. Once the server listens, usually within a few seconds, Kangentic carries the port to the same number on this computer, so http://localhost:<port> here and the Browser pane reach it.

  • Only reserved ports are forwarded. A server on a port the agent did not reserve cannot be reached from this computer.
  • One ssh -N -L per port, bound to 127.0.0.1 on this computer, with the host’s own connection options. A server on ::1, such as Vite’s default, is reached too.
  • A port already taken here is reported without starting ssh. A forward that drops is started again after 2 seconds, backing off to 30.
  • kangentic_check_dev_ports tells the agent, per port, whether it is forwarding, waiting for a server, or blocked and why. A host whose sshd sets AllowTcpForwarding no shows the port blocked with ssh’s own refusal.

All fifteen agents Kangentic supports can run on a host: Claude Code, Codex, Gemini CLI, Cursor CLI, GitHub Copilot CLI, Grok Build, Antigravity CLI, Goose, OpenCode, Aider, Qwen Code, Kimi Code, Factory Droid, Warp, and Ollama.

A remote project’s pickers (Settings > Agent, the Column Manager, and the task forms) list what the host has installed. Kangentic asks the host for each CLI’s version through your login shell, and each agent comes back one of three ways:

  • Found, with the host’s version. The CLI path field shows the CLI’s name and is read-only, because a start on a host runs the host’s own CLI.
  • Not found, only when the host’s shell says so.
  • Not checked, when the host could not be asked, with the reason under the field. A failed ask never reads as an absence.

The model row is a field to type a model into, with no list to pick from. A start refuses an agent the host lacks, with a message such as “Claude Code (claude) was not found on Build server. Install it there, or choose another agent for this project.”

Kangentic copies each conversation’s transcript from the host to this computer as the agent writes it, so the conversation viewer, search, and usage figures read a remote conversation as they read a local one. Goose and OpenCode keep their conversations in a database, so for them Kangentic runs the CLI’s own export instead, at most every 30 seconds. Warp and Ollama keep no transcript Kangentic reads, so nothing is copied for them. A copy is never treated as proof that a conversation is gone: a resume always asks the host. Since v0.65.0 that holds for Claude Code’s check before a resume too. When the host shows that the conversation’s file is gone from every project folder, the resume starts a new conversation from a recap, as it does here (A conversation the agent deleted).

Kangentic installs a small program under ~/.kangentic/host/<version>/ on the host: a pinned Node.js, the same terminal code the desktop app runs, and its Linux terminal library. It runs as a background service behind a socket, so it outlives any one connection, and ssh only carries bytes to it.

The installed app downloads the archive for the host’s CPU, about 46 MB, from the GitHub release the first time it needs it, checks it against the checksum the app ships with, and copies it to the host over the SSH connection. The host checks it again before unpacking, and a version already complete there is not sent again.

A connected host’s row shows the program’s version and how many terminals it holds. After an app update, a new connection joins the program that is already running, so the row reads “(this app is …)” beside an older version until Kangentic replaces it, as the next section describes. The note clears once the new program answers. Versions installed more than 30 days ago are removed when a host first connects in a run, never the running one or this app’s, so the old version stays on the host until then.

After an app update, Kangentic replaces each host’s older program with its own version by itself, with no button and no notice. The program holds every agent’s terminal on the host, so stopping it ends them, and the swap waits for a moment that costs no turn. It runs at a host’s first connection of a run, once the agents a quit left running are taken back, and only when the program there is older than the app’s. A newer program, which another computer on your account may have installed, is left alone. Before v0.65.0 an older program kept running until something on the host stopped it.

  • A host with no agents running is swapped at once.
  • A busy host waits until every agent is between turns. Every task agent and Command Terminal of this app on the host must sit at its prompt for 2 seconds, with no question or approval open, no draft typed, and no message, held message, or turn-end automation on its way. A turn that starts restarts the wait. A workflow’s own agent holds the swap until it ends, and so does a used Command Terminal whose agent cannot resume its conversation by id.
  • A start during the swap is refused. It reads “Kangentic is updating its program on Build server. Start it again in a few seconds.”
  • The agents come back on the new program. Task agents are paused and then resumed, each showing resuming as after a local update, whatever Auto-resume agents on restart or the column’s Start an agent here says, because Kangentic stopped them itself. A task in To Do or Done gets no agent. A Command Terminal you typed into ends and starts again in its slot on the same conversation, and one nobody typed into ends and does not come back.
  • A swap that cannot finish leaves the old program running, brings back what it stopped, and is not tried again until the next run. A turn that starts during the swap is not a failure: the agents already stopped come back on the old program, and the wait goes on.

Measured on a real SSH server from the released 0.62.0 program, an idle swap took 1.4 seconds from the first connection, and an idle Claude Code was back and answering 4.4 seconds after it.

  • Beta. No agent had run on a host with its real CLI when v0.58.0 shipped.
  • A host with KillUserProcesses=yes in its systemd login settings ends the program, and every agent in it, when the login session that started it ends. Kangentic does not detect or change the setting. Enabling lingering for your user on the host (loginctl enable-linger) is the host owner’s call.
  • A host whose agents are never all between turns keeps its older program. The swap waits for every agent at once, and a workflow’s own agent holds it until that agent ends.
  • A quit during a swap leaves the stopped agents paused. The next launch resumes them as it resumes any agent a quit suspended, so with Auto-resume agents on restart off they wait for Resume, and an ended Command Terminal is in Earlier.
  • The checks that read this computer’s processes are off for a host. The background-shell watcher and the search for a session’s id read this computer’s process table and disk, so neither runs for a session on a host.
  • The card’s live model and token readers stay off for a host. Cost and context come from the agent’s status line, and a remote Goose card shows no live tokens or model. The usage figures fill in from the transcript copy.
  • Subagent transcripts are not copied. A Goose or OpenCode conversation on a host shows its newest 16 MB in the viewer, with no way to page further back.
  • A custom branch is not checked out for a task with no worktree, because the checkout reads this computer’s git.
  • A worktree you delete on the host leaves the task pointing at a folder its agent cannot start in.
  • A crash of the process that holds the connections can leave a forward’s ssh running, holding its port here. The next forward of that port shows as blocked. End the stray ssh, or restart the computer.
  • Windows’ own ssh.exe can lose bytes mid-stream. Every frame is checksummed, so a loss costs a reconnect, not data.
  • A macOS client is unmeasured.

Kangentic is free and open source. A star helps other people find it.

Star on GitHub