OpenProgram Docs

Remote Web access

Every HTTP, SSE and WebSocket request carries the per-start instance token or a paired device's credential, even on loopback. Either means the active profile's one owner. No relay, no accounts.

Access modes

ModeBindBrowser reachesProtection besides the token
Same machine127.0.0.1Loopback URLHost and Origin checks
Trusted LAN or encrypted VPNExplicit web.host, often 0.0.0.0Direct addressNon-empty exact origins, Host checks, HTTPS or an encrypted network
SSH tunnel127.0.0.1Local forwarded portSSH encrypts transport
Public owner domain127.0.0.1 behind a same-host proxyOwner-managed HTTPS URLExact origin and Host, trusted loopback proxy, HTTPS

Who a valid token is

Principal
owner/install/<16hex> from openprogram/runtime/permissions/authority.py, with the owner tier's fixed capabilities
Scope
The active profile or state directory: owner.json lives there, so each profile has its own owner
Proves
Authorization as the owner, not which person is at the browser
Channel speakers
Telegram, Discord and other channels keep speaker attribution and the restricted paired tier; a channel turn never makes someone the Web owner
Stored
No Web user table, passwords, memberships, roles or per-project ACL
ExcludedInstead
Web accounts, signup, invitations, user sessionsOne owner principal per profile or state instance
RBAC, groups, tenant or workspace roles, project permissionsThe Web UI is one full-capability administrative interface
OAuth, OIDC, SSO, identity-aware proxy, Tailscale identityMay add a control; never replace the token
Built-in TLS, ACME, certificate storage and renewalThe owner runs nginx, Caddy, a VPN or SSH
Public relay, hosted tunnel, rendezvous, share URLNo outbound registration for reachability; another device pairs directly with the server it can reach (Paired devices)
Authentication off, --insecureAlways on, including loopback
Long-lived token in a query, localStorage or public HTMLFragment bootstrap and HttpOnly cookie only
Reading stored provider credentials as plaintextReplace only

Threats on loopback

CallerWhat it can doControl
Arbitrary Web pageSend some HTTP to localhost; WebSocket escapes the same-origin read ruleToken plus exact Origin and Host before any action
DNS-rebinding pageResolve a hostile name to loopback and present a foreign HostFail-closed Host validation
Local process, other OS accountOmit Origin, as curl and native clients doBearer token; missing Origin conveys no trust
LAN peer after external bindConnect to every route and /wsMandatory token, exact origins, Host validation, protected transport
Reverse-proxy clientPresent a public Host while the backend stays loopbackExplicit public origin, narrowly trusted loopback proxy

Invariants

  • Before authentication: no protected state, session data, file bytes, secret metadata, SSE event or WebSocket frame leaves, and no action runs.
  • A missing Origin never establishes trust. It is allowed only after valid Bearer authentication, or on a safe cookie request.
  • The token complements Host and Origin checks; cookies keep CSRF controls.
  • A non-loopback bind with incomplete origins fails before listening.
  • No route returns a stored secret, or the token after initial entry.

Token and credentials

AspectRule
Valuesecrets.token_bytes(32), shown as 43 characters of unpadded base64url; new on every Web process start
One processExclusive owner-only lock <state-dir>/web.lock; a second process fails without touching the first's token
Filesweb/token written atomically before the listener is ready; web/access.json holds exactly version, bind_host, port, effective_origins, token_fingerprint; both owner-only, hardened by restrict_to_user()
Never fromConfiguration, a command-line argument, an environment variable
Never inServer logs, exception messages, access logs, telemetry, Web responses. Logs carry only sha256:<first 12 hex of sha256(raw bytes)>
CompareDecode to exactly 32 bytes, then hmac.compare_digest
Startup failure and cleanup
  • The write follows the temp-file, os.replace and permission pattern of openprogram/extensions/mcp/token_storage.py.
  • Startup fails if the lock cannot be taken or the token file cannot be created and read back safely.
  • read_active_web_access() returns ActiveWebAccess only for a valid snapshot whose fingerprint matches the live token file.
  • On bind failure or shutdown, the process removes the token only while holding the lock with its own token in the file, and access.json only when the fingerprint is its own.
  • Stale unlocked files are replaced atomically by the next process.

