
# Connectivity

Your Remio app connects to the daemon running on your computer or server. Remio Desktop and the CLI can tunnel through SSH. Mobile clients can connect through the Remio relay or directly with Tailscale.

This is client-to-daemon transport. If you are looking for the service that starts agents from GitHub, Slack, and Discord events, that is [Hub](/docs/hub).

- [SSH](#ssh)
- [Remio relay](#remio-relay)
- [Tailscale](#tailscale)

## SSH

SSH transport connects to an existing daemon through your local OpenSSH client. It does not install, start, or configure Remio on the remote host.

Before connecting:

1. Start the Remio daemon on the remote host.
2. Confirm `ssh user@host` works with a key or SSH agent. Remio uses non-interactive SSH and follows your OpenSSH config.

The CLI accepts an SSH URI as its host:

```bash
remio --host ssh://user@host ls -a
```

The daemon is expected at `127.0.0.1:7676` on the remote host. The port in the SSH URL is the SSH server port:

```bash
remio --host ssh://user@host:2222 ls -a
```

Set a different remote daemon port with `daemonPort`:

```bash
remio --host 'ssh://user@host?daemonPort=7777' ls -a
```

Put `--host` before the command. `remio daemon status` observes the default local home; use `remio --host ssh://user@host daemon status` to query a remote daemon. `remio --host ssh://user@host run --cwd /path/on/remote ...` requires a working directory that exists on the remote host.

In Remio Desktop, open **Settings → Add host → Remote SSH** and enter the same `ssh://` destination, including `:port` or `?daemonPort=` when those differ from the defaults.

If the remote daemon has a password, enter it in **Daemon password**; it is stored with the host and sent on every connection, the same as a direct connection's password. SSH login itself stays key-based — Remio never prompts for an SSH password.

## Remio relay

The relay works without Tailscale, port forwarding, or network configuration. Traffic is [end-to-end encrypted](/docs/security).

Relay is disabled until you enable it.

### Enable relay from Remio Desktop

1. Open **Settings → your host → Devices → Relay**.
2. Select **Enable relay**.
3. Scan the QR code with Remio on your phone, or copy the pairing link and paste it into the phone app.

### Enable relay from the CLI

Run:

```bash
remio daemon pair
```

Confirm when prompted. Remio prints a QR code and pairing link. Scan the QR code with Remio on your phone, or choose **Paste pairing link** in the phone app.

## Tailscale

Install [Tailscale](https://tailscale.com/download) on the daemon machine and your phone. Sign in to the same tailnet on both devices.

1. On a device already connected to the host, open **Settings → your host → Devices**. You can also use the phone step during setup.
2. Turn on **Tailscale** and copy the address.
3. In Remio on your phone, open **Settings → Add host → Direct connection**.
4. Enter the IP in **Host** and the number after it in **Port**. Leave **Use SSL** off, then select **Connect**.

If the host was already paired through the relay, Remio adds the direct connection to the same host.

## Troubleshooting

- **SSH authentication failed:** Run `ssh user@host` in a terminal and fix the key, agent, host key, or `~/.ssh/config` entry there. Remio does not prompt for SSH passwords.
- **SSH connects but Remio is refused:** Run `remio daemon status` on the remote host. SSH transport does not start the daemon.
- **SSH connects but Remio reports "Password required":** The remote daemon is password-protected. Remove the SSH connection from the host and add it again, this time entering the daemon password in **Daemon password**.
- **Connection timed out:** Check that Tailscale is connected on both devices and that you used the daemon machine's Tailscale IP.
- **Connection refused:** Run `remio daemon status` and confirm the daemon is running on the configured IP and port.
- **Config change has no effect:** Run `remio reload`. Restart if the command reports a change to the main listen address.
