LiveKit Setup
LiveKit handles real-time audio between the browser, voice agent, and phone calls.Setup Steps
- Create an account at LiveKit Cloud
- Create a new project
- Copy your API Key, API Secret, and WebSocket URL
- Add credentials via the Arkenos Dashboard at API Keys > LiveKit
LiveKit credentials are stored encrypted in the database and shared across all services automatically. The agent fetches them from the backend on startup — no
.env files needed for LiveKit.How It Works
- Browser sessions: The frontend generates a LiveKit access token and connects via WebRTC
- Agent dispatch: When a room is created, LiveKit dispatches the
arkenos-agentworker - Phone calls: Twilio SIP trunks route calls through LiveKit’s SIP bridge (see Telephony Setup)
Verify Your Setup
After adding credentials, verify everything works:- Start all three services (frontend, backend, agent)
- Go to the Preview page in the dashboard
- Select an agent and click Start Preview
- You should hear the agent greet you within a few seconds
- LiveKit credentials are configured at API Keys and the Test Connection button shows success
- The
LIVEKIT_URLformat is correct (wss://prefix) - The agent terminal shows
Worker registeredon startup - The agent terminal shows
Injected N keys from backend dashboardon startup