ovis icon indicating copy to clipboard operation
ovis copied to clipboard

Desktop app (macOS): connect to an existing remote Ovis server by address, like the iOS app

Open r0verchr0me opened this issue 2 weeks ago • 2 comments

What I'd like

A way for the macOS desktop app to connect to an Ovis server that is already running on another machine, the same way the iOS app does: enter or scan the server's HTTPS address, and pair with the six-digit code if needed.

My setup

  • Ovis and herdr run on a headless Linux LXC (Proxmox), served over HTTPS with tailscale serve.
  • On my iPhone I connect to it with the Ovis app and it works well.
  • On my Mac I have to use Safari at the tailnet address.

Why

As far as I can tell from the docs, the desktop app runs its own local server and can only reach another machine through SSH (Settings → Remote PCs) or the Ovis relay, which needs an account. I could not find a "connect to this address" option. I don't need herdr or a server on the Mac, only a client for the server I already have.

It would also work around a Safari problem: in the Terminal view, selecting text in OpenCode shows "Copied to clipboard", but Safari plays an error sound and nothing reaches the macOS clipboard. The page is served over HTTPS through Tailscale, so it is a secure context.

Suggestion

An "Address" option under "Add a connection" in the desktop app: paste an https://… Ovis address or enter a pairing code, with the same trust rules as for phones.

r0verchr0me avatar Nov 16 '26 17:11 r0verchr0me

This applies to Linux and Windows as well, not only macOS: the desktop app is one shared Electron shell for all three platforms (app/electron/src/main.ts, children.ts, renderer/), so an address/pairing option would serve every install.

Confirming the current behaviour from the v0.5.4 source, so the scope is on record:

  • app/electron/src/main.ts, launch() — always installCore → startCore → choosePort → startServer, and then window.loadURL(server.url). There is no branch that opens an address the app did not spawn itself.
  • app/electron/src/children.ts, serverEnv() — forces HOST: "127.0.0.1" and PORT, and drops inherited settings. No environment variable or setting points the window at another server.
  • renderer/connect.html — the connection screen offers only Try again and Show logs; there is no address field.

My case, which is probably common on Linux: this machine already runs an Ovis server from the herdr plugin on 127.0.0.1:7317, and that is the same server my phone and my browser reach. The desktop app insists on starting a second server with its own HC_SESSION=ovis and its own state folder, so it shows none of what the web and the phone show, and I would have to re-add every PC in that duplicate instance. I stopped using the app for that reason; a client-only mode like the iOS app would bring me back to it.

Things I noticed while reading that would make this more than a loadURL, in case it helps scope it: the tray's Restart Ovis Server and Quit stops the server; the trusted-origin list behind the microphone, clipboard and notification grants ("the server's own pages"); Keep Computer Awake, which reads desktop-activity.json from the local state folder; ovis://open carrying machine; and TLS for a remote https address. The phone pairing rules (address, pairing code, fingerprint) look like the model to reuse rather than a new trust path.

+1 — very interested in this.

NicoLeo13 avatar Nov 18 '26 20:11 NicoLeo13

Implemented in latest versions

r0verchr0me avatar Nov 23 '26 03:11 r0verchr0me