Raemote

Quick start

Get Raemote running

Five minutes: install the server on the computer that runs your apps, install the iOS app on your iPhone or iPad (or pair another computer instead — step 6), scan one QR code.

1 Before you start

Will your app work? Check in ten seconds. On the computer that runs it, open http://localhost:<port> in a browser — the same address you'd use locally. If the page loads, Raemote can reach it too.

From a terminal, that's one line:

curl -I http://localhost:3000
What that check is really doing is exactly what Raemote does when it looks for apps: it asks each local port for its page and keeps the ones that answer with a real web page. So if it loads for you, Raemote will find it.

Raemote speaks plain HTTP — what a lot of self-hosted software serves out of the box. An app you've already put behind HTTPS with a certificate won't be reachable yet; that's the next thing we're building.

Nothing loading yet? That's fine — you can also add one by hand later with raemote apps add <name> <port>.

You'll also need

  • A Mac (Apple Silicon or Intel) or a Linux machine (x86_64 or arm64 — a Raspberry Pi is fine) that runs the web apps you want to reach.
  • An iPhone or iPad running iOS/iPadOS 18.6 or later.
  • Nothing exposed to the internet: Raemote keeps everything on your machine and hands it only to devices you paired.

Don't have any apps running yet? A dev server is enough — start anything that serves a web page and Raemote will show it.

2 Install the server

curl -fsSL https://github.com/raemote/raemote_cli/raw/main/install.sh | sh

On a network where GitHub is slow or blocked, use the Gitee mirror:

curl -fsSL https://gitee.com/pppkin/raemote_cli/raw/main/install.sh | sh

The installer puts raemote and raemoted in ~/.local/bin, installs a background service (launchd on macOS, systemd on Linux), starts it, and prints your pairing link.

To upgrade later, run raemote update. The CLI checks for a new release at most once a day and tells you when one is available. The iOS app checks once a day too and shows a server update banner.

Installer options and AI agents

Useful flags: --no-service, --bin-dir <dir>, --proxy <url>, --source gitee|github, --tag <tag>, --quiet.

For an AI agent or a script, --json writes one JSON object to stdout (including the node id and the pairing uri) and all progress to stderr, and exits non-zero on failure:

curl -fsSL https://github.com/raemote/raemote_cli/raw/main/install.sh | sh -s -- --json

Full contract: agent-install.md.

Prefer to read it first? Download install.sh, then run sh install.sh.

3 Install the iOS app

Available on TestFlight

Install Raemote from TestFlight on your iPhone or iPad (iOS/iPadOS 18.6+), then open it. There is no account to create and nothing to sign up for.

Another computer is an equal option: raemote connect pairs it and serves these same apps — step 6. One link can pair both.

The first time you open an app, does Safari show a “Not Secure Connection” page? That is Safari's own warning for the plain-HTTP loopback address Raemote uses inside the app — the hop to your computer is still end-to-end encrypted. Turn it off in Settings → Apps → Safari → Privacy & Security → Not Secure Connection Warning.

4 Pair your iPhone or iPad

On the computer that runs the server:

raemote pair

It prints a raemote:// link and a QR code. In the app, tap + and scan it — or paste the link with Manual Setup. You do this once per device.

The same link pairs a computer: run raemote connect '<link from raemote pair>' and it becomes another paired device (step 6).

The link is short-lived (five minutes by default) and can pair more than one device until it expires. Print a fresh one any time with raemote pair.

A longer-lived link, or pairing another device later

For a link that stays valid, pin a token and a long TTL in ~/.raemote/config.toml:

[bind]
token = "…64 hex characters…"
token_ttl_secs = 3153600000

then run raemote pair again. Treat that link as a secret: anyone holding it can pair. Or skip the server entirely — from an already paired device use … → Invite Device… in the app for a one-time code.

You can also mint a long-lived link directly without editing config: raemote pair --ttl 3153600000.

Pair a device that should only reach some apps

By default a pairing link grants every app the server can see. To share only some, list the ports:

raemote pair --ports 8096,3000

That device's app list shows only those apps, and opening anything else is refused. You can narrow or widen a paired device later — it takes effect immediately:

raemote devices access <id> --ports 8096
raemote devices access <id> --all

Invitations follow the same rule: a limited device sharing … → Invite Device… can pass on everything it has or a narrower selection — never more than its own grant. Access is per port, so two apps behind the same port are allowed or refused together.

The app can mint invitations and set this device's own name, but listing, renaming or revoking other devices, and changing their access, is still done with raemote devices in the CLI.

Allow Local Network access when iOS asks. On the same Wi-Fi, the app uses Bonjour/mDNS to find a direct path to your server from the first dial. Declining does not unpair anything; it just skips that fast local route.

5 Use it

  • Your paired servers appear under Paired; open one to see the apps raemoted found.
  • Tap an app to open it in a foreground Safari view. Done closes it and tears down its tunnel; no hidden tabs stay running behind the screen.
  • Each app keeps its own stable origin, so logins, cookies and site data survive after you close it and open it again days later.
  • Recent is a history list, not a live tab. Tap an entry to start a fresh session; SSH destinations you have used also appear there.
  • The app refreshes itself when you return to it; tap … → Refresh Apps to scan again right away.

