Remote Access

Broski Link connects your phone to your Mac directly on your network, or through an end-to-end encrypted relay when you are away. No VPN and no port forwarding.

How It Works

The broski-link service runs on your Mac. It starts the bridge, restarts it if it crashes, and is the only process your phone talks to. The bridge itself listens on your Mac's loopback interface and a local socket only, so it is never exposed to your network.

Local networkRelay
RoutePhone to your Mac directlyPhone and Mac both connect out to a relay
EncryptionNoise, end to endNoise, end to end (the relay cannot decrypt it)
Works from anywhereNo (same network)Yes
Needs a relay configuredNoYes
Phone app requiredBroski onlyBroski only

The phone tries the local addresses from the pairing QR first and falls back to the relay when none of them answer. You do not choose a route; Broski picks the one that works.

Setup

1
Install the service on your Mac

This registers broski-link with launchd (macOS) or systemd (Linux).

bash
broski install
2
Show a pairing QR code

The code is single-use and expires after 10 minutes.

bash
broski-link pair
3
Scan it with the Broski app

The app stores the pairing and reconnects on its own from then on.

Windows
Broski Link is not supported on Windows yet.

Using a Relay

A relay lets your phone reach your Mac when they are not on the same network. Point the service at one by adding its URL to ~/.broski/link/config.json on your Mac:

json
{
  "relay": "wss://relay.example.com"
}

Restart the service, then run broski-link pair again. Pairing QR codes include the relay address, so phones paired afterwards can use it.

bash
broski restart
broski-link pair
What a relay can see
A relay forwards encrypted frames between your phone and your Mac. It sees device and machine ids, connection timing and message sizes, plus notification metadata when you enable notifications. It never sees prompts, code, files or conversations.

Check the Connection

bash
# Machine, bridge, relay and session status
broski-link status

# Paired phones
broski-link devices

# Remove a phone (use at least the first 8 characters of its id)
broski-link revoke <device id prefix>

broski-link status shows whether the bridge is up, whether the relay is connected, and which route each paired phone is using.

Keeping Your Mac Reachable

Your Mac has to be awake for the phone to reach it. If you use a Mac laptop with the lid closed, a keep-awake tool such as Amphetamine keeps it running.

Next Steps