How it works
The server opens each Realtime session with the key, model, voice and persona prompt; the audio then runs over WebRTC between your browser and OpenAI. The browser sends only a persona id and the conversation, and never chooses the model, voice or system prompt. Every API route goes through one guard: same-origin check, the owner's sign-in, a per-client rate limit and Zod validation. CALL_MAX_MINUTES caps each call, and at most two calls run at once.


