mirror of
https://github.com/livekit/agents.git
synced 2026-12-04 08:50:09 +00:00
docs/agents-2.0-match-code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Warning
Agents 2.0 beta, on LiveKit Staging only. For the stable framework, use v1.
A framework for agents that talk with people by voice and by text, across days, and get real work done behind it.
Getting started
You need a LiveKit staging project (its URL, API key and secret from the dashboard) and Python 3.11+.
git clone -b agents-2.0 https://github.com/livekit/agents && cd agents # the examples
uv venv -p 3.12 && source .venv/bin/activate
uv pip install "livekit-agents==2.0.0b1" livekit-plugins-openai uvicorn
export LIVEKIT_URL=wss://<project>.staging.livekit.cloud
export LIVEKIT_API_KEY=<key>
export LIVEKIT_API_SECRET=<secret>
export OPENAI_API_KEY=<key> # for calls
export LIVEKIT_WORKER_INSECURE=1 # temporary, staging only
export LIVEKIT_AGENT_DEPLOYMENT=default # temporary, staging only
cd examples/frontdesk && python main.py dev
Pin the beta's exact version rather than allowing pre-releases, which would also take pre-releases of its dependencies.
Then talk to it by text or by call in the console, from two more terminals with the same environment:
cd console && python console_api.py
cd console && pnpm install && pnpm dev # http://localhost:3000
Examples
frontdesk: dental appointment bookinghotel-receptionist: hotel bookings, lookups and cancellationsairline-support: airline customer care as a graphuse-cases: one agent per idea
More
- Docs, one feature per page
- Migrating from v1:
npx skills add livekit/agents --skill migrate-to-v2 - From source:
git clone --recurse-submodules, thenuv sync --all-packages(needs Rust);make check,uv run pytest --unit - Issues with the
v2label; licensed Apache-2.0
| LiveKit Ecosystem | |
|---|---|
| Agents SDKs | Python · Node.js |
| LiveKit SDKs | Browser · Swift · Android · Flutter · React Native · Rust · Node.js · Python · Unity · Unity (WebGL) · ESP32 · C++ |
| Starter Apps | Python Agent · TypeScript Agent · React App · SwiftUI App · Android App · Flutter App · React Native App · Web Embed |
| UI Components | React · Android Compose · SwiftUI · Flutter |
| Server APIs | Node.js · Golang · Ruby · Java/Kotlin · Python · Rust · PHP (community) · .NET (community) |
| Resources | Docs · Docs MCP Server · CLI · LiveKit Cloud |
| LiveKit Server OSS | LiveKit server · Egress · Ingress · SIP |
| Community | Developer Community · Slack · X · YouTube |
Languages
Python
99.6%
C
0.3%
Makefile
0.1%