# Machines and hosts

> How Hivemind runs terminals and agents on another computer: a machine over ssh, or a host over hive-net.

Source: https://hivemind.griiken.com/guide/remote-machines/

A frame can sit on another computer. Its terminals and agents then run there, in that
computer's own background process, and keep running when you disconnect. There are two ways to
reach it.

![Diagram: Two ways to run on another machine](https://hivemind.griiken.com/guide/images/machines-paths.svg)

- **Your computer** → **machine**: ssh, with your own `~/.ssh/config` and keys. The app puts its own version of `hive` there and runs `hive daemon bridge`, which joins your own **background process** on that machine. Each person who logs in as the same user has their own.
- **Your computer** → **host**: hive-net, directly or through your relay. The host runs `hive host`, whose background process runs the workspace's terminals and agents.
- A machine `hive` cannot be put on gets plain ssh terminals, which end when the connection drops.

## Machine or host [#machine-or-host]

| | Machine | Host |
|---|---|---|
| Holds the workspace | no: your computer does | yes, after **Move there** |
| Reached by guests and your phone | through your computer | directly, while your computer is off |
| Set it up | [Run agents on another computer](https://hivemind.griiken.com/guide/machines/) | [Keep agents running while your laptop sleeps](https://hivemind.griiken.com/guide/host/) |

<LastValidated />
