…
…

The LiveKit icon, the name of the repository and some sample code in the background.

Slack community Twitter Follow License


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

More

  • Docs, one feature per page
  • Contributor docs: architecture, builds, and tests
  • From source: git clone, then uv sync --all-packages (needs Rust); make check, uv run pytest --unit
  • Issues with the v2 label; licensed Apache-2.0


LiveKit Ecosystem
Agents SDKsPython · Node.js
LiveKit SDKsBrowser · Swift · Android · Flutter · React Native · Rust · Node.js · Python · Unity · Unity (WebGL) · ESP32 · C++
Starter AppsPython Agent · TypeScript Agent · React App · SwiftUI App · Android App · Flutter App · React Native App · Web Embed
UI ComponentsReact · Android Compose · SwiftUI · Flutter
Server APIsNode.js · Golang · Ruby · Java/Kotlin · Python · Rust · PHP (community) · .NET (community)
ResourcesDocs · Docs MCP Server · CLI · LiveKit Cloud
LiveKit Server OSSLiveKit server · Egress · Ingress · SIP
CommunityDeveloper Community · Slack · X · YouTube

S
Description
A framework for building realtime voice AI agents 🤖🎙️📹
Readme
314 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 99.6%
C 0.3%
Makefile 0.1%