mirror of
https://github.com/livekit/agents.git
synced 2026-12-06 04:58:42 +00:00
988bd6bddbdc172fd39c42b07bbc58d229d431ca
…
…
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 python-dotenv
# or put these in a .env next to the example's main.py
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 && lk agent dev
Pin the beta's exact version rather than allowing pre-releases, which would also take pre-releases of its dependencies.
For a terminal conversation, run the example with:
lk agent console
Examples
frontdesk: dental appointment bookinghotel-receptionist: hotel bookings, lookups and cancellationsairline-support: airline customer care as a graph
More
- Docs, one feature per page
- Contributor docs: architecture, builds, and tests
- From source:
git clone, 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%