← Back to Leaderboard
Alivekit

livekit/agents

Python framework for real-time voice agents over WebRTC and SIP

Engineering Health (Methodology)
A+ · 100/100
Maintenance Activity
● Updated today
Latest Release
livekit-agents@1.9.1
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption25/25
Release Cadence20/20
License Clarity20/20
Self-HostedMCPAPI
Total Stars
★ 15,468
24h Growth
+11
7d Growth
+107
Forks
4,242

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

livekit/agents Star History (2024-01-14 - 2026-12-04) ALL-TIME STAR HISTORY (2024-01 – 2026-12) +15.5k in 1055d · avg +15/day 16.3k 8.2k 0 2024-01-14: ★ 12024-03-23: ★ 1402024-06-01: ★ 4322024-08-10: ★ 7152024-10-19: ★ 3,4072024-12-28: ★ 4,2702025-03-08: ★ 5,0862025-05-17: ★ 5,8052025-07-26: ★ 6,6902025-10-04: ★ 7,5392025-12-13: ★ 8,3142026-02-21: ★ 9,2402026-05-02: ★ 10,1832026-07-11: ★ 11,2312026-09-19: ★ 14,1982026-12-04: ★ 15,468 ★ 15.5k 2024-01 2025-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

LiveKit Agents is a Python SDK and server-side runtime for programmable participants in LiveKit rooms. AgentServer coordinates job scheduling and dispatch. An entrypoint registered with @server.rtc_session() receives a JobContext and starts an AgentSession against ctx.room. The session manages the interaction; the Agent supplies instructions and tools. A tool can return another agent to hand off control while retaining typed session state in userdata.

The repository separates livekit-agents/ from livekit-plugins/ in a uv workspace. A session can compose STT, LLM, and TTS stages or use a provider's Realtime API. The LiveKit media server handles WebRTC transport separately from the Python agent process. RPCs and Data APIs connect client-side features to the agent, while Python function tools and native MCP integration connect agent logic to external capabilities.

Key Capabilities & Differentiators

The composable voice path can use Deepgram Nova-3 for multilingual transcription, Gemma through LiveKit Inference for language generation, and Cartesia Sonic-3 for synthesis. An alternative uses openai.realtime.RealtimeModel. Voice activity detection and transformer-based semantic turn detection serve different purposes: one detects speech activity, while the other helps determine whether the speaker has finished a turn.

The framework supports inbound and outbound telephony through LiveKit SIP, with examples spanning multi-user transcription, Gemini Live vision, and video avatars. Its session test API can feed input, assert the order of function calls and results, and use a model judge to assess reply intent. These tests cover conversation behavior; validate microphone audio, WebRTC delivery, and SIP routing separately before deploying.

Trade-offs & Limitations

Compared with a direct integration to a single provider's Realtime API, LiveKit Agents adds room-based dispatch, cross-platform WebRTC, SIP, and a shared session abstraction. That extra layer pays off when the same workflow must run across app and phone clients or when STT, LLM, and TTS must be replaceable independently. For one client and one provider, direct integration may be simpler if the application already handles transport and session lifecycle.

A staged pipeline gives each provider a clear role, but it also introduces service boundaries that can affect end-to-end latency, billing, and failure handling. A Realtime API reduces model-side integration points but ties more of the interaction to one provider. Self-hosting the media server and workers shifts capacity planning and operations to your team; it does not relocate hosted inference. Apache-2.0 covers the framework, not every model or service you connect to it.

Hardware & Deployment Guide

Install the Python package with the extras you need, for example pip install "livekit-agents[openai,deepgram,cartesia]". Use python myagent.py console to exercise local audio input and output without a LiveKit media server; configured remote models still need network access. For room-based testing, python myagent.py dev enables hot reload and connects to LiveKit Cloud or a self-hosted LiveKit server with LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET; add provider credentials as required. Use python myagent.py start for production mode.

Size Python workers and self-hosted media infrastructure separately against expected concurrency. Local inference adds model-dependent compute and memory requirements; no fixed GPU or VRAM target applies across configurations. Operationally, 1.9.0 added multi-stage answering-machine detection for screeners, voicemail, IVR, and hold queues, with replies configurable per stage. Version 1.9.1 added an optional first-token timeout to switch LLMs when a connection stays open without yielding text or a tool call.

Job lifecycle: AgentServer coordinates jobs; @server.rtc_session() binds a session entrypoint to a LiveKit room.
Model composition: Run a Deepgram STT → Gemma LLM → Cartesia TTS pipeline, or use openai.realtime.RealtimeModel for the conversational model.
Client integration: WebRTC handles room media, LiveKit SIP connects phone calls, and RPCs and Data APIs carry application data.
Conversation control: Transformer-based turn detection helps decide when to reply; tool-driven handoffs can carry typed session state.
Tooling and verification: Native MCP integration exposes tools, while AgentSession.run() tests can assert tool calls and judge reply intent.
Failure handling: Version 1.9.1 adds opt-in first_token_timeout for stalled LLM output, including during fallback recovery probes.
Best For

Teams building real-time voice or multimodal applications across web, mobile, and phone that need room dispatch, provider choice, or in-session agent handoffs.

Skip If

You need only text chat, already have transport and sessions covered with a single-provider integration, or require an offline turnkey stack with no model or media setup.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedMCPAPI
pip install "livekit-agents[openai,deepgram,cartesia]"

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
agents ★15.5k+107PythonApache-2.0Python framework for real-time voice agents over WebRTC and SIP
openai-agents-python31k+126PythonMITEmbeddable Python SDK for multi-agent orchestration across text, voice, and sand
browser-use122.7k+477PythonMITPython REPL and CDP for adaptive browser automation
langgraph45.8k+293PythonMITPython graph orchestration for stateful, resumable agents and workflows

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/livekit/agents.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

livekit/agents Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about agents

How does a client or phone call connect to the Python agent?

AgentServer coordinates jobs, and an entrypoint registered with @server.rtc_session() starts an AgentSession against ctx.room. Clients join through a LiveKit SDK or connect by phone through LiveKit SIP. Use RPCs or the Data APIs for application data; use Python function tools or MCP for capabilities the agent can invoke.

Do the agent workers need a GPU, and how should I size them?

There is no fixed GPU or VRAM requirement for the framework. With hosted inference, size the Python workers for concurrent sessions and audio processing, and capacity-test the media server separately if you self-host it. If you run models locally, CPU, GPU, and memory requirements depend on the models you choose. Test with the actual provider mix and expected concurrency before committing capacity.

Can I self-host LiveKit Agents in a commercial product?

Yes. Apache-2.0 permits commercial use and self-hosting of the framework, subject to its license terms, including applicable notice obligations when redistributing. Review the separate MODEL_LICENSE, the terms for each selected model and hosted API, and any telephony terms. Self-hosting the worker and media server does not keep audio or transcripts on-premises if the configured providers process them externally.

When is LiveKit Agents a better choice than integrating a Realtime API directly?

Use a provider's Realtime API directly if you need one model and one client path and can handle session and transport logic yourself. Choose LiveKit Agents if you need room-based dispatch, WebRTC clients, SIP, interchangeable speech and language providers, or agent handoffs. The deciding factor is how much session and media infrastructure you would otherwise have to build and operate.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining livekit/agents? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature livekit/agents on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare