Run agents on another computer
Add a server, a VM or a second laptop over ssh, open one of its folders, and run terminals and agents there.
Run agents on a bigger or always-on computer while you watch them from your own. You reach it with ssh.
Paste this into your coding agent to add a computer over ssh and open one of its folders in Hivemind.
Show the prompt
Add a computer I reach over ssh to Hivemind as a machine, and open one of its project folders as a frame. 1. Ask me for the ssh destination (`user@host` or an alias from `~/.ssh/config`), a short name for it, and the folder on it to open. 2. Check ssh works without questions: `ssh -o BatchMode=yes user@host true`. If it asks about the host key or for a password, stop. Ask me to run `ssh user@host` once myself and answer it. Never type a password. 3. Check the platform: `ssh user@host uname -sm`. It must be Linux (x86_64 or arm64) or macOS on arm64. Otherwise stop and tell me. 4. Add it: `hive machine add user@host --label <name>`. It puts this version's `hive` there. Then `hive machine check <name>` must print `<name>: reachable`, the platform and a hive version. 5. With the Hivemind app open, open the folder as a frame: `hive ctl frame add --machine <name> --folder <full path> --name <frame name>`. 6. Ask me which agent to start there. Its program must be installed on that machine: check with `ssh user@host command -v <agent program>`. Start it with `hive ctl spawn --frame <frame name> --agent <agent> --prompt "<task>"` only if I gave a task. At the end, tell me the machine's name, what `hive machine check` printed, and the frame that opened. Tell me `hive ps --machine <name>` lists what runs there. REFERENCE https://hivemind.griiken.com/guide/machines.md
How a machine runs your agents, and how it differs from a host: Machines and hosts.
Before you start
- The computer runs Linux (x86_64 or arm64) or macOS on Apple Silicon, with an ssh server you can log in to.
- You answered its host-key question once, in a terminal:
ssh user@host. - The agent programs you want to run there are installed on it.
Hivemind uses your own OpenSSH: your keys, your ssh agent and ~/.ssh/config. A password, if you use one, goes in the system keychain.
Add the machine
- Open the Layers panelThe list beside the canvas of your projects, frames and tiles.Glossary → (⌘B / Ctrl+B) and choose Machines.
- Press New machine.
- Fill in Host (
user@hostor an ssh alias) and Name. - Press Add. Hivemind puts its own
hiveon the machine.
Check: the machine shows in the Machines pane, not grey.

Open a folder on it
- In the Machines pane, press + on the machine, or ⋯ → Open folder here….
- Pick a folder.
Check: it opens as a new frameA named area bound to one folder: the project, a git worktree, or a folder on another computer.Glossary →. Terminals, agents and the Code tile in it all run on the machine.
Check it worked
Run pwd in a terminal in the new frame. It prints the folder on the machine.
Sessions outlive the connection
Terminals and agents on the machine keep running when the network drops, your laptop sleeps or the app quits, and reattach when you are back. To reach them without the app:
hive ps --machine build
hive attach <session> --machine build # ctrl-b d detaches
hive run --machine build --cwd /srv/web -- npm test
hive kill <session> --machine buildNothing to install or update there
Hivemind keeps hive on the machine itself, one copy per version in ~/.hivemind/bin/. When you
update the app, it puts its new version there the next time it connects, and keeps the two
before it.
Several people on one login
People who log in to a machine as the same user each get their own terminals there, in
~/.hivemind/people/<person>/. One person's update never stops another's agents. They are kept
apart, not hidden: anyone on that login can still open the other folders. For privacy, give each
person a login of their own.
Manage it
A machine's ⋯ menu in the Machines pane has:
| Item | Does |
|---|---|
| Check now | Connects again and checks it. |
| Pause | Stops connecting. Nothing on the machine stops. Resume connects again. |
| Manage machines… | Edit it, set its password, or Remove… it. |
To be told when an agent there needs you, even with your laptop closed, run this on the machine:
hive push set https://ntfy.sh/your-topic
hive push testIf it didn't
| You see | Do |
|---|---|
| The machine is grey | It is paused or unreachable. Press Check now. |
| Sign in on the machine | It asks for a password. Give it once, or set up an ssh key. |
| hive could not be put there | The machine has no curl or wget, or its disk is full. Fix that and press Check now; until then its terminals end when the connection drops. |
unsupported remote platform | Windows cannot be a machine. |
More in Troubleshooting.
Good to know
- Issues are read from your own computer, not from the machine's folder.
Related
- Keep agents running while your laptop sleeps: a computer that keeps whole workspaces up, with no desktop.
- CLI reference
Last validated for Hivemind 2026.10.3.