Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

livekit

> 开发工具
Open source

End-to-end realtime stack for connecting humans and AI

20.1K stars0 likes0 views
WebsiteGitHub

About

End-to-end realtime stack for connecting humans and AI

LiveKit: Realtime infrastructure for voice, video, and AI agents

LiveKit is an open source platform for building voice, video, and physical AI agents. This repository is the LiveKit server: a scalable, distributed WebRTC SFU that moves realtime audio, video, and data between people, devices, and AI models. The SDKs, agents frameworks, and companion services are linked in the table at the bottom of this page.

LiveKit's server is written in Go, using the awesome Pion WebRTC implementation.

[!IMPORTANT] If you're building Voice AI, LiveKit Agents is the SDK for code-first realtime voice agents. STT, LLM, TTS, turn detection, expressive speech, keyterm accuracy, tool usage, and telephony all come bundled in the framework. It's available in both Python and Node.js.

…

Models come from LiveKit Inference with no per-provider API keys, and LiveKit Cloud handles deployment and observability. Visit the docs for more info at docs.livekit.io/agents.

Used in production by

LiveKit carries billions of calls a year for companies including Salesforce, Nvidia, Oracle, SAP, Deutsche Telekom, Spotify, Tinder, Coursera, Headspace, Skydio, Retell, Decagon, Cresta, and HeyGen. Read how Assort Health, Playback, and Polymath Robotics use it, or see more customers.

Features

  • Scalable, distributed WebRTC SFU (Selective Forwarding Unit)
  • People, devices, and AI agents join the same room as participants, with agent dispatch to route agents in automatically or on demand
  • Modern, full-featured SDKs for web, mobile, desktop, embedded, and server
  • Built for production, supports JWT authentication
  • Robust networking and connectivity, UDP/TCP/TURN
  • Easy to deploy: single binary, Docker or Kubernetes
  • Advanced features including:
    • speaker detection
    • simulcast
    • selective subscription
    • moderation APIs
    • end-to-end encryption
    • SVC codecs (VP9, AV1)
    • data tracks for low-latency telemetry and teleoperation
    • telephony over SIP
    • webhooks
    • distributed and multi-region

Documentation & Guides

https://docs.livekit.io

Working with a coding agent? Give it the LiveKit Docs MCP server, or start with the coding agents guide.

Live Demos

  • Talk to a voice agent built with LiveKit Agents
  • LiveKit Meet (source)
  • Spatial Audio (source)
  • Livestreaming from OBS Studio (source)

Install

[!TIP] We recommend installing LiveKit CLI along with the server. It lets you access server APIs, create tokens, generate test traffic, and scaffold and deploy agents.

The following will install LiveKit's media server:

MacOS

bash
brew install livekit

Linux

bash
curl -sSL https://get.livekit.io | bash

Windows

Download the latest release here

Getting Started

Starting LiveKit

Start LiveKit in development mode by running livekit-server --dev. It'll use a placeholder API key/secret pair.

API Key: devkey
API Secret: secret

To customize your setup for production, refer to our deployment docs

Creating access token

A user connecting to a LiveKit room requires an access token. Access tokens (JWT) encode the user's identity and the room permissions they've been granted. You can generate a token with our CLI:

bash
lk token create \
    --api-key devkey --api-secret secret \
    --join --room my-first-room --identity user1 \
    --valid-for 24h

Test with example app

Head over to our example app and enter a generated token to connect to your LiveKit server.

Once connected, your video and audio are now being published to your new LiveKit instance!

Simulating a test publisher

bash
lk room join \
    --url ws://localhost:7880 \
    --api-key devkey --api-secret secret \
    --identity bot-user1 \
    --publish-demo \
    my-first-room

This command publishes a looped demo video to a room. Due to how the video clip was encoded (keyframes every 3s), there's a slight delay before the browser has sufficient data to begin rendering frames. This is an artifact of the simulation.

Adding an agent

Agents join rooms as participants, the same way a browser or a phone does. Follow the Voice AI quickstart to build one. An agent connects to a self-hosted server the same way it connects to LiveKit Cloud; when running without Cloud, use model plugins in place of LiveKit Inference.

Deployment

Use LiveKit Cloud

LiveKit Cloud is the fastest and most reliable way to run LiveKit. It runs in 19+ regions with 99.99% uptime and adds agent hosting, model inference, telephony, and observability on top of the server. The Build plan is free, with no credit card required.

Sign up for LiveKit Cloud.

Self-host

Read our deployment docs for more information. Official Docker images and Helm charts are available.

Building from source

Pre-requisites:

  • Go 1.26+ is installed
  • GOPATH/bin is in your PATH

Then run

bash
git clone https://github.com/livekit/livekit
cd livekit
./bootstrap.sh
mage

Contributing

We welcome your contributions toward improving LiveKit! Please join us on Slack or in the Developer Community to discuss your ideas and/or PRs.

License

LiveKit server is licensed under Apache License v2.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

Issues· 191 open

View all issuesOpen on GitHub
  • #883

    Dependency Dashboard

    Updated Sep 30, 2026
  • #4924

    Embedded TURN relays to the node's own public IP and to any internet host by default (and over TCP when TLS is on)

    Updated Sep 29, 2026
  • #4905

    num_participants in room updates counts hidden participants

    Updated Sep 29, 2026
  • #4894

    Agent jobs terminated by the server are never released (leaks psrpc handlers with agents-js)

    Updated Sep 22, 2026
  • #4887

    Initial RTC connection retry can terminate its own agent job when replacing the same participant identity

    Updated Sep 21, 2026
  • #4813

    abs-capture-time extension is gated on an RTCP Sender Report and unconditionally rewritten, breaking verbatim end-to-end latency measurement

    Updated Sep 19, 2026
  • #4825

    SUBSCRIBER transport SCTP negotiation never completes for ESP32 client (server never replies to SCTP INIT), while PUBLISHER transport succeeds every time

    Updated Sep 14, 2026
  • #4725

    v1.13.5: psrpc room-topic subscription goroutine/memory leak under high room churn

    Updated Sep 13, 2026
  • #4737

    Outbound SIP: last word of voicemail clipped on hangup

    bugUpdated Sep 10, 2026
  • #4814

    feat: support explicit external IP:port for RTC ICE candidates behind non-1:1 NAT

    Updated Sep 8, 2026

> Tags

Gogolangmedia-serversfuvideo

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具