Demo mode runs a simulated loop in the browser. Live mode points at /api/tasks— same origin, using your signed-in session. In production the app proxies the token server-side — don't paste a real token into a shared browser.
Health, queue and history are read from the front door. This UI is the same module that becomes a per-project panel in the master control room — projects are namespaced in the shared Postgres, so one dashboard can listen in on many.