User guide Connect a device

Connect a device

Pair a phone, browser, or standalone client with your Host, pick the right network path, and control exactly which Bots each device can see.

On this page

Access scope comes first

Every external device joins a Host through a one-time invitation created by the Host owner. Pairing a device does not automatically grant access to every Bot on that computer.

When you open Settings › Devices › Connect a phone on the Host, choose the exact access level for that invitation:

  • Full Host access: Grants access to all current and future Bots, computer viewing and control, and Host management settings. Use this for your own primary phone.
  • Selected Bots only (limited invitation): Clear Full Host access and select only the Bots you want to share. The paired device cannot see other Bots and cannot administer Host settings.
  • Computer permission: Limited invitations default to no computer access. When needed, you can explicitly grant Watch only or Watch and take control for the selected Bots.

Each paired device receives its own credential. You can revoke any device individually at any time from Settings › Devices on the Host.

Choosing a connection path

A Host supports three transport paths. In automatic mode, paired clients switch paths seamlessly as your network changes without requiring re-pairing:

PathBest forIdentity and encryption
LANPhone and Host on the same local Wi-Fi or office networkDirect HTTPS using the Host's configured local address with verified Host identity
TailscaleDevices on your private Tailscale networkDirect HTTPS using Tailscale certificates with verified Host identity
RelayRemote access away from home or office without opening router portsInvitation pins the Host's public key and encrypts traffic end to end

Direct invitations work on the same network (LAN or Tailscale). To reach the Host from any network, enable Relay in Host connection settings and turn on Remote access (Relay) when creating the invitation.

Pair the mobile app

On first launch, the mobile app opens with an empty Host list:

  1. On the Host, open Settings › Devices › Connect a phone, pick the access scope and whether to include Relay, and display the QR code, invitation link, and six-digit one-time code (valid for 10 minutes).
  2. On your phone, tap Add a Host:
    • Scan QR code or open an invite link (recommended): Scan the Host's QR code in-app or through the system camera to open the invitation in Ramulbot. This works for LAN, Tailscale, and Relay invitations.
    • Manual entry: On the same network, choose manual entry and provide the Host's HTTPS address and six-digit code. If nearby Hosts are suggested, verify that the address matches the one shown on your Host before continuing.
  3. Review the Confirm pairing screen—checking the verified Host name, connection method, and granted Bots—and confirm to finish.

Paired credentials and Host identities are stored in the iOS Keychain or Android Keystore.

Connect from a trusted HTTPS browser

You can also connect from a browser when serving the Ramulbot web client over a trusted HTTPS origin:

  • Direct over LAN or Tailscale: Configure the Host's trusted HTTPS pairing listener and set RAMULBOT_WEB_ORIGINS on the Host to the exact HTTPS origin serving the web app. Open the web app and paste the invitation link, or enter the Host HTTPS address and six-digit code manually.
  • Over Relay: Enable Relay over WSS on the Host and include Relay on the invitation. Paste the invitation link in the browser; this path connects directly through Relay and does not require a Host CORS origin setting.

The browser stores a revocable device binding and caches authorized data in browser storage for that origin. Opening a different origin or clearing site data requires pairing again.

Managing active devices

  • When a phone returns from background or switches between Wi-Fi and cellular networks, Ramulbot verifies the Host identity and resumes syncing automatically.
  • If a Host goes offline, paired clients continue showing cached conversations and retain drafts until connectivity returns.
  • If a device is lost or no longer needed, remove it in Settings › Devices on the Host to invalidate its credential immediately.

For terminal and scripting access to local or remote Hosts, see Command-line interface (CLI).