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

  1. Open the Layers panel (⌘B / Ctrl+B) and choose Machines.
  2. Press New machine.
  3. Fill in Host (user@host or an ssh alias) and Name.
  4. Press Add. Hivemind puts its own hive on the machine.

Check: the machine shows in the Machines pane, not grey.

The Add a machine dialog: Host for user@host or an ssh config alias, an optional Name, and Use a password instead.
Add a machine

Open a folder on it

  1. In the Machines pane, press + on the machine, or ⋯ → Open folder here….
  2. Pick a folder.

Check: it opens as a new frame. 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 build

Nothing 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:

ItemDoes
Check nowConnects again and checks it.
PauseStops 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 test

If it didn't

You seeDo
The machine is greyIt is paused or unreachable. Press Check now.
Sign in on the machineIt asks for a password. Give it once, or set up an ssh key.
hive could not be put thereThe 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 platformWindows cannot be a machine.

More in Troubleshooting.

Good to know

  • Issues are read from your own computer, not from the machine's folder.

Last validated for Hivemind 2026.10.3.

Edit on GitHub

On this page