
LiveKit
Real-time voice and video infrastructure on open source WebRTC
Replaces Twilio, Liveperson, Retell Ai

Who it's for
Use LiveKit Agents when the agent must talk, listen, interrupt politely, and share state with a web or mobile client in realtime.
Skip if your workflow is asynchronous support chat or batch content generation.
The SIP integration path makes it suitable for inbound or outbound calling experiences where the AI participant needs model tools and call audio.
Skip if you need a call-center suite with workforce management and reporting out of the box.
The problem
Realtime AI agents break down when the media layer, speech pipeline, model calls, and client experience all live in separate systems. Teams often start with a chat API, then discover they need WebRTC rooms, phone calls, interruption handling, and a way to route users to server-side agents. The result is a fragile stack where latency and handoff bugs damage the conversation experience.
How it works
Runs programmable server-side participants inside LiveKit rooms, so an AI agent can join a session like any other audio or video participant.
Connects STT, LLM, TTS, realtime APIs, and turn detection plugins from one agent framework instead of a custom glue layer.
Works with LiveKit SIP, RPC, and data APIs, which lets agents place or receive calls and exchange structured events with client apps.
Features
- Realtime agent participants
- Speech and model integrations
- Telephony and client data support
How to install
Install the Python agent framework in a virtual environment, then connect it to your LiveKit deployment and model providers.
pip install "livekit-agents[openai,silero,deepgram,cartesia,turn-detector]"Recommended for this setup
Strengths
- Built for low-latency media: The framework sits on LiveKit WebRTC infrastructure, so voice and video interaction are first-class parts of the agent instead of an add-on to text chat.
- Apache-2.0 agent framework: The repository is Apache-2.0, which gives teams a permissive base for commercial agent applications and self-hosted deployments.
Trade-offs
- Realtime systems require infrastructure discipline: Voice agents need media servers, model provider keys, job dispatch, and latency monitoring. A simple chatbot platform is easier if your product only needs text.
Tech stack
FAQ
Yes. The LiveKit Agents repository is Apache-2.0 licensed, and the README points to self-hosting the wider LiveKit stack.
Yes. The framework is built for realtime voice and multimodal agents with STT, TTS, LLM, and turn-detection integrations.
It can replace parts of a paid realtime media or telephony stack when you want control over the WebRTC and agent layer. Twilio may still fit teams that only want managed phone infrastructure.