Private cloud

Run the relay yourself for full control — it needs no remo1.com plan.

Remo1 relays only encrypted traffic it cannot read. If you prefer, you can operate that relay yourself and point your devices at it. Private cloud hosting is fully supported: you enter your own relay address and key in the desktop app instead of the connection parameters from remo1.com.

Option A: one-click into your Cloudflare account

  1. In the desktop app, choose to deploy your own relay to Cloudflare.
  2. Provide a Cloudflare API Token with permission to edit Workers scripts. The app uses it only for this deployment.
  3. The app deploys a Worker named remo1-relay into your account. Nothing is deployed to remo1.com.
  4. Enter the resulting relay address and key in the desktop app.

Option B: manual deployment with wrangler

  1. Log in to Cloudflare from the wrangler CLI.
  2. Get the Worker source from the server/relay-selfhost folder of the Remo1 repository.
  3. Create the authentication secret — a long random key, e.g. 64 hex characters.
  4. Deploy the Worker, optionally under your own domain.
  5. Enter wss://<host>/ws and the key into the desktop app.

Log in and set the auth key

npx wrangler@4 login
npx wrangler@4 secret put RELAY_AUTH_KEY

Deploy

npx wrangler@4 deploy
# or with your own domain:
npx wrangler@4 deploy --domain relay.example.com

The Worker source is available in the Remo1 repository.

Environment variables and secrets

VariableRequiredPurpose
RELAY_AUTH_KEYYesLong random key (e.g. 64 hex characters). The desktop app and phone must present it to connect.
TURN_URLSNoTURN server URLs, comma-separated. Together with TURN_AUTH_SECRET it selects the coturn backend.
TURN_AUTH_SECRETNocoturn shared secret (use-auth-secret). Optional for the Worker; required by the VPS stack (64 hex characters), where it is also passed to the bundled coturn container.
TURN_TOKEN_ID / TURN_API_TOKENNoCloudflare Calls TURN credentials — the fallback TURN backend (1 TB/month free, then billed by Cloudflare).

TURN is optional

Without TURN, only direct connections work. To keep the relay fallback, add TURN: either Cloudflare Calls TURN (1 TB/month free, then billed by Cloudflare) or your own coturn.

Option C: VPS with Docker Compose

The repository contains a server/relay-hosted folder with a Docker Compose stack that runs the relay plus a coturn TURN server. Copy the folder to your VPS, set the environment variables in the .env file (copy of env.template; the connection key is RELAY_SHARED_KEY there), and start the stack. docker compose refuses to start while TURN_AUTH_SECRET is empty, so that coturn never runs with an empty secret. Open 8080/tcp, 3478/udp+tcp and UDP 49160–65535 in the firewall, and point TURN_URLS at this server (turn:<host>:3478?transport=udp) so that clients actually use it.

On your VPS

cp env.template .env   # set RELAY_SHARED_KEY and TURN settings
docker compose up -d

The Docker Compose files are part of the Remo1 repository.

After the stack starts, enter wss://<your-host>/ws and your RELAY_SHARED_KEY in the desktop app and pair your phone as usual.