Other machines

Run the app on your laptop and your clones on another computer: a Linux box in a closet, a desktop at the office, a cloud VM. clove on that machine does the work; this one talks to it over ssh.

clove machines add lab beelinka name, and an ssh destination (a Host from ~/.ssh/config, or user@host)
clove machines check labconnects; prints the clove version, system and repo count there
clove on lab lsany clove command there; --json works the same
clove on labits terminal UI, in this terminal

The list lives in ~/.config/clove/machines.toml, which the CLI, the terminal UI and the app share. clove machines rename and clove machines remove (rm) change it.

What it needs

  • ssh without a promptA key that ssh uses on its own (an agent, 1Password, a key in ~/.ssh). The app runs ssh with BatchMode=yes, so a password prompt fails with ssh's own message instead of hanging.
  • clove therefound by the login shell's PATH, or at the path given with --clove. clove machines install lab puts the latest release in ~/.local/bin on that machine, after checking it against the release's checksums, and saves that path. It needs curl or wget there, and no root.
  • What clove itself needs thereOn Linux, btrfs-progs and the fstab line clove init offers, so clones mount over ssh (see Quick start). clove on lab doctor lists what's missing.

In the app

The sidebar's Machines section lists this computer and each machine. Picking one connects first: when ssh or clove fails, the app stays where it was and shows why. Then the window shows that machine's repos and clones, and its name in the title bar. Add machine… takes the ssh destination and a name, tests the connection, and offers to install clove when ssh works but clove isn't there. Each machine has an icon and a colour, set from its … menu, where you also rename or remove it.

Opening a clone from another machine:

target how
VS Code, VS Code Insiders, Cursor, Windsurf, VSCodium their SSH remote (vscode://vscode-remote/ssh-remote+<ssh>/<path>, each with its own scheme)
Zed zed ssh://<ssh>/<path>
a terminal ssh -t <ssh>, in the clone, with your login shell
JetBrains IDEs, Sublime Text, Xcode not offered: they can't open a folder over ssh
Finder refused: the files are on the other machine

Resuming an agent session and resolving update conflicts open a terminal the same way, through ssh -t.

In the terminal UI

M lists the machines. Enter opens that machine's terminal UI here over ssh; quitting it comes back to this one. A terminal UI running on another machine shows its name in the header: clove on lab.

How it works

The app starts ssh <destination> clove serve --stdio once per machine and keeps it open. Requests and replies are JSON lines with ids, so several run at once; progress of long operations, repo changes and live agent sessions come back as event lines on the same connection. The first line clove serve sends names its protocol version, its clove version and its system. When the protocol differs from the app's, the app says which side to upgrade.

Each machine keeps its own cache in the app, so switching back shows its repos at once.

Limits

  • An operation running when the connection drops (a clove new, a refresh) is cut off with it.
  • The app checks a machine when you pick it; a machine that goes away later shows as an error on the next request.
  • clove machines install installs releases only, not a local build.