Long Chen 317f826957 fix(console): the saved microphone is a preference, not a requirement
The call re-applied the microphone picked last time as an exact device
constraint. When that device was gone or its id had changed, every
microphone request failed with OverconstrainedError, and with a single
microphone the picker that could replace it is hidden. A missing saved
microphone now falls back to the default one.
2026-10-31 09:42:57 +08:00
2026-10-12 13:55:33 -07:00
2026-10-12 13:55:33 -07:00
2026-10-12 13:55:33 -07:00
2026-10-12 13:55:33 -07:00
2026-10-12 13:55:33 -07:00
…
…
…
2026-10-12 15:39:41 -07:00

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

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

More

  • Docs, one feature per page
  • Migrating from v1: npx skills add livekit/agents --skill migrate-to-v2
  • From source: git clone --recurse-submodules, 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%