The complete optalocal.com platform — 3 core apps, 8 management sites, one Supabase project, one Mac Studio inference host.
┌──────────────────── User Devices ──────────────────────────────┐ │ MacBook / Windows PC / Linux │ │ │ │ opta chat │ opta tui │ opta do Opta Code Desktop │ │ opta daemon (127.0.0.1:9999) (Tauri + React, :5173) │ │ │ HTTP v3 + WebSocket │ │ └─────────┼───────────────────────┼──────────────────────────────┘ │ LAN: 192.168.188.x │ ┌─────────▼───────────────────────▼──────────────────────────────┐ │ Mono512 Mac Studio M3 Ultra · 192.168.188.11 · 512GB RAM │ │ │ │ Opta LMX (port 1234) │ │ MLX primary │ GGUF fallback │ mDNS _opta-lmx._tcp.local │ └─────────────────────────────────────────────────────────────────┘ │ HTTPS ┌─────────▼───────────────────────────────────────────────────────┐ │ Vercel Edge Network — *.optalocal.com │ │ │ │ optalocal.com (1T) lmx.optalocal.com (1L) │ │ init.optalocal.com (1O) status.optalocal.com (1S) │ │ accounts.optalocal.com (1R) help.optalocal.com (1U) │ │ learn.optalocal.com (1V) admin.optalocal.com (1X) │ └─────────────────────────────────────────────────────────────────┘ │ Supabase client ┌─────────▼───────────────────────────────────────────────────────┐ │ Supabase (shared project) — SSO for all *.optalocal.com │ │ Auth │ Postgres DB │ Vault blob store │ Edge Functions │ └─────────────────────────────────────────────────────────────────┘
Layered pipeline: CLI daemon is the hub — it owns all session state, permission gating, and event persistence. LMX is the inference leaf (stateless per-request). Code Desktop is a display client that adds native OS integration (system tray, Tauri IPC, native dialogs). The three apps can run independently or together.
opta tui or Code DesktopPOST /v3/sessions/:id/turns to daemonPOST /v1/chat/completions on LMXGET /v3/sessions/:id/streamtool_call in the completion responsetool_result messagesopta account login opens accounts.optalocal.com in browservault.pull operation triggeredBrowser / CLI accounts.optalocal.com Supabase │ │ │ │ GET /auth/callback?code=… │ │ │──────────────────────────────►│ │ │ │ exchangeCodeForSession(code) │ │ │───────────────────────────────►│ │ │◄─── { session, user } ─────────│ │ │ │ │ │ Set-Cookie: sb-* on │ │ │ domain=.optalocal.com │ │◄──────────────────────────────│ │ │ Redirect to destination │ │ │ │ │ Other sites (1L, 1S, 1T…) │ │ GET /api/route │ │ │ Cookie: sb-* auto-sent ──────┼──────────────────────────────►│ │ │ │ SSO!