OMP Session Gateway

Private tailnet directory

Every live OMP session. One private mobile page.

Keep running stock Oh My Pi in your terminal. The gateway lists your collaboration-enabled sessions, shows which one needs you first, and opens OMP's own encrypted View or Control client over your tailnet — no fork, no QR scans, no per-session link copying.

  • Stock OMP ≥ 18.1.20
  • Bun 1.4.5
  • Tailscale Serve, TUN mode
  • Linux · macOS · Windows host
OMP Sessions in the Needs you state: a 2 waiting pill, an Up next card for Gateway auth hardening with the ask “How should ADR-0036 proceed?” and an Open request button, a Then row for Release qualification, and three live sessions below.
Synthetic fixture captured from the built app — no real sessions, hosts, or accounts. Provenance

How it works

From running session to exact request.

A metadata-only directory hands off to OMP's own encrypted client. The terminal stays the source of truth; the phone gets one private page.

  1. 01 · Discover

    Every live session, automatically.

    Each collaboration-enabled omp process appears within one 10-second discovery poll. No per-session command, QR code, or copied link.

    Detail of the Sessions directory in the All clear state: four live sessions listed with working or idle state and uptime.
  2. 02 · Triage

    The oldest ask rises first.

    When sessions wait for input, Needs you promotes the oldest request with bounded metadata (title, folder, model, and wait time). The prompt itself stays in OMP.

    Detail of the Needs you queue: the Up next card with an Open request button, then the next waiting session.
  3. 03 · Control

    Open the exact live request.

    Open request fetches the collaboration link when you tap and opens OMP's encrypted client in Control mode. Leaving or reloading returns to the directory without saving the link.

    Detail of OMP's collaboration client opened on the waiting request: two options, one marked Recommended, and a Send button.

Details from synthetic captures of the built PWA and the pinned OMP collaboration client. Session names and requests are fixtures.

What runs where

The gateway finds sessions. OMP keeps the secrets.

Stock OMP with collab.autoStart ships the collaboration controller and a private local registry. The gateway only reads that registry and brokers the handoff; it never carries transcripts.

  1. omp × N your terminals

    Publishes each interactive session to OMP's private registry when collab.autoStart is view or control.

  2. omp-gatewayd loopback only

    Reads the registry, polls active hosts on a fixed interval, and keeps a memory-only metadata directory.

  3. Tailscale Serve tailnet HTTPS

    Exposes the directory to an exact login allowlist over your tailnet. Funnel is never enabled.

  4. OMP Sessions your phone

    Shows metadata only. Tapping View or Control fetches the link from OMP at that moment and never stores it.

  5. OMP relay end-to-end encrypted

    OMP's pinned collab-web client connects through OMP's own relay. The gateway is out of the path.

Full detail: architecture · protocol · OMP integration.

Private by design

Fail closed by default.

View can read sensitive work and Control can steer it, so both links are treated as bearer capabilities. Every release runs distinctive-synthetic-secret leak scans across logs, storage, caches, URLs, and CI artifacts before it is qualified.

  • Loopback-only daemon

    omp-gatewayd binds to 127.0.0.1 (and optionally ::1), never to a public interface.

  • Exact login allowlist

    Requests arrive only through TUN-mode Tailscale Serve from a Tailscale login on your allowlist. A userspace-networking client makes every peer look local, so the daemon answers 403 instead of trusting the header.

  • Per-tap, memory-only capabilities

    View and Control links are fetched from OMP only when you tap, handed to the client once, and never stored, logged, or cached — not even in the memory-only registry.

  • Metadata-only directory and alerts

    Session lists, live events, and push notifications carry bounded session metadata only, never collaboration links or prompts.

  • No transcripts, telemetry, or third-party assets

    OMP's embedded client connects through OMP's encrypted relay. The gateway stores no transcripts and loads no external scripts, fonts, or analytics.

  • Stale sessions cannot be opened

    Every launch checks that the session is still the one you tapped; replaced or exited sessions fail closed instead of opening something newer.

Boundaries and acceptance gates on the security page; full threat model; report a vulnerability privately.

One-time setup

Three steps, then plain omp.

Configure OMP and the host service once; new sessions then register automatically. Nothing here needs a custom OMP build or a gateway-specific OMP plugin.

  1. Enable collaboration once in OMP

    # confirm your stock omp meets the minimum in Requires above
    omp --version
    # or view for read-only sharing
    omp config set collab.autoStart control

    Start participating sessions with plain omp after changing this setting; already-running processes do not pick it up.

  2. Install the gateway

    Download and verify the published archive in your download directory first. Run the Tailscale Serve command that serve-guidance prints, grant your login HTTPS access to the host in your tailnet policy (example), then confirm with bun apps/gateway/src/cli.js doctor. Windows uses the PowerShell steps (one command per line, no backslash continuations).

    tar -xf omp-session-gateway-*-bun.tar
    cd omp-session-gateway-*-bun
    bun apps/gateway/src/cli.js install \
      --origin https://host.tailnet.ts.net \
      --allow you@example.com
    bun apps/gateway/src/cli.js serve-guidance
  3. Open OMP Sessions on your phone

    Open your configured HTTPS address from an allowlisted Tailscale device and add OMP Sessions to your Home Screen. Operations covers service management and updates; troubleshooting by symptom covers common issues.

Supported and qualified

Supported in CI. Qualified on real hardware.

Supported means tested in CI on each change with bug reports accepted. Qualified names the exact hardware, OS, and browser versions verified for the latest release — the status page lists them lane by lane.

  • HostsLinux, macOS, and WindowsDebian, a macOS guest, and Windows x86-64 qualified for the latest release; macOS and Windows services start at interactive login.
  • BrowsersChrome, Edge, Firefox, SafariChromium, Firefox, and WebKit engines in CI; installable as a Home Screen app where the platform supports it.
  • DevicesAndroid, iPhone, and iPadA physical Pixel on Chrome including background alerts; cloud Samsung Galaxy, iPad, and iPhone (including Home Screen alerts, not lock screen).

Exact matrix, known limits, and vocabulary: compatibility · release ledger.

A narrow job

Use something else when you want more than a directory.

The gateway is a directory and launch broker for running terminal sessions, not a replacement chat client or a public dashboard. The comparison cites dated primary sources for each alternative.

  • Agent web chat or a remote terminal across several CLI agentsoh-my-portal provides skills, RPC, and terminal access over Portal tunnels.
  • A browser workspace for other coding CLIsCloudCLI (claudecodeui) targets Claude Code, Cursor CLI, and Codex; pi-agent-dashboard targets pi, not OMP.