Expose an API-Only Interface
Some services have no web UI — they expose only a programmatic API (REST, gRPC, or custom protocol). The URL is shown as a copyable connection string rather than a clickable browser link.
Solution
Same as a web UI but use type: 'api' and masked: true on the interface. This shows the URL as a copyable connection string rather than a clickable browser link. For custom protocol schemes (e.g., lndconnect://, smp://), set schemeOverride: { ssl: 'custom-scheme', noSsl: 'custom-scheme' }.
An exported interface is on the LAN by default, so before exporting an API confirm it demands a credential: never pass upstream’s auth-off flag (--disable-rpc-login). When widening a localhost listener to the container’s bridge addresses, keep its authentication enabled. For an HTTP API without native auth, gate the binding with proxy.auth; that gate cannot authenticate a non-HTTP protocol. Keep a non-HTTP API without authentication unexported. If only dependents use the API, don’t export it at all (bridge-only).
Reference: Interfaces
Examples
See startos/interfaces.ts in: ollama, phoenixd, simplex (SMP + XFTP with custom schemes), lnd (lndconnect:// URIs)