Issue temporary tokens in Node
You need a Deepgram Voice Agent ID, a project API key that can grant temporary tokens, and Node 22 or newer. Save this astoken-server.mjs. Run node --env-file=.env.local token-server.mjs with DEEPGRAM_API_KEY set in the server environment. A live call uses your Deepgram account.
Connect Vite to the token server
Add thisserver option to your existing vite.config.ts. Open the app at http://localhost:5173. The proxy preserves the browser origin and sets the upstream Host header to the loopback server.
Show the conversation alongside the orb
Runnpm install orb-ui @deepgram/agents@0.1.2. Save this component as DeepgramAssistant.tsx and render it with your agent ID. The adapter creates a fresh session and player on each start. Each new call also begins a fresh transcript.