Credential forms

ClientCredentialRule
Browser HTTP, SSE, WebSocketCookie openprogram_owner_<16hex> = base64url(HMAC-SHA256(raw_token, "openprogram-web-cookie-v1"))HttpOnly, SameSite=Strict, Path=/, no Domain, session lifetime; Secure when the effective scheme is HTTPS
Native HTTP, SSE, WebSocketAuthorization: Bearer <token>Header only; a token in a query is ignored
Paired browserCookie openprogram_device_<16hex> = opd1.<device id>.<secret>Same attributes as the owner cookie, plus Max-Age of 400 days; the server forgets the device after 30 idle days
Paired native clientAuthorization: Bearer opd1.…Same Bearer rules as the owner token
  • The profile-specific name keeps simultaneous profile servers from overwriting each other's cookie: cookies are not port-scoped.
  • The owner cookie has no database row. It is recomputed from the token, so a restart invalidates it. A device credential is checked against web/devices.json and survives restarts.
  • Except on bootstrap, any Authorization header selects the Bearer path: a bad one returns 401 and never falls back to a valid cookie.

Browser sign-in

CLI Browser Web server open /#token=… GET / (no fragment) public static shell token into memory history.replaceState() POST /api/auth/bootstrap 204 Set-Cookie: HttpOnly HTTP, SSE, WebSocket with the cookie
  1. CLIopen /#token=…
  2. BrowserGET / without the fragment; gets the public shell
  3. Browsertoken into memory, history.replaceState()
  4. BrowserPOST /api/auth/bootstrap
  5. Web server204, Set-Cookie: HttpOnly
  6. BrowserHTTP, SSE, WebSocket with the cookie

The fragment never appears in an HTTP request, proxy log, Referer or route. apps/web/lib/net/auth/owner-auth-bootstrap.ts mounts the application only after the exchange and uses no Web Storage.

POST /api/auth/bootstrap contract
  • POST only, with a valid exact Origin and valid Host.
  • Content-Type: application/json, body at most 256 bytes, exactly {"token":"<43-character base64url>"}. Unknown keys, duplicate keys, bad base64url and other lengths are rejected.
  • Any Authorization header, a missing token or a wrong token: the same 401.
  • Success: 204 and the cookie. Always Cache-Control: no-store; the token is never in a response.

Sign-in link for another device

openprogram web auth-url --base-url https://agent.example.com
  1. Compare worker PID and port files, access.json and the listening process: send a fresh nonce to GET /api/auth/challenge and check the HMAC proof locally. The token is never sent to the probed port.
  2. Read the live token file and print one fragment URL to the terminal, never to application logs.

--base-url must be an effective origin frozen in access.json, with no path, query, fragment or user information. HTTP passes only for exact localhost on a loopback listener or an IP in the ranges under Plaintext HTTP.

Paired devices

The owner token changes on every start, which suits this computer's own App and CLI: they read it from the state directory. A phone or a second computer cannot, so it pairs once and keeps a credential of its own.

  1. Computeropenprogram web pair: POST /api/auth/pairings mints a code; the CLI prints <origin>/#pair=<code> and its QR code
  2. Other deviceopens the link; the fragment leaves the address bar before any request
  3. Other devicePOST /api/auth/pair {"code"}
  4. Web serverspends the code; a browser (it sends Origin) gets the device cookie with 204, a native client gets {"device_id","token"}
  5. Other deviceevery later request, across restarts, until revoked or idle 30 days
PartRuleWhy
Pairing code32 random bytes; single use; 10 minutes; held only in the worker's memory, at most 16 pendingA link that leaks into a chat or a screenshot is worthless soon after; a restart drops them all
Device credentialopd1.<16hex id>.<32-byte secret>; only sha256(secret) is stored, owner-only, in <state>/web/devices.jsonThe file never holds a usable secret; the id lets one device be listed and revoked
AuthorityThe same single owner as the instance token; the device id goes on the request as device_idA paired device can run tools as the owner anyway, so narrower scopes would not be a real boundary
LifetimeValid while used; forgotten after 30 idle days; last_used written at most hourlyA lost phone that is never opened again stops working on its own
RevokeDELETE /api/auth/devices/{device_id} or openprogram web devices revoke <id>; its open WebSockets close with 4401Revoking takes effect on the connection the device is already holding
ReachabilityUnchanged: the link names an effective origin; with only loopback origins the CLI explains how to configure LAN, VPN or a proxyPairing proves who; it does not make an unreachable server reachable
Spent linkA browser that is already paired and opens an old link signs in with its cookie and says nothingReopening a bookmarked link is not an error