If an app never shows up, pin it by hand:

raemote apps add jellyfin 8096
raemote apps list

6 Use it from another computer

raemote connect is a full client, just like the iOS app: pair this computer with the same link and serve your apps in a browser:

raemote connect '<link from raemote pair>'   # pair and open
raemote connect                              # reopen the last server

The app list is served on 127.0.0.1:7788 (move it with --port), and every app gets its own loopback port so its URLs, cookies and logins behave exactly as they do on the server. The paired computer appears in raemote devices list like any other device — name it, restrict it, revoke it. --no-open skips launching the browser.

7 Terminal over the tunnel (optional)

Raemote can carry SSH over the same encrypted tunnel. It is off by default, and it does not open a port on your router.

On the server, with an SSH server reachable on loopback (on macOS, enable Remote Login in Sharing):

raemote config set sshd.enabled true
raemote config set sshd.port 22   # optional; default 22
raemote reload

First pair this computer with raemote connect '<link from raemote pair>'. Then open the shell:

raemote ssh '<server-node-id>'    # username defaults to $USER
raemote ssh 'alice@<server-node-id>'
raemote ssh 'alice@mymachine_1'

This hands a temporary loopback port to your system ssh, so password prompts, keys and ssh-agent behave as usual.

In the iOS app, a server with SSH enabled shows an SSH Shell button. SSH Public Key generates a Secure Enclave-backed key; add the exported line to that account's ~/.ssh/authorized_keys, or use password login. A session keeps running while you switch tabs inside the app; leaving the app ends it.

File transfer works through the same tunnel as an OpenSSH ProxyCommand:

scp -o ProxyCommand="raemote ssh --proxy <id>" \
    -o NoHostAuthenticationForLocalhost=yes \
    ./file.txt alice@127.0.0.1:/home/alice/

sftp and rsync -e "ssh -o ProxyCommand=…" work too.

SSH is all-or-nothing. Every paired device can reach your sshd when it is enabled, and per-app port allowlists do not restrict SSH. Only enable it for devices you trust with a shell.

8 Day-to-day commands

CommandWhat it does
raemote statusis the service running, and how many apps were found
raemote doctorhealth check: daemon, permissions, config, discovery, relay
raemote updateinstall the latest release in place (--check only reports)
raemote discoverscan for apps right now (add --verbose to see what was skipped and why)
raemote apps listthe merged app list, with where each entry came from
raemote apps hide <name>drop a false positive (unhide restores it)
raemote devices listpaired devices — names, node ids, and what each can reach
raemote devices rename <id> "Living Room"give a device a readable name
raemote devices revoke <id>cut a device off immediately
raemote devices access <id> --ports 8096limit a device to specific ports (--all restores everything)
raemote ssh <id>open an SSH login over the tunnel (user defaults to $USER; add --proxy for scp/sftp)
raemote servers listservers remembered by connect and ssh, with their nicknames
raemote servers rename <id> <nickname>give a remembered server a short name for connect and ssh
raemote config set name "Mac mini"rename the server as paired devices see it
raemote logs -n 50recent activity (--follow to stream)
raemote restartrestart the service after a config change

9 If something looks wrong

Start here:

raemote doctor

In the iOS app, long-press the connection status line — or open … → Connection Logs — for a live view of what the tunnel is doing.

SymptomFix
An app isn't listedraemote discover --verbose to see why it was skipped; then raemote apps add <name> <port>
The app can't be reachedcheck it answers http://localhost:<port>; HTTPS-only apps are not supported yet
The app says it is not authorizedit was revoked, or the server's identity changed — run raemote pair again and re-scan
iOS asks for Local Network accessallow it: that is the Bonjour/mDNS path used to reach a paired server directly on the same Wi-Fi; declining does not unpair, it just skips that fast route
SSH Shell is missing, or SSH is refusedenable it on the server (raemote config set sshd.enabled true), confirm sshd listens on 127.0.0.1:<port>, then raemote reload
Doctor reports the relay unreachableon the server's network, set an outbound proxy for relay/discovery: raemote config set network.proxy http://host:port then raemote restart. This does not proxy the QUIC data path. The iOS app has no proxy setting yet
Safari shows a “Not Secure” pagethat is Safari's loopback warning for an app's local HTTP origin; switch it off in Settings as noted above
Nothing works after editing configraemote reload for most settings, raemote restart for network or identity changes

More in troubleshooting.md.

10 Remove it

curl -fsSL https://github.com/raemote/raemote_cli/raw/main/install.sh | sh -s -- --uninstall

Add --purge to also delete ~/.raemote — the server identity and the list of paired devices. Revoking a device from raemote devices is enough to cut off access without uninstalling anything.

Security reports and privacy questions: cool@lyuhj.top · SECURITY.md · PRIVACY.md