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
- In the desktop app, choose to deploy your own relay to Cloudflare.
- Provide a Cloudflare API Token with permission to edit Workers scripts. The app uses it only for this deployment.
- The app deploys a Worker named
remo1-relayinto your account. Nothing is deployed to remo1.com. - Enter the resulting relay address and key in the desktop app.
Option B: manual deployment with wrangler
- Log in to Cloudflare from the wrangler CLI.
- Get the Worker source from the
server/relay-selfhostfolder of the Remo1 repository. - Create the authentication secret — a long random key, e.g. 64 hex characters.
- Deploy the Worker, optionally under your own domain.
- Enter
wss://<host>/wsand the key into the desktop app.
Log in and set the auth key
npx wrangler@4 login
npx wrangler@4 secret put RELAY_AUTH_KEYDeploy
npx wrangler@4 deploy
# or with your own domain:
npx wrangler@4 deploy --domain relay.example.comThe Worker source is available in the Remo1 repository.
Environment variables and secrets
| Variable | Required | Purpose |
|---|---|---|
| RELAY_AUTH_KEY | Yes | Long random key (e.g. 64 hex characters). The desktop app and phone must present it to connect. |
| TURN_URLS | No | TURN server URLs, comma-separated. Together with TURN_AUTH_SECRET it selects the coturn backend. |
| TURN_AUTH_SECRET | No | coturn 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_TOKEN | No | Cloudflare 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 -dThe 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.