Routes: GET /api/auth/devices, PATCH and DELETE /api/auth/devices/{device_id}, POST /api/auth/pairings in openprogram/interfaces/server/routes/identity/devices.py; registry in openprogram/interfaces/server/device_access.py.

Why pairing, and why this shape
PeerHow another device signs inTaken
T3 Codet3 pair prints a QR of a one-time link with the secret in the fragment; the device keeps a session listed and revocable under Sharing & access; unused 30 days, it pairs again. LAN, Tailscale HTTPS, SSH, or its hosted T3 Connect relayFragment link, one-time code, 30-day idle expiry, revoke list. Not the hosted relay or scoped grants
DSH Mobile (DeepSeek Harness plugin)QR, link or key pairing; device tokens go only to their exact origin; private LAN CA pinned; Tailscale Funnel or tunnels for remote; Web Push for the home-screen PWACredential bound to one origin (host-only cookie). LAN TLS and push are later steps
pi remote extensionsQR to a LAN or tailnet WebSocket, or a self-hosted end-to-end encrypted relayConfirms LAN and tailnet as the default routes
Claude Code Remote Control, Codex remote controlThe vendor's service relays between the computer and the phoneNot taken: OpenProgram runs no service

Request handling

One ASGI middleware, OwnerAuthMiddleware, runs before route dispatch for HTTP and WebSocket. No application route interprets authentication itself.

OrderCheckOn failure
1Immediate peer, effective scheme, one valid Host; request_origin must be effective. Origin and Sec-Fetch-Site when present.403 request_origin_rejected
2Public, challenge and bootstrap routes answer hereTheir own rule, below
3Bearer if an Authorization header exists, else cookie401 authentication_required, WWW-Authenticate: Bearer realm="OpenProgram"
4Cookie on an unsafe method or WebSocket must have Origin403 request_origin_rejected
5Attach owner_authority(principal), then route, SSE generator or websocket.accept

WebSocket failures are HTTP upgrade denials, never an accepted socket then a close frame. Malformed or revision-mismatched challenge: 400 invalid_challenge. HTTP carrying x-openprogram-ui-check: 409 ui_verification_active. Invalid non-loopback startup configuration: no listener.

Reachable without the owner credential

