Skip to main content

Self-hosting overview

An overview of self-hosting options for LiveKit servers.

Overview

Self-host LiveKit servers for full control over your infrastructure, data, and configuration. Self-hosting enables you to deploy LiveKit on your own infrastructure, whether for local development, production deployments on virtual machines or Kubernetes, or distributed multi-region setups.

Self-hosting gives you complete control over your deployment, allowing you to customize configuration, manage your own data, and scale according to your specific needs. You can deploy LiveKit servers on a variety of platforms, from local development environments to production-grade infrastructure.

Comparing self-hosted to LiveKit Cloud

When building with LiveKit, you can either self-host the open-source server or use the managed LiveKit Cloud service:

Self-hostedLiveKit Cloud
Realtime media (audio, video, data)Full supportFull support
Egress (recording, streaming)Full supportFull support
Ingress (RTMP, WHIP, SRT ingest)Full supportFull support
SIP & telephonyFull supportFull support including native telephony support for fully managed LiveKit Phone Numbers
Agents frameworkFull supportFull support, including managed agent hosting.
Agent BuilderN/AIncluded
Built-in inferenceN/AIncluded
Who manages itYouLiveKit
ArchitectureSingle-home SFUGlobal mesh SFU
Connection modelSingle server per roomEach user connects to the nearest edge.
Max users per roomUp to ~3,000No limit
Analytics & telemetryCustom / external.LiveKit Cloud dashboard
Uptime guaranteesN/A99.99%

Self-hosting components

Deploy and configure your self-hosted LiveKit deployment with these components.

ComponentDescriptionUse cases
Running locallyGet LiveKit running locally for development and testing with minimal setup.Local development, testing, and prototyping.
DeploymentDeploy LiveKit servers to production with SSL, load balancing, and TURN configuration.Production deployments, secure configurations, and network setup.
Virtual machinesDeploy LiveKit servers on virtual machines for production use.VM-based deployments, cloud infrastructure, and traditional server setups.
KubernetesDeploy LiveKit servers on Kubernetes clusters for scalable, containerized deployments.Container orchestration, scalable deployments, and cloud-native infrastructure.
Distributed multi-regionDeploy LiveKit servers across multiple regions for global distribution.Global deployments, low-latency access, and multi-region redundancy.
Firewall configurationConfigure firewalls and network settings for your LiveKit deployment.Network security, port management, and access control.
BenchmarksMeasure and optimize performance of your self-hosted LiveKit deployment.Performance testing, capacity planning, and optimization.
EgressSet up egress services for recording and streaming from your self-hosted deployment.Recording rooms, streaming to platforms, and media export.
IngressSet up ingress services to bring external media sources into your LiveKit rooms.RTMP ingest, WHIP streams, and external media integration.
SIP serverDeploy and configure SIP servers for telephony integration with your self-hosted LiveKit.Phone call integration, SIP trunking, and telephony features.

In this section

Learn how to self-host LiveKit servers: