The System One EventUtahGo To Event Page →

Docs

Set up Midium, use every part of it, run it for your team, and build on it.

Reach Midium remotely

Use this Mac's Midium dashboard and API from another computer, over an SSH tunnel on any plan or a public ngrok URL on a Hub.

For Hub admins and members

By default, only this Mac#

Midium serves its dashboard and API at http://127.0.0.1:9100, which only this Mac can reach. Your base URL here is http://127.0.0.1:9100. To reach Midium from somewhere else, pick one:

WayPlanReaches
SSH tunnelAnyThe dashboard and the API, from a computer that can SSH into this Mac
ngrok tunnelHub, or a Mac that joined oneThe API, on a public URL from anywhere

Midium Relay, a private way to reach this Mac from your phone without opening ports, is coming soon.

Over SSH (any plan)#

  1. On this Mac, turn on Remote Login in macOS System Settings → General → Sharing.

  2. On this Mac, run:

    Shell
    midium tunnel
    

    It prints the exact command for your Mac, like:

    Shell
    ssh -L 9100:localhost:9100 you@192.168.1.20
    
  3. Run that command on the other computer and leave it open.

  4. On the other computer, open http://localhost:9100/ for the dashboard. The API is at http://localhost:9100/v1.

API requests through the tunnel still need your API key. See Authentication.

On a Mac with nobody logged in at the screen, start the engine with midium start --detach. It keeps running after you log out of your SSH session.

On a public URL with ngrok (Hub or member)#

Settings → Tunnel exposes this Mac's API on a public ngrok URL. It shows on a licensed Hub, or on a Mac that joined one.

  1. In your ngrok dashboard, reserve a domain and copy your auth token.
  2. Open Settings → Tunnel.
  3. Paste the Domain as a bare host, like domain.ngrok.app. Midium strips https:// and paths for you.
  4. Paste the Auth token.
  5. Press Connect. Midium saves both, opens the tunnel, and checks it's reachable from the internet.

The status then reads Connected. The connection pill in the title bar shows Base URL · public (tunnel) next to Base URL · this Mac, and copies either one.

Callers use the public URL plus /v1 as their base URL, with your API key:

Shell
curl https://domain.ngrok.app/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

Turn it on and off#

  • The Tunnel switch in the connection pill, or in the menu-bar icon's panel or menu.
  • Disconnect and Connect in Settings → Tunnel.

You don't need to restart Midium. The domain and token are stored in ~/Midium/.env. While the tunnel is off, only this Mac can reach the API.

Anyone with the public URL and your API key can use your models. Keep the key private, and turn the tunnel off when you don't need it.

Something here wrong or out of date? Tell us.