RouteGuard or content
Application shell, static assetsGET and HEAD; no token, secret, session id or user data in the HTML
GET/HEAD /docs, /docs/**Prebuilt site only: docs/_site in a checkout, openprogram/interfaces/server/_frontend/docs in a package (the wheel must include its index.html). No source scan or build on a request; staleness checks run only when a source worker registers routes.
POST /api/auth/bootstrapIts own body-token check
POST /api/auth/pairA single-use pairing code in the body
GET /api/auth/challengeListener proof, below; grants nothing
GET /healthzOnly {"status":"ok"}; details are behind authentication at /api/diagnostics
POST /hooks/<id>Scheduler webhook, guarded by the task's own key
GET /application-assets/…Sandboxed module imports with Origin: null; reads one immutable UI tree; Host still checked
Office hostServed by the office_editor application while enabled; WebSocket refused

All pass step 1, except the Office host, which office_editor checks. Everything else needs a credential: routes, raw files, providers, diagnostics, SSE, WebSocket.

Listener challenge and session check
  • Input: nonce of 32 bytes as 43-character base64url, optional revision of 40 lowercase hex that must equal the served revision.
  • Output: exactly 200 {"proof":"<43-character base64url>"}, where the proof is HMAC-SHA256(raw_token, "openprogram-web-challenge-v1\0" + nonce + "\0" + revision).
  • No credential is sent, and no token or diagnostics are returned.
  • GET /api/auth/session after sign-in: 204 means the cookie matches the live worker. On 401 the desktop shell exchanges a fresh in-memory token and repeats bootstrap instead of reconnecting with a stale cookie.
Response headers
ResponseHeaders
Static shellContent-Security-Policy with object-src 'none', base-uri 'none', frame-ancestors 'none', scripts from same origin plus generated hashes (no third-party scripts, no unsafe-eval); X-Frame-Options: DENY; Referrer-Policy: no-referrer; X-Content-Type-Options: nosniff
/docs/*.raw.htmlSame, but frameable by the same origin: SAMEORIGIN, frame-ancestors 'self'
Bootstrap, challenge, failures, protected API, credential status, SSECache-Control: no-store
Content-addressed static assetsLong-lived cache

Origin by request form

RequestCredentialOrigin
Cookie, unsafe HTTPRequiredMust equal request_origin; missing rejected
Cookie, WebSocketRequired before acceptMust equal request_origin; missing rejected
Cookie, safe HTTP or SSERequiredIf present, must equal request_origin; navigation may omit it
Bearer HTTP, SSE, WebSocketRequired (before accept on WebSocket)May be omitted; if present, must be request_origin or, with a valid token, another effective origin
Listener challengeNone; bounded nonce and revisionMay be omitted; if present, must equal request_origin
BootstrapToken in the bodyMust equal request_origin

The Bearer allowance exists because the Node TUI reaches loopback by IP while presenting the canonical origin. Safe methods are GET, HEAD and OPTIONS, and change no state. Sec-Fetch-Site: cross-site is always rejected. CORS headers control reading a response and are not authentication.

How origins are computed
  • web.host and web.allowed_origins come from the active profile's <state-dir>/config.json. web.host defaults to 127.0.0.1 and is needed only for direct LAN or VPN access.
  • An entry is only scheme://host[:port], http or https. Invalid: wildcards, paths, queries, fragments, user information, opaque origins, malformed IPv6, unspecified and multicast literals (so 0.0.0.0 and ::).
  • DNS names are IDNA- and case-normalized, IPv6 is bracketed, default ports are removed.
  • effective_origins = configured origins + on a loopback listener, http://localhost:<port> and the literal actually bound. A non-loopback listener gets no implicit origin. A request's Host is never promoted into the set.
  • Host must be one valid authority: duplicate, comma-joined, user-information, unspecified and multicast forms are rejected.
  • request_origin = scheme + parsed Host, with ws as http and wss as https. This one comparison covers exact origin and DNS rebinding.

Plaintext HTTP

AcceptedRange
DNSOnly exact localhost on a loopback listener
IPv4127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, 100.64.0.0/10
IPv6::1/128, fc00::/7, fe80::/10; no zone identifiers

Everything else needs HTTPS. An explicit list, not is_private: that property includes reserved addresses and excludes RFC 6598. Every non-loopback HTTP origin logs a startup warning, because an observer can read the credential. 100.64.0.0/10 is for encrypted overlays such as Tailscale; the address alone does not prove encryption, so the owner is responsible for that.

Deployment recipes

SSH tunnel

ssh -N -L 18100:127.0.0.1:18100 owner@remote-host
# on the remote host, once the tunnel is up
openprogram web auth-url --base-url http://127.0.0.1:18100

A different local port needs that exact http://localhost:<port> or loopback-literal origin in allowed_origins first.

Direct LAN or VPN

{
  "web": {
    "host": "0.0.0.0",
    "allowed_origins": ["http://192.168.1.20:18100"]
  }
}

Same-host HTTPS proxy

{
  "web": {
    "host": "127.0.0.1",
    "allowed_origins": ["https://agent.example.com"]
  }
}
PartyRule
OpenProgramStarts Uvicorn with proxy_headers=False. Never trusts X-Forwarded-For. Trusts X-Forwarded-Proto only from a raw loopback peer, one value, http or https; any other value is rejected, and it is ignored from other peers.
ProxyPreserves the public Host, overwrites the scheme, supports WebSocket Upgrade, disables SSE buffering
Missing scheme headerA DNS or public-IP origin stays HTTP and is refused with 403, so no insecure owner cookie can be set
nginx
map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}

server {
    listen 443 ssl;
    server_name agent.example.com;

    # ssl_certificate and ssl_certificate_key are owner-managed.

    location / {
        proxy_pass http://127.0.0.1:18100;
        proxy_http_version 1.1;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Forwarded "";
        proxy_set_header X-Forwarded-Host "";
        proxy_set_header X-Forwarded-For "";
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_buffering off;
        proxy_read_timeout 3600s;
    }
}
Caddy
agent.example.com {
    reverse_proxy 127.0.0.1:18100
}

Certificates are Caddy's job because the owner chose Caddy; OpenProgram does not call its APIs.

Stored secrets

Owner authentication authorizes replacing and using a secret, never reading it.

Config or environment keyProvider credential
ReadGET /api/config/key/{env_var}: {"has_value":false,"masked":""} or {"has_value":true,"masked":"sk-…abc4"}; undeclared name 404GET /api/providers/{provider}/credentials: each row's metadata with key_tail, the last four characters; no value or full key
PreserveOmit the name from api_keysRename, turn off, reorder and the strategy neither take nor change the key
ReplacePOST /api/config {"api_keys":{"ENV_VAR":"new"}}, one or more keys; 200 {"saved":true}POST /api/providers/{provider}/credentials/{cid}/replace {"api_key":"new"}, checked first; 200 {"ok":true,"credential":…,"check":…}; 400 for a rejected key or a sign-in; 404 if absent
CheckNot offeredPOST /api/providers/{provider}/credentials/check-key {"api_key":"new","replace"?:cid} stores nothing and answers {"ok":true,"check":…}; the add or replace after it reuses the check
DeleteDELETE /api/config/key/{env_var}, no body, idempotent; removes the stored key; 204. A variable set in the Worker's environment is not touched and still supplies its key.DELETE /api/providers/{provider}/credentials/{cid} removes that one credential; 200 {"ok":true}; 404 if absent; 409 naming the variable for an environment key
RevealA reveal query: 404No route reads a stored key
RuleDetail
400, nothing changedUnknown fields, unknown names, null, empty, non-printable or non-ASCII values, any displayed mask. Also a key validation definitively rejects; a transient or offline unknown result still saves.
MaskValues of 12 or more characters with ASCII visible parts: first 3, …, last 4, hiding at least 5. Otherwise a fixed ••••••••, so short lengths stay hidden.
FrontendNo reveal button, request or plaintext response field in provider detail, API-key settings or account manager
MCP serversMCPServerConfig.to_storage_dict() keeps full values for the file; to_response_dict() masks every env and headers value, bearer token and OAuth client secret as {has_value, masked} on /api/mcp/servers, /api/mcp/servers/{name}, /api/mcp/catalog, /api/mcp/catalog/diff. PATCH /api/mcp/servers/{name}: omitted preserves, new value replaces, explicit empty deletes; persisted after the restart succeeds. mcp_servers.json is 0600 through temp file, fsync and os.replace.
Project-file revealUnrelated file-navigation action under normal authentication; not a credential path

Startup

Validate configuration, generate and secure the token, write and check access.json, compute the fingerprint, then listen.

LoggedStartup error
Bind address and whether it is loopbackMalformed origin
Effective originsNon-loopback bind without an origin
Whether loopback-proxy scheme handling is activeUnsafe public HTTP origin
Token fingerprint, never the tokenUnsafe token file
Warning for non-loopback HTTPOccupied Web-process lock

Implementation status

StatusItems
ImplementedEverything above, except the items below
Not startedWeb Push for paired phones; the desktop App opening another computer's server as its own window. Settings → Devices (one list with paired phones, Add device with a pairing QR, rename, revoke, Same Wi-Fi and Anywhere) is in place: Remote OpenProgram machines
PartialBrowser-driven audit that no exported asset or navigation path embeds dynamic data; server-side tests cover responses and rendered HTML
Partialnginx and Caddy HTTPS, WebSocket and SSE smoke deployments; a real-listener origin matrix covers X-Forwarded-Proto and X-Forwarded-Host
Where each part lives and what tests it
PartCode and tests
Default bind, lifespan_web_config() and create_app() in openprogram/interfaces/server/server.py
Owner principal, tiersopenprogram/runtime/permissions/authority.py; tests/unit/providers/auth/test_authority_scope.py
Token, lock, cookieOwnerAuthState in openprogram/interfaces/server/owner_auth.py; test_process_token_is_owner_only_locked_and_replaced_after_release
Originscanonicalize_origin(), resolve_effective_origins() in openprogram/host/security/backend_endpoint.py; parameterized owner-auth tests
MiddlewareOwnerAuthMiddleware; owner-auth tests for HTTP mutation and pre-accept WebSocket
Bootstrapapps/web/lib/net/auth/owner-auth-bootstrap.ts, OwnerAuthBoundary; apps/web/scripts/settings/check-owner-auth-bootstrap.mjs, TypeScript check, production build
Paired devicesdevice_access.py, routes/identity/devices.py, openprogram/interfaces/cli/commands/services/web_devices.py; tests/component/webui/owner_auth/test_device_pairing.py, apps/web/tests/access/owner-auth-bootstrap.test.mjs
auth-urlopenprogram/interfaces/cli/commands/services/web.py, build_owner_auth_url(); tests/unit/webui/test_web_auth_url.py
Secretsopenprogram/host/security/credential_mask.py, credential_secrets; tests/component/programs/mcp/test_mcp_secret_non_retrievability.py, apps/web/scripts/settings/check-secret-non-retrieval.mjs
Internal clientsresolve_backend_endpoint() returns a challenge-verified BackendEndpoint, so the token is read only after proof; used by openprogram/interfaces/cli/ink.py and openprogram/interfaces/cli/commands/capabilities/mcp.py. The Node client sends Bearer only to backend URLs: apps/cli/src/utils/backend.ts, apps/cli/tests/startup/backendAuth.test.ts
Startup reportstart_server(); test_startup_logs_warn_about_plaintext_http_for_remote_origins
Real listenertests/component/webui/owner_auth/test_web_owner_auth_listener.py: real Uvicorn socket, HTTP, SSE, pre-accept WebSocket denial, bind-failure cleanup, wire-level rotation, two-profile cookies, reverse-proxy origins, token-leak sweep over bodies, headers, logs and rendered pages
Acceptance behaviours
  1. Loopback HTTP, SSE and WebSocket without a credential fail.
  2. A correct Bearer token works without Origin; a wrong one gets the same 401 and does nothing.
  3. Bootstrap clears the fragment before other fetches, accepts only the bounded JSON, sends no token in URL, query or Referer, derives the specified cookie, rejects a body token with Authorization, then opens HTTP, SSE and WebSocket.
  4. Cookie unsafe HTTP and WebSocket reject missing, opaque, cross-site and unlisted origins before action or accept.
  5. Foreign, duplicate, comma-joined, unspecified and multicast Hosts are rejected on loopback, direct bind and proxy; HTTP/WS and HTTPS/WSS give the same origin pairs.
  6. Default loopback accepts only its implicit origins; another SSH local port is rejected until configured.
  7. A non-loopback bind without valid origins refuses startup; the listed HTTP ranges pass with warnings; unspecified, multicast, documentation, benchmarking, reserved and global literals are rejected for HTTP.
  8. Uvicorn proxy rewriting is off; forwarded scheme is honoured only from a raw loopback peer; forged X-Forwarded-For changes nothing; public bootstrap without HTTPS fails; direct WS and Caddy WSS give the expected origin.
  9. A second process for one state directory cannot change the live token or snapshot; bind failure removes only the failing process's files.
  10. Restart rotates the token and invalidates the old Bearer and cookie.
  11. A malformed Authorization header never falls back to a cookie.
  12. Static assets and /healthz contain no token, session, filesystem or credential data or diagnostics.
  13. Headers reject framing; protected responses are no-store; 401 advertises the Bearer realm.
  14. Docs read without authentication from prebuilt files in checkouts and packages, with no scan or build; Host still applies; unsafe methods and private APIs are excluded.
  15. Reveal returns 410 and 404; replace, preserve and delete follow the exact schemas; 8–11-character values use the fixed mask; masks are never accepted; frontend types have no reveal or full-secret field.
  16. nginx and Caddy carry authenticated HTTP, SSE and WebSocket over HTTPS with a loopback backend.
  17. Channel messages keep paired and gain no owner authority.
  18. Two profile servers on one hostname and different ports have distinct cookies and authenticate independently.
  19. The ownership probe checks PID, port and snapshot, sends only a fresh nonce, validates the versioned proof, optionally binds the revision, disables ambient HTTP proxies and never sends or logs the token. Foreign listeners and stale or mismatched snapshot, port, proof or revision are not the owner server.
Open-source survey

Systems in OpenProgram's design corpus plus others with relevant Web deployment, authentication, proxy or secret handling. Not exhaustive.

SystemDesignTakenRejected or not applicable
OpenClawLoopback-first gateway, authenticated non-loopback, explicit origins, SSH and proxy guidance, Host and trusted-proxy controls (remote, security, Control UI)Exact origins, fragment bootstrap, SSH and proxy patterns, proxy trust limitsExternal identity replacing the token
Jupyter ServerNotebook 4.3 made generated tokens the default and handed them to the opened browser; now token or cookie, HTTPS for public use, XSRF and WebSocket Origin checks (changelog, security, public server). The closest single-owner experience; a precedent for the experience, not identical threats.Automatic token entry, cookie transitionQuery tokens (fragment instead), password mode
Hermes AgentLoopback default; non-loopback needs a password or OAuth provider and fails without one; --insecure deprecated; single-use WS ticket; redacted listings with an authenticated reveal route (dashboard)External fail-closed behaviour, redacted secret viewsProvider accounts, second WS ticket, reveal
Agent ZeroOptional single login, session cookie, CSRF and WS Origin checks, reverse proxies, built-in tunnels, masked settings (install, VPS)Cookie, CSRF, Origin and WS checks together; masked-only updatesOptional authentication, built-in public tunnels
OpenHandsSession API key across HTTP and WS; SSH and nginx self-hosting; other editions add accountsCommon HTTP and WS key, loopback backendToken in public HTML or browser storage, plaintext secret retrieval
opencodeLoopback default, optional Basic auth, CORS origins, short-lived PTY ticket (server, network)Loopback defaultOptional authentication; second ticket, since the HttpOnly cookie already avoids WS query credentials
Open WebUIMulti-user roles; nginx and Caddy guidance for HTTPS, Upgrade, SSE bufferingProxy mechanicsSignup, accounts, JWT sessions, groups, RBAC
DifyWorkspace and account roles; credential responses obfuscated with hidden-value updatesMasked-only responses, explicit replacementTenant and role layers
LibreChatRegistration, admins, role access, JWT (authentication, nginx). Shows what real multi-user design needs.Proxy detailsIdentity data model
AnythingLLMSeparate single- and multi-user modes; single-user bypasses auth without a password; multi-user adds role checksSingle-owner conceptOptional authentication
AutoGen StudioLoopback default; default auth is none; optional OAuth or JWT; research prototypeLoopback defaultQuery or localStorage credentials, post-accept WS auth, optional auth
Codex CLIcodex app-server over stdio and experimental WebSocket; enrollment and pairing (app-server); no owner-hosted browser UINoneService-mediated remote control: OpenProgram runs no relay
WeClawHTTP API on 127.0.0.1:18011 by default, listen address changeable; no owner browser UI contractNoneNot a remote-Web precedent
SWE-agentCommand-line agent; documentation shows no owner Web UINoneNot applicable
pi-monoTUI, SDK, RPC mode; no remote Web server contractNoneNot applicable
pi-aiProvider transport libraryNoneNot applicable

Three kinds of remote identity

KindExamplesOpenProgram
Instance credentialJupyter, OpenClaw, OpenHandsUsed: one root secret in two transport forms, one bootstrap, one set of checks; no WebSocket ticket, session database or OAuth flow
Application accountsOpen WebUI, Dify, LibreChat, multi-user AnythingLLMRejected: state and policy the product does not need
Device pairingT3 Code, DSH Mobile, OpenClaw paired devicesUsed: a one-time code buys one revocable device credential on the server the device already reaches
Managed remote controlHosted tunnels, relaysRejected: needs a service OpenProgram does not run

Permission model · Speaker identity · MCP server

Last updated · 2026-11-25