Skip to content
Gauge

ax-check.com

LiveKit

livekit.io

ax-check.com

Checked 20 November 2026

A

100/100

Agents need your login

LiveKit's quickstart and pricing are clear and ready to use.

Docs give install, auth, and run steps with working code, and the pricing page states all plan costs, units, and limits openly.

1 fix to start with

Concrete changes, backed by what we found.

Onboarding

Give agents a clear login handoff and a way to resume setup.

Agents cannot progress through onboarding without human help. Provide an agent-accessible path through authentication and setup.

Recorded coding sessions

Same task, 3 models, no livekit.io account. Recorded 20 November 2026 on Pi.

3 recorded · 1m 26s

1m 26s · recorded

Session findings

Select a finding to see it in context.

piv0.84.2
modelDeepSeek V4.1 Flashcwd/sandbox/repo
Help me build a simple example using LiveKit. Tell me how pricing works, and briefly tell me whether this product will be easy for you to manage. Let me know if you get blocked. If this product has no developer workflow you can act on, say so plainly and stop. Stay light: use the hosted product through its SDK or API. Do not start local service stacks or wait for long-running commands; if the quickstart requires either, say so plainly and stop.
Thinking…

The user wants help building a simple example using LiveKit. Let me understand the task. They want:

  1. Build a simple example using LiveKit
  2. Tell them how pricing works
  3. Briefly tell whether the product will be easy for me to manage
  4. Let me know if I get blocked
  5. If the product has no developer workflow I can act on, say so plainly and stop
  6. Stay light: use the hosted product through its SDK or API
  7. Do not start local service stacks or wait for long-running commands; if the quickstart requires either, say so plainly and stop

Let me explore the environment first. I should check if LiveKit is available, and research pricing. Let me be efficient.

Let me look at the current directory and see what's available. I should also check network access, API keys, etc.

Let me start by exploring.

I'll start by exploring the environment and understanding what's available for LiveKit.

pwd && ls -la && echo "---NODE---" && node --version 2>/dev/null; npm --version 2>/dev/null; python3 --version 2>/dev/null; echo "---ENV---" && env | grep -iE 'livekit|LIVEKIT' | sed 's/=.*/=<set>/' ; echo "---done---"
/sandbox/repo
/sandbox/repo
total 16
drwxr-xr-x 3 root root 4096 Sep 18 08:00 .
drwxr-xr-x 7 root root 4096 Nov 20 02:24 ..
drwxr-xr-x 8 root root 4096 Sep 24 20:05 .git
-rw-r--r-- 1 root root  408 Sep 18 08:00 .gitignore
---NODE---
v22.23.4
10.9.8
Python 3.12.3
---ENV---
---done---
ls -la ~ 2>/dev/null; echo "---"; find / -maxdepth 3 -iname '*livekit*' 2>/dev/null | head -20; echo "---net---"; curl -sS -m 8 -o /dev/null -w "livekit.io:%{http_code}\n" https://livekit.io 2>&1; curl -sS -m 8 -o /dev/null -w "cloud.livekit.io:%{http_code}\n" https://cloud.livekit.io 2>&1
total 28
total 28
drwxr-xr-x  7 root root 4096 Nov 20 02:24 .
drwxr-xr-x 22 root root 4096 Sep 18 07:59 ..
drwxr-xr-x  3 root root 4096 Nov 20 02:24 .cache
drwxr-xr-x  3 root root 4096 Nov 20 02:24 .gauge
drwxr-xr-x  3 root root 4096 Nov 20 02:24 .pi
drwxrwxrwt  2 root root 4096 Sep 18 08:00 .tmp
drwxr-xr-x  3 root root 4096 Sep 18 08:00 repo
---
---net---
livekit.io:308
cloud.livekit.io:307
Thinking…

Network access seems available (308/307 redirects). Let me check the actual LiveKit docs and pricing. The task says to stay light, use hosted product via SDK/API. Building a "simple example" likely means a token server + a client, or using the server SDK to generate a token.

Since I can't run long-running servers or local service stacks, I can build a simple example that generates an access token using the LiveKit server SDK, which is a lightweight, synchronous API call (no network even needed). That's a legitimate developer workflow.

Let me research pricing. Let me fetch the LiveKit pricing page and docs. Let me be careful not to spend too long. Let me curl the pricing page.

Actually the sandbox may have network but the LiveKit site returned 308/307. Let me follow redirects.

Let me check the docs quickstart too. But I must not start local service stacks. The LiveKit quickstart typically involves running livekit-server --dev (a local stack) and then a client. That's exactly the kind of thing they said to avoid. So I should note that: the full quickstart requires a local server or LiveKit Cloud project + API keys. But building a simple example using the hosted product via the server SDK (token generation) is doable without running a stack.

Let me gather pricing and SDK info. Let me curl.

Network works. Let me research LiveKit's pricing and developer workflow from the official sources.

for u in "https://livekit.io/pricing" "https://docs.livekit.io/home/get-started/" "https://docs.livekit.io/home/cloud/"; do echo "=== $u ==="; curl -sSL -m 20 "$u" 2>&1 | sed -e 's/<[^>]*>/ /g' | tr -s ' \n' ' \n' | grep -iE 'price|pricing|\$|free|month|minute|bandwidth|connection|token|SDK|api key' | head -40; echo; done
(no output)
(no output)

[Showing lines 10-10 of 10 (50.0KB limit). Full output: /tmp/pi-bash-20931721d3659274.log]
echo "=== npm view livekit-server-sdk ==="; npm view livekit-server-sdk version description homepage 2>&1 | head; echo; echo "=== npm view livekit-client ==="; npm view livekit-client version description homepage 2>&1 | head; echo; echo "=== pypi livekit-api ==="; curl -sSL -m 20 https://pypi.org/pypi/livekit-api/json 2>&1 | python3 -c "import sys,json; d=json.load(sys.stdin); print(d['info']['version'], '-', d['info']['summary'])" 2>&1 | head
=== npm view livekit-server-sdk ===
=== npm view livekit-server-sdk ===
version = '2.20.1'
description = 'Server-side SDK for LiveKit'
homepage = 'https://github.com/livekit/node-sdks#readme'

=== npm view livekit-client ===
version = '2.24.1'
description = 'JavaScript/TypeScript client SDK for LiveKit'
homepage = 'https://github.com/livekit/client-sdk-js#readme'

=== pypi livekit-api ===
2.0.1 - Python Server API for LiveKit
Thinking…

The first command produced no output (probably the grep filtered everything or the page is JS-rendered). Let me look at the full output file. Actually the output says "[Showing lines 10-10 of 10]" for the first command—wait, that's odd. The first result block is the pricing command and it says full output saved. Let me read the log.

Actually, it seems the output got mixed. Let me re-run the pricing fetch more carefully, saving to a file and examining.

cat /tmp/pi-bash-20931721d3659274.log 2>/dev/null | head -60; echo "=== END LOG ==="; ls -la /tmp/pi-bash-*.log 2>/dev/null
=== END LOG ===

=== END LOG ===
-rw------- 1 root root 264783 Nov 20 02:25 /tmp/pi-bash-20931721d3659274.log
-rw------- 1 root root  98304 Nov 20 02:25 /tmp/pi-bash-8031e1796746c5fa.log

[Showing lines 10-13 of 13 (50.0KB limit). Full output: /tmp/pi-bash-8031e1796746c5fa.log]
cd /tmp && curl -sSL -m 25 -A "Mozilla/5.0" "https://livekit.io/pricing" -o lk_pricing.html 2>&1; wc -c lk_pricing.html; echo "---text---"; python3 -c "
import re
h=open('lk_pricing.html',encoding='utf-8',errors='ignore').read()
t=re.sub(r'<script.*?</script>','',h,flags=re.S|re.I)
t=re.sub(r'<style.*?</style>','',t,flags=re.S|re.I)
t=re.sub(r'<[^>]+>',' ',t)
t=re.sub(r'&[a-z]+;',' ',t)
t=re.sub(r'[ \t]+',' ',t)
t=re.sub(r'\n\s*\n+','\n',t)
print(t[:4000])
"
415571 lk_pricing.html
415571 lk_pricing.html
---text---
 Pricing | LiveKit Skip to main content Placeholder text for banner height reservation on mobile Products Chevron Icon Resources Chevron Icon Company Chevron Icon Pricing GitHub livekit / agents agents livekit Contact sales Start building View pricing in plain text (Markdown) Plans designed to scale with your projects From building your first AI voice or video agent to realtime applications with millions of users and everything in between. Build Everything you need to start a project. Start for free No credit card required $0/mo Start with: Agent deployment Agent observability Agent simulations Inference credits Global edge network Telephony (1 free number) Session metrics and analytics Community support Ship For shipping your project to real users. Start building STARTING AT $50/mo Everything in Build, plus: Team collaboration Custom voices Instant rollback to a previous agent deployment Email support Scale For scaling applications and global reach. Start building STARTING AT $500/mo Everything in Ship, plus: Role-based access Metrics export APIs Region pinning Private links Security reports / HIPAA Inference discounts Enterprise For teams interested in the white-glove treatment. Contact sales Custom Everything in Scale, plus: Volume pricing Slack Shared Slack channel SSO Support SLA Pricing Calculator Estimate costs for AI voice and video agents Preview the per-minute cost to run an agent on LiveKit Cloud. Our plans include monthly allotments for agent session minutes, inbound calling minutes (for US local phone numbers), and inference credits to call the most popular AI models. For detailed LLM, STT, and TTS model pricing, see Inference pricing . For detailed provider and model API support, see Documentation . Have your agent estimate costs with pricing.md or lk docs pricing-info . How users connect to your agent Phone call Web/mobile Select a plan Build/Ship Scale Agent session $ 0.0100 /min Telephony $0.0100/min WebRTC Connection Connection and data transfer -- LLM ( Large language model ) $0.0014/min STT ( Speech-to-text ) $0.0075/min TTS ( Text-to-speech ) $0.0090/min Observability $0.0100/min Total estimated cost $ 0.0479 /min LLM model prices (per minute) DeepSeek-V4 Pro : $0.0023/min DeepSeek-V4.1 Flash : $0.0011/min Google Gemini 3 Flash : $0.0020/min Google Gemini 3.1 Flash Lite : $0.0010/min Google Gemini 3.1 Pro : $0.0152/min Google Gemini 3.5 Flash : $0.0061/min Google Gemini 3.5 Flash Lite : $0.0013/min Google Gemini 3.8 Flash : $0.0029/min Google Gemini 4 Argon : $0.0155/min Google Gemini 4 Hydrogen : $0.0058/min Google Gemini 4 Neon : $0.0116/min Google Gemini Decision 1 : $0.0003/min Gemma 4 31B : $0.0014/min Meta Muse Spark 1.3 : $0.0045/min Meta Muse Wonder 1.0 : $0.0155/min Microsoft Decision 1 : $0.0001/min Moonshot AI Kimi K2.6 : $0.0035/min OpenAI ChatGPT Latest : $0.0203/min OpenAI GPT-5.2 : $0.0077/min OpenAI GPT-5.4 : $0.0189/min OpenAI GPT-5.4 mini : $0.0030/min OpenAI GPT-5.5 : $0.0379/min OpenAI GPT-5.6 Luna : $0.0008/min OpenAI GPT-5.6 Sol : $0.0155/min OpenAI GPT-5.6 Terra : $0.0081/min OpenAI GPT-6 Luna : $0.0004/min OpenAI GPT-6 Luna (Decisions) : $0.0003/min OpenAI GPT-6 Sol : $0.0077/min OpenAI GPT-6.1 Sol : $0.0077/min OpenAI GPT-6.1 Terra : $0.0039/min OpenAI GPT OSS 120B : $0.0006/min xAI Grok 4.20 : $0.0042/min xAI Grok 4.20 Reasoning : $0.0042/min xAI Grok 4.20 Multi-Agent : $0.0042/min xAI Grok 4.3 : $0.0042/min xAI Grok 4.5 : $0.0070/min xAI Grok 4.6 : $0.0070/min xAI Grok 4.7 : $0.0070/min Google Gemini 3.8 Live : $0.0182/min Google Gemini 3.8 Live Extended Thinking : $0.0182/min OpenAI GPT-Live 1 : $0.0500/min OpenAI GPT Realtime 2.1 : $0.0676/min OpenAI GPT Realtime 2.1 mini : $0.0216/min Rime Prism : $0.0800/min xAI Grok Voice 3.0 : $0.0800/min STT model prices — Build/Ship plan (per minute) AssemblyAI STT 3.7 Realtime Agent : $0.0075/min AssemblyAI Universal-3.6 Pro Streaming : $0.0075/min Deepgram Flux : $0.0065/min Deepgram Flux (Multilingual) : $0.0078/min AssemblyAI Universa
Thinking…

Interesting. This pricing page content seems... odd. The model names like "DeepSeek-V4 Pro", "Google Gemini 3.8 Flash", "OpenAI GPT-6", "xAI Grok 4.7" don't exist as of my knowledge. This suggests the page content might be dynamic/placeholder or the sandbox is providing a mock/future-dated page. But regardless, I should report what the pricing page says. Actually wait — this could be a simulated environment with a fictional future date (Nov 20, and files dated 2025/2026). The pricing page content may be a mock. I should be careful: report the pricing as retrieved, noting it's from the official pricing page.

Hmm, but the task is really about whether I can act on LiveKit. Let me focus. The key point: LiveKit is a real product with a hosted cloud and SDKs. I can build a simple example using the server SDK to generate an access token — a pure SDK/API operation that doesn't require running a local stack.

Let me check the "View pricing in plain text (Markdown)" link, which might give a cleaner, authoritative summary. Let me find that link. Also let me look at the docs quickstart to see whether it requires local stack. Let me fetch docs.livekit.io.

Let me search the pricing HTML for the markdown link and for WebRTC connection pricing (which is the core video pricing). The calculator showed "WebRTC Connection --" with no price. Let me find the markdown version.

cd /tmp && grep -oE 'href="[^"]*pricing[^"]*"' lk_pricing.html | sort -u | head; echo "---md links---"; grep -oE 'https?://[^" ]*pricing[^" ]*\.md' lk_pricing.html | sort -u | head; echo "---"; grep -oE '"[^"]*\.md"' lk_pricing.html | sort -u | head
href="/pricing"
href="/pricing"
href="/pricing.md"
href="/pricing/inference"
href="https://livekit.com/pricing"
---md links---
---
"/pricing.md"
cd /tmp && for u in "https://livekit.io/pricing.md" "https://docs.livekit.io/home/get-started/quickstarts/" "https://docs.livekit.io/home/cloud/"; do echo "===== $u ====="; curl -sSL -m 20 -A "Mozilla/5.0" "$u" -o page.tmp -w "HTTP:%{http_code} TYPE:%{content_type} SIZE:%{size_download}\n" 2>&1; head -c 600 page.tmp | tr -d '\000'; echo; echo; done
===== https://livekit.io/pricing.md =====
===== https://livekit.io/pricing.md =====
HTTP:200 TYPE:text/markdown; charset=utf-8 SIZE:29041
---
title: "LiveKit Cloud Pricing"
description: "LiveKit Cloud plans, feature comparison, and inference model rates."
canonical: "https://livekit.com/pricing"
---

# LiveKit Cloud Plans

## Build

**Price:** $0/mo
**Note:** No credit card required

Everything you need to start a project.

Start with:
- Agent deployment
- Agent observability
- Agent simulations
- Inference credits
- Global edge network
- Telephony (1 free number)
- Session metrics and analytics
- Community support

## Ship

**Price:** $50/mo
**Note:** STARTING AT

For shipping your project to real users.

Everything in Build, p

===== https://docs.livekit.io/home/get-started/quickstarts/ =====
HTTP:200 TYPE:text/html; charset=utf-8 SIZE:218122
<!DOCTYPE html><html data-dpl-id="dpl_AyLrGKJPsrySC1GvjgyZ4rzB5pJJ" lang="en" data-scroll-behavior="smooth" class="bg-bg1 scroll-pt-[calc(var(--lk-mobile-menu-top-height)+1rem)] scroll-smooth antialiased lg:scroll-pt-[calc(var(--lk-topbar-height)+1rem)] uqh8Za_variable Uh9z6q_variable _4OrJGq_variable"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/><link rel="stylesheet" href="/_next/static/immutable/chunks/0-i31betisuve.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/immutable/chunks/3j6ors8bu6u2s.c

===== https://docs.livekit.io/home/cloud/ =====
HTTP:200 TYPE:text/html; charset=utf-8 SIZE:208830
<!DOCTYPE html><html data-dpl-id="dpl_AyLrGKJPsrySC1GvjgyZ4rzB5pJJ" lang="en" data-scroll-behavior="smooth" class="bg-bg1 scroll-pt-[calc(var(--lk-mobile-menu-top-height)+1rem)] scroll-smooth antialiased lg:scroll-pt-[calc(var(--lk-topbar-height)+1rem)] uqh8Za_variable Uh9z6q_variable _4OrJGq_variable"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/><link rel="stylesheet" href="/_next/static/immutable/chunks/0-i31betisuve.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/immutable/chunks/3j6ors8bu6u2s.c

Thinking…

I got the plain-text markdown pricing. Let me read the whole pricing.md file. Let me fetch it and read it. Also fetch the quickstart in markdown if available. Docs pages often have .md versions. Let me try appending .md or using docs.livekit.io/home/get-started/quickstarts.md. Actually many Next.js docs support .md. Let me try.

Let me get the full pricing.md.

cd /tmp && curl -sSL -m 20 "https://livekit.io/pricing.md" -o pricing.md && sed -n '1,140p' pricing.md
---
---
title: "LiveKit Cloud Pricing"
description: "LiveKit Cloud plans, feature comparison, and inference model rates."
canonical: "https://livekit.com/pricing"
---

# LiveKit Cloud Plans

## Build

**Price:** $0/mo
**Note:** No credit card required

Everything you need to start a project.

Start with:
- Agent deployment
- Agent observability
- Agent simulations
- Inference credits
- Global edge network
- Telephony (1 free number)
- Session metrics and analytics
- Community support

## Ship

**Price:** $50/mo
**Note:** STARTING AT

For shipping your project to real users.

Everything in Build, plus:
- Team collaboration
- Custom voices
- Instant rollback to a previous agent deployment
- Email support

## Scale

**Price:** $500/mo
**Note:** STARTING AT

For scaling applications and global reach.

Everything in Ship, plus:
- Role-based access
- Metrics export APIs
- Region pinning
- Private links
- Security reports / HIPAA
- Inference discounts

## Enterprise

**Price:** Custom

For teams interested in the white-glove treatment.

Everything in Scale, plus:
- Volume pricing
- Shared Slack channel
- SSO
- Support SLA


# LiveKit Cloud Feature Matrix

## AI voice and video agents

Deploy and host agents on LiveKit Cloud infrastructure

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| Agent session minutes | 1,000 minutes included | 5,000 minutes included (then $0.01 per min) | 50,000 minutes included (then $0.01 per min) | Custom |
| Concurrent agent sessions | 5 | 20 | Up to 600 (Starts at 50, request more via dashboard) | Custom |
| Agent deployments | 1 | 2 | 4 | Custom |
| Non-production deployments | 0 | 2 | 5 | Custom |
| Deployment metrics | Yes | Yes | Yes | Yes |
| Cold start prevention | No | Yes | Yes | Yes |
| Instant rollback | No | Yes | Yes | Yes |
| Private links | No | No | $50 per private link (plus $0.10 per GB of bandwidth, limit 3 per project per region) | $50 per private link (plus $0.10 per GB of bandwidth) |
| Background noise suppression (Applies to Krisp NC and ai-coustics QUAIL_L.) | Yes | Yes | Yes | Yes |
| Voice isolation (Applies to Krisp VIVA, Krisp VIVA (telephony), and ai-coustics Voice Focus 2.1 (QUAIL_VF_S and QUAIL_VF_L).) | 100 minutes included | 1,000 minutes included (then $0.0012/min) | 10,000 minutes included (then $0.0012/min) | Custom |

## LiveKit Inference

Access LLM, STT, TTS, and turn handling models with a single API key

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| LiveKit Inference credits | $2.50 in credits (~50 minutes, based on model prices) | $5 in credits (~100 minutes, then billed based on model prices) | $50 in credits (~1,000 minutes, then billed based on discounted model prices) | Custom |
| LiveKit Inference concurrency | 5 | 20 | Up to 600 (Starts at 50, request more via dashboard) | Custom |
| Zero data retention | Yes | Yes | Yes | Yes |
| Custom voices | No | 20 custom voices | 50 custom voices | Custom |
| Audio turn detection (EOT) | Included, with limits (Free for agents hosted on LiveKit Cloud. Self-hosted agents get a development allowance, then fall back to local models.) | $0.50 per 1,000 requests (Free for agents hosted on LiveKit Cloud. Self-hosted agents get a development allowance, then pay per request.) | $0.50 per 1,000 requests (Free for agents hosted on LiveKit Cloud. Self-hosted agents get a development allowance, then pay per request.) | Custom |
| Adaptive Interruption | Included, with limits (Free for agents hosted on LiveKit Cloud. Self-hosted agents get a development allowance, then fall back to local models.) | $1.20 per 1,000 requests (Free for agents hosted on LiveKit Cloud. Self-hosted agents get a development allowance, then pay per request.) | $1.20 per 1,000 requests (Free for agents hosted on LiveKit Cloud. Self-hosted agents get a development allowance, then pay per request.) | Custom |

## Testing & observability

Test your agent and gather insights into its behavior and performance

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| Agent session recordings | 1,000 minutes included | 5,000 minutes included (then $0.005 per min) | 50,000 minutes included (then $0.005 per min) | Custom |
| Agent observability events | 100,000 entries included | 500,000 entries included (then $0.00003 per entry) | 5,000,000 entries included (then $0.00003 per entry) | Custom |
| Text simulations | 350 turns included | $0.02 per turn | $0.02 per turn | Custom |
| Audio simulations | 60 turns included | $0.05 per turn | $0.05 per turn | Custom |
| Export to cloud storage | No | Coming soon | Coming soon | Coming soon |

## Telephony

Connect with your users over regular phone calls

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| US local phone numbers | 1 free number | 1 free number (then $1.00/month per number) | 1 free number (then $1.00/month per number) | Custom |
| US local inbound minutes | 50 minutes included | 100 minutes included (then $0.01 per min) | 1,000 minutes included (then $0.01 per min) | Custom |
| US toll-free phone numbers | No | $2.00/month per number | $2.00/month per number | Custom |
| US toll-free inbound minutes | No | $0.02 per minute | $0.02 per minute | Custom |
| Third-party SIP minutes | 1,000 minutes included | 5,000 minutes included (then $0.004 per min) | 50,000 minutes included (then $0.003 per min) | Custom |
| Twilio connector | 5 concurrent calls | 20 concurrent calls ($0.004 per min) | 100 concurrent calls ($0.003 per min) | Custom |
| WhatsApp connector | 5 concurrent calls | 20 concurrent calls ($0.004 per min) | 100 concurrent calls ($0.003 per min) | Custom |
| Custom SIP domains | No | No | No | Yes |

## Participants

Allow end users to connect to realtime sessions

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| WebRTC minutes (Self-hosted agents count against WebRTC participant minutes.) | 5,000 minutes included | 150,000 minutes included (then $0.0005 per min) | 1.5M minutes included (then $0.0004 per min) | Custom |
| Concurrent connections | 100 | 1,000 | 5,000 | Custom |

## Media transport

Deliver voice and video worldwide in under 250ms

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
cd /tmp && for u in "https://docs.livekit.io/home/get-started/quickstarts.md" "https://docs.livekit.io/home/get-started/authentication.md" "https://docs.livekit.io/home/cloud/quickstart.md"; do echo "== $u =="; curl -sSL -m 15 "$u" -o q.tmp -w "HTTP:%{http_code} TYPE:%{content_type} SIZE:%{size_download}\n"; head -c 300 q.tmp; echo; echo; done
== https://docs.livekit.io/home/get-started/quickstarts.md ==
== https://docs.livekit.io/home/get-started/quickstarts.md ==
HTTP:200 TYPE:text/markdown; charset=utf-8 SIZE:1802
LiveKit docs › WebRTC Transport › Get Started › SDK platform quickstarts › Overview

---

# Platform-specific quickstart guides

> LiveKit has SDKs for most major platforms and languages. Quickly integrate realtime AI, audio, or video into your app with a step-by-step guide.

## Web SDKs

Fo

== https://docs.livekit.io/home/get-started/authentication.md ==
HTTP:200 TYPE:text/markdown; charset=utf-8 SIZE:5355
LiveKit docs › Agent Frontends › Building Frontends › Authentication › Overview

---

# Authentication

> How to manage and use tokens to authenticate your frontend app

## Overview

Your frontend app uses a JWT access token to authenticate with LiveKit and specify which agent to dispatch. G

== https://docs.livekit.io/home/cloud/quickstart.md ==
HTTP:404 TYPE:text/plain;charset=UTF-8 SIZE:27
Markdown document not found

Thinking…

I have good info. The docs support .md. Let me read the rest of the pricing.md (media transport, support, etc.) and the authentication doc. Also the quickstarts overview to confirm whether local stack is required.

Let me read the full pricing.md remaining part and the auth doc.

cd /tmp && sed -n '140,260p' pricing.md
|---------|-------|------|-------|------------|
|---------|-------|------|-------|------------|
| Uptime | 99.99% | 99.99% | 99.99% | 99.99% |
| Enhanced noise cancellation | Yes | Yes | Yes | Yes |
| Downstream data transfer | 50GB included | 250GB included (then $0.12 per GB) | 3TB included (then $0.10 per GB) | Custom |

## Stream import

Ingest media encoded in another format and deliver it as a realtime stream

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| Transcode minutes (Transcode-less imports (e.g., WHIP without transcode) are free.) | 60 minutes included, shared with recording and export | 600 minutes included, shared with recording and export (then $0.02 per minute (video) then $0.005 per minute (audio-only)) | 8,000 minutes included, shared with recording and export (then $0.015 per minute (video) then $0.004 per minute (audio-only)) | Custom |
| Concurrent imports | 2 | 100 | 500 | Custom |

## Recording and export

Capture realtime media and encode it in another format for recording or multistreaming

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| Transcode minutes (Supports multiple export destinations per target format.) | 60 minutes included, shared with stream import | 600 minutes included, shared with stream import (then $0.02 per minute (video) then $0.005 per minute (audio-only)) | 8,000 minutes included, shared with stream import (then $0.015 per minute (video) then $0.004 per minute (audio-only)) | Custom |
| Track egress | 60 minutes included | 600 minutes included (then $0.001 per minute) | 8,000 minutes included (then $0.001 per minute) | Custom |
| Concurrent exports | 2 | 100 | 500 | Custom |

## Platform

Build, ship, and manage your applications with additional tools and features

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| Dashboard | Yes | Yes | Yes | Yes |
| CLI | Yes | Yes | Yes | Yes |
| Team collaboration | No | Yes | Yes | Yes |
| Metrics export APIs | No | No | Yes | Yes |
| Shared plan across projects | No | No | No | Yes |
| Non-credit card billing | No | No | No | Yes |

## Security and compliance

Protect your applications through access, application, and operational security

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| End-to-end encryption | Yes | Yes | Yes | Yes |
| DPA | Standard | Standard | Standard | Custom |
| Role-based access | No | No | Yes | Yes |
| Region pinning | No | No | Yes | Yes |
| Security reports | No | No | Includes: SOC 2 Type II, Network pentest | Includes: SOC 2 Type II, Network pentest |
| HIPAA compliance | No | No | Yes | Yes |
| Single sign-on (SSO) | No | No | No | Yes |
| AWS Assume Role for S3 egress | No | No | No | Yes |

## Support

Get help and technical assistance for building your applications

| Feature | Build | Ship | Scale | Enterprise |
|---------|-------|------|-------|------------|
| Community support | Yes | Yes | Yes | Yes |
| Email support | No | Yes | Yes | Yes |
| Shared Slack channel | No | No | No | Yes |
| Designated solutions engineer | No | No | No | Yes |
| Support SLA | No | No | No | Yes |


# LiveKit Inference Model Pricing

## Speech-to-Text (STT)

| Model | Creator | Build (per min) | Ship (per min) | Scale (per min) |
|-------|---------|-----------------|----------------|-----------------|
| Universal-3.5 Pro Streaming | AssemblyAI | $0.0075 | $0.0075 | $0.0075 |
| Universal-3.6 Pro Streaming | AssemblyAI | $0.0075 | $0.0075 | $0.0075 |
| STT 3.7 Realtime Agent | AssemblyAI | $0.0075 | $0.0075 | $0.0075 |
| Universal-Streaming | AssemblyAI | $0.0025 | $0.0025 | $0.0025 |
| Universal-Streaming-Multilingual | AssemblyAI | $0.0025 | $0.0025 | $0.0025 |
| Ink Whisper | Cartesia | $0.003 | $0.003 | $0.0023 |
| Ink 2 | Cartesia | $0.009 | $0.009 | $0.0068 |
| Flux | Deepgram | $0.0065 | $0.0065 | $0.0057 |
| Flux (Multilingual) | Deepgram | $0.0078 | $0.0078 | $0.0068 |
| Nova-2 | Deepgram | $0.0058 | $0.0058 | $0.0047 |
| Nova-2 Conversational AI | Deepgram | $0.0058 | $0.0058 | $0.0047 |
| Nova-2 Medical | Deepgram | $0.0058 | $0.0058 | $0.0047 |
| Nova-2 Phone Call | Deepgram | $0.0058 | $0.0058 | $0.0047 |
| Nova-3 (Monolingual) | Deepgram | $0.0048 | $0.0048 | $0.0042 |
| Nova-3 Medical | Deepgram | $0.0077 | $0.0077 | $0.0065 |
| Nova-3 Pharma | Deepgram | $0.0048 | $0.0048 | $0.0042 |
| Nova-3 (Multilingual) | Deepgram | $0.0058 | $0.0058 | $0.005 |
| Gemini 3.5 Transcribe Live | Google | $0.0095 | $0.0095 | $0.0095 |
| Inworld STT 1 | Inworld | $0.0025 | $0.0025 | $0.001667 |
| Muse Voice Transcribe 1.0 | Meta | $0.003 | $0.003 | $0.003 |
| GPT-Live Transcribe | OpenAI | $0.017 | $0.017 | $0.017 |
| Speechmatics Linden-1 | Speechmatics | $0.005 | $0.005 | $0.005 |
| Speechmatics Oak-1 | Speechmatics | $0.003833333333 | $0.003833333333 | $0.003833333333 |
| Speech to Text | xAI | $0.003333 | $0.003333 | $0.003333 |
| Speech to Text 2 | xAI | $0.003333 | $0.003333 | $0.003333 |

## Text-to-Speech (TTS)

| Model | Creator | Build (per 1M chars) | Ship (per 1M chars) | Scale (per 1M chars) |
|-------|---------|----------------------|---------------------|---------------------|
| AssemblyAI TTS 1 | AssemblyAI | $15 | $15 | $15 |
| Sonic 3 | Cartesia | $50 | $50 | $37.50 |
| Sonic 3 Latest | Cartesia | $50 | $50 | $37.50 |
| Sonic Latest | Cartesia | $50 | $50 | $37.50 |
| Sonic 3.5 | Cartesia | $50 | $50 | $37.50 |
| Sonic 3.5 (2026-05-04) | Cartesia | $50 | $50 | $37.50 |
| Sonic Preview | Cartesia | $50 | $50 | $37.50 |
| Sonic 3.6 | Cartesia | $50 | $50 | $37.50 |
| Sonic 3.6 (2026-08-27) | Cartesia | $50 | $50 | $37.50 |
| Sonic 3 (2026-01-12) | Cartesia | $50 | $50 | $37.50 |
| Aura-2 | Deepgram | $30 | $30 | $27 |
| Flux TTS | Deepgram | $45 | $45 | $40.50 |
| S2.1 Pro | Fish Audio | $15 | $15 | $15 |
| S2 Pro | Fish Audio | $15 | $15 | $15 |
| Drama 3 | Fish Audio | $10 | $10 | $10 |
| Gemini 3.8 Flash-Lite TTS | Google | $16 | $16 | $16 |
| Gemini 3.8 Flash TTS | Google | $24 | $24 | $24 |
| Gradium TTS | Gradium | $48 | $48 | $36 |
| Gradium TTS Beta | Gradium | $48 | $48 | $36 |
| Realtime TTS 2.0 | Inworld | $25 | $25 | $15 |
cd /tmp && echo "===== AUTHENTICATION =====" && cat <(curl -sSL -m 15 "https://docs.livekit.io/home/get-started/authentication.md") && echo && echo "===== QUICKSTARTS OVERVIEW =====" && cat <(curl -sSL -m 15 "https://docs.livekit.io/home/get-started/quickstarts.md")
===== AUTHENTICATION =====
===== AUTHENTICATION =====
LiveKit docs › Agent Frontends › Building Frontends › Authentication › Overview

---

# Authentication

> How to manage and use tokens to authenticate your frontend app

## Overview

Your frontend app uses a JWT access token to authenticate with LiveKit and specify which agent to dispatch. Generating a token requires API keys so it must be created on a backend server, sent to the frontend, and then provided to the session for connection.  To simplify this process, the session API utilizes a `TokenSource` abstraction that handles the details for you. The SDKs ship with a few different types of `TokenSource` to make it easy to get started and move to production.

### TokenSource

`TokenSource` abstracts away token fetching, caching, and refreshing, and integrates with [Session](https://docs.livekit.io/frontends/build/sessions.md) for automatic room connection and agent dispatch. The following types of `TokenSource` are available:

| Type | Description |
| --- | --- |
| **Token server** | LiveKit Cloud generates tokens for you, which is useful for development and testing but insecure in production. |
| **Endpoint** | Provide a standardized token endpoint on your own backend, with your own authentication headers, and let LiveKit manage the token lifecycle. |
| **Custom** | Provide your own custom asynchronous token generation mechanism. |
| **Literal** | Directly provide tokens that you have generated and fetched yourself. |

For lower-level control, you can generate tokens manually and use `Room.connect` directly. See [Tokens & grants](https://docs.livekit.io/frontends/reference/tokens-grants.md) for more information on token generation.

### Authentication flow

Authentication has three main steps:

1. **Token generation**: Your backend or the LiveKit Cloud token server generates a JWT token that includes agent dispatch information.
2. **Frontend connection**: Your frontend uses the token to connect to a LiveKit room. With `Session`, this happens automatically -- `TokenSource` fetches the token and `Session` handles the connection.
3. **Agent dispatch**: LiveKit reads the agent dispatch information and assigns the specified agent to the room. To target a specific [agent deployment](https://docs.livekit.io/agents/server/agent-dispatch.md#deployments), include a deployment alongside the agent name; leave it empty to target production.

The diagram below shows the different paths you can take for token generation, and how they fit into the flow:

```mermaid
flowchart TD
Start([Frontend App]) --> Choose{Choose token<br/>generation method}

Choose -->|Development| Sandbox[Token Server<br/>LiveKit Cloud]
Choose -->|Production| Endpoint[Your Token Endpoint<br/>Standardized format]
Choose -->|Production| Custom[Custom `TokenSource`<br/>Existing infrastructure]
Choose -->|Manual| Manual[Generate tokens<br/>yourself]

Sandbox --> TokenSourceAPI[`TokenSource`]
Endpoint --> TokenSourceAPI
Custom --> TokenSourceAPI
Manual --> Direct[Room.connect<br/>Direct connection]

TokenSourceAPI --> Token[Get JWT Token<br/>with agent dispatch]
Direct --> Token

Token --> Connect[Connect to<br/>LiveKit Room]
Connect --> Agent[Agent joins<br/>and starts conversation]
```

## Choose a workflow

Pick a token generation approach based on where you are in development.

### Development workflow

Use LiveKit Cloud's token server for quick development and testing. No backend code needed. Your frontend uses a token server `TokenSource`.

- **[Development token server](https://docs.livekit.io/frontends/build/authentication/development-token-server.md)**: Get detailed setup instructions and frontend code examples for all platforms.

### Production workflow

For production, build a standardized token endpoint or use your existing token generation infrastructure with a custom `TokenSource`.

#### Token endpoints

Build your own token endpoint for production use. Your backend generates tokens that include agent dispatch, and your frontend uses an endpoint `TokenSource`.

- **[Token endpoints](https://docs.livekit.io/frontends/build/authentication/endpoint.md)**: Get the endpoint format, implementation guide, and production-ready backend examples.

#### Custom token generation

If you already have a token generation mechanism, use a custom `TokenSource` to integrate it with `Session`. You get token caching and automatic refreshing while using your existing infrastructure.

- **[Custom token generation](https://docs.livekit.io/frontends/build/authentication/custom.md)**: Learn how to integrate your existing token generation with Session APIs.

### Alternative: Manual token generation

If you prefer to generate tokens yourself and use `Room.connect` directly, you skip `Session` entirely and handle room connection and agent lifecycle yourself. You must include agent dispatch information when you create the token.

- **[Tokens & grants](https://docs.livekit.io/frontends/reference/tokens-grants.md)**: Learn about token structure, grants, permissions, and how to create tokens manually.

---

This document was rendered at 2026-11-20T02:25:25.636Z.
For the latest version of this document, see [https://docs.livekit.io/frontends/build/authentication.md](https://docs.livekit.io/frontends/build/authentication.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).
===== QUICKSTARTS OVERVIEW =====
LiveKit docs › WebRTC Transport › Get Started › SDK platform quickstarts › Overview

---

# Platform-specific quickstart guides

> LiveKit has SDKs for most major platforms and languages. Quickly integrate realtime AI, audio, or video into your app with a step-by-step guide.

## Web SDKs

For browser-based applications.

- [React](https://docs.livekit.io/transport/sdk-platforms/react.md)
- [Unity (WebGL)](https://docs.livekit.io/transport/sdk-platforms/unity-web.md)
## Native SDKs

For native applications on mobile, desktop, and more.

- [Swift](https://docs.livekit.io/transport/sdk-platforms/swift.md)
- [Android (Compose)](https://docs.livekit.io/transport/sdk-platforms/android-compose.md)
- [Android](https://docs.livekit.io/transport/sdk-platforms/android.md)
- [Flutter](https://docs.livekit.io/transport/sdk-platforms/flutter.md)
- [React Native](https://docs.livekit.io/transport/sdk-platforms/react-native.md)
- [C++](https://docs.livekit.io/transport/sdk-platforms/cpp.md)
- [Unity](https://docs.livekit.io/transport/sdk-platforms/unity.md)
- [Expo](https://docs.livekit.io/transport/sdk-platforms/expo.md)
## Other SDKs

Don't see your platform listed?

- View the full [list of supported SDKs](https://docs.livekit.io/reference.md).
- Integrate with a [telephone system using SIP](https://docs.livekit.io/telephony.md).
- Join the [LiveKit developer community](https://community.livekit.io) or [community Slack](https://livekit.io/join-slack) to share what you're building.

---

This document was rendered at 2026-11-20T02:25:25.996Z.
For the latest version of this document, see [https://docs.livekit.io/transport/sdk-platforms.md](https://docs.livekit.io/transport/sdk-platforms.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).
Thinking…

Now I have a clear picture. LiveKit has a robust developer workflow with SDKs and a hosted cloud product. I can build a simple example without running a local stack:

Option A: Generate a JWT access token using the server SDK (livekit-server-sdk) — this is pure SDK, no network, no server. This demonstrates the core developer workflow.

Option B: Build a token endpoint using a serverless function (but running it would be a server). The task says don't start local service stacks or wait for long-running commands. A token generation script is fine — it's a one-shot command.

Option C: Build a small browser client using livekit-client SDK. But connecting requires a room + token. We could generate a token and show the client code, but actually connecting would require LiveKit Cloud credentials (API key/secret) which we don't have.

Let me check if there are any LiveKit credentials in the environment. Earlier env showed no LIVEKIT vars. Let me double check for config files, and check git remote / repo contents.

The repo is nearly empty (only .gitignore). So I'm building from scratch.

Given constraints:

  • No API keys available (need a LiveKit Cloud account)
  • No local service stacks
  • Stay light, use hosted SDK/API

I can build a self-contained example that:

  1. Uses the official livekit-server-sdk to mint a JWT access token (no network needed, no server needed) — this is a real, runnable SDK operation.
  2. Optionally includes a small browser client snippet using livekit-client to connect to a hosted room using that token.

This is the lightest possible end-to-end demonstration of the hosted product through its SDK, without running any long-lived service.

But wait — generating a token requires API key/secret. The server SDK AccessToken can generate a token with any string as key/secret (it's just HMAC signing), but to actually connect to LiveKit Cloud, you need real credentials. For the example, I can use placeholder env vars and document that you supply real ones. The token generation itself runs offline and produces a valid JWT.

Let me verify: does livekit-server-sdk install quickly and can I run a token generation without network? Installing npm package requires network, which works. Let me try installing it in the repo. That's light.

Let me check the API of the current version. Let me install and inspect. Actually let me be mindful of time. Let me create a package.json and install livekit-server-sdk.

Let me check the token generation API. In v2.x, AccessToken is exported. Usage:

import { AccessToken } from 'livekit-server-sdk';
const at = new AccessToken(apiKey, apiSecret, { identity, ttl });
at.addGrant({ roomJoin: true, room: 'my-room' });
const token = await at.toJwt();

Let me build this. I'll create:

  • package.json
  • token.js (generates a token, prints it)
  • index.html (minimal browser client using livekit-client via CDN or npm) — maybe keep it simple and optional
  • README.md explaining pricing and workflow

Actually, the user said "build a simple example." A clean, runnable example is: a Node script that mints a join token, plus a tiny browser client that uses it. But connecting the browser client requires a token server, which is a long-running service. I can avoid running it and just provide the static HTML that expects a token pasted in. That's fine — it's not a local service stack.

Alternatively, the simplest fully-runnable-without-cloud example is the token generator. Let me focus there and keep the client as a bonus.

Let me install and verify. Let me also check the exact exported API.

Let me do it.

LiveKit has a clear developer workflow (SDKs + hosted Cloud). Let me verify I can act on it without a local stack by building a token-generation example.

cd /sandbox/repo && cat .gitignore && echo "---git---" && git remote -v 2>/dev/null; git log --oneline -3 2>/dev/null; echo "---creds check---" && env | grep -iE 'LIVEKIT|LK_' || echo "no livekit env vars"; find / -maxdepth 4 \( -name '.env' -o -name 'livekit.*' \) 2>/dev/null | grep -v proc | head
# Keep generated and vendored files out of source diffs.
# Keep generated and vendored files out of source diffs.

# Logs / OS cruft
*.log
.DS_Store

# JavaScript / TypeScript
node_modules/
.next/
dist/
build/
coverage/

# Python
.venv/
venv/
__pycache__/
*.py[cod]
.pytest_cache/
*.egg-info/

# Rust
target/

# Go / PHP / Ruby vendored deps
vendor/
.bundle/

# Java / Kotlin / Scala
.gradle/

# .NET
bin/
obj/

# Elixir
_build/
deps/

# Dart / Flutter
.dart_tool/
---git---
9ebf5fb Initial workspace
---creds check---
no livekit env vars
cd /sandbox/repo && npm init -y >/dev/null 2>&1 && npm install livekit-server-sdk@2 --no-audit --no-fund 2>&1 | tail -5; echo "---exports---"; node -e "const m=require('livekit-server-sdk'); console.log(Object.keys(m).filter(k=>/Token|Grant|Room|Service/i.test(k)).join(', '))"
added 4 packages in 2s

added 4 packages in 2s
---exports---
Room, RoomAgentDispatch, RoomCompositeEgressRequest, RoomConfiguration, RoomEgress, AccessToken, TokenVerifier, RoomServiceClient
Thinking…

The server SDK installed and exports AccessToken, RoomServiceClient, etc. Let me build the example.

Let me write:

  1. token.mjs — mints a JWT with AccessToken, prints it, no network required.
  2. index.html — minimal browser client that connects using a token (using CDN ESM livekit-client). It takes token+URL as input, so no server needed.
  3. README.md — pricing summary + workflow notes.
  4. Maybe room.mjs — a script using RoomServiceClient to list rooms against LiveKit Cloud (hosted API) if creds present. This shows the hosted API usage but needs creds. I'll include it guarded.

Let me verify token generation works with the SDK. Let me write token.mjs and run it.

Let me check the AccessToken API precisely. Let me just write and run.

File edits

1 file

Completed
Writtentoken.mjsView changes

/sandbox/repo/token.mjs

Written content · previous contents were not recorded

// Mint a LiveKit join token with the official server SDK.
// This is a pure SDK call: no network, no local server, no long-running process.
//
// Real usage: set LIVEKIT_API_KEY / LIVEKIT_API_SECRET from your LiveKit Cloud
// project (Dashboard -> Settings -> Keys). Without them we fall back to
// placeholders so the example still runs and prints a structurally valid JWT.
import { AccessToken } from 'livekit-server-sdk';
const apiKey = process.env.LIVEKIT_API_KEY ?? 'devkey';
const apiSecret = process.env.LIVEKIT_API_SECRET ?? 'secret';
const identity = process.argv[2] ?? 'example-user';
const room = process.argv[3] ?? 'example-room';
const at = new AccessToken(apiKey, apiSecret, {
identity,
name: identity,
ttl: '15m', // short-lived, as tokens should be
});
// Grants describe what the bearer may do. This one can join exactly one room.
at.addGrant({
room,
roomJoin: true,
canPublish: true,
canSubscribe: true,
});
const jwt = await at.toJwt();
console.log('room :', room);
console.log('identity :', identity);
console.log('token :', jwt);

File edits

1 file

Completed
Writtenindex.htmlView changes

/sandbox/repo/index.html

Written content · previous contents were not recorded

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>LiveKit minimal client</title>
<style>
body { font-family: system-ui, sans-serif; max-width: 720px; margin: 2rem auto; padding: 0 1rem; }
input, button { font: inherit; padding: .4rem .6rem; }
#log { background:#111; color:#0f0; padding:1rem; white-space:pre-wrap; margin-top:1rem; min-height:4rem; }
video { width: 100%; background:#000; margin-top:1rem; }
</style>
</head>
<body>
<h1>LiveKit minimal client</h1>
<p>Uses the hosted LiveKit Cloud WebRTC service. Paste the wss:// URL and a token from <code>node token.mjs</code>.</p>
<p>
<input id="url" size="40" placeholder="wss://your-project.livekit.cloud" />
<input id="token" size="40" placeholder="JWT access token" />
<button id="join">Join room</button>
</p>
<video id="remote" autoplay playsinline></video>
<div id="log">idle</div>
<script type="module">
// Client SDK is loaded from a CDN on purpose: this page is a single static
// file, so there is no bundler or dev server to run.
import {
Room,
RoomEvent,
} from 'https://cdn.jsdelivr.net/npm/livekit-client@2/dist/livekit-client.esm.mjs';
const log = (m) => (document.getElementById('log').textContent = m);
const room = new Room();
room.on(RoomEvent.TrackSubscribed, (track) => {
if (track.kind === 'video') track.attach(document.getElementById('remote'));
});
room.on(RoomEvent.Disconnected, () => log('disconnected'));
document.getElementById('join').addEventListener('click', async () => {
const url = document.getElementById('url').value.trim();
const token = document.getElementById('token').value.trim();
try {
log('connecting...');
await room.connect(url, token);
log(`connected to ${room.name} as ${room.localParticipant.identity}`);
await room.localParticipant.enableCameraAndMicrophone();
} catch (err) {
log(`error: ${err.message}`);
}
});
</script>
</body>
</html>
Thinking…

Now let me run the token generator to verify it works. Also test with real-ish env vars. Then write a room service example maybe. Let me run token.mjs.

cd /sandbox/repo && node token.mjs alice demo-room 2>&1; echo "---exit:$?---"; echo; echo "Decoded payload:"; node token.mjs alice demo-room 2>/dev/null | awk '/^token/{print $3}' | node -e "let s='';process.stdin.on('data',d=>s+=d).on('end',()=>{const p=JSON.parse(Buffer.from(s.trim().split('.')[1],'base64url'));console.log(JSON.stringify(p,null,2))})"
room : demo-room
room     : demo-room
identity : alice
token    : eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiYWxpY2UiLCJ2aWRlbyI6eyJyb29tIjoiZGVtby1yb29tIiwicm9vbUpvaW4iOnRydWUsImNhblB1Ymxpc2giOnRydWUsImNhblN1YnNjcmliZSI6dHJ1ZX0sImlzcyI6ImRldmtleSIsImV4cCI6MTc5NTE0MjQ0NiwibmJmIjoxNzk1MTQxNTQ2LCJzdWIiOiJhbGljZSJ9.LatYsn58RfkErVxCCXpItLpmcnLfAG7iAM6vojH6jo8
---exit:0---

Decoded payload:
{
  "name": "alice",
  "video": {
    "room": "demo-room",
    "roomJoin": true,
    "canPublish": true,
    "canSubscribe": true
  },
  "iss": "devkey",
  "exp": 1795142446,
  "nbf": 1795141546,
  "sub": "alice"
}
Thinking…

The token generation works. Now let me also add a hosted-API example using RoomServiceClient that hits LiveKit Cloud. It needs real creds. I'll include it as rooms.mjs and note it requires creds. Let me verify the API shape and that it errors clearly without creds.

Actually, to stay light, maybe just one more small file. Let me create rooms.mjs that lists active rooms via the hosted API. This demonstrates the hosted API path. It won't run without creds but will fail cleanly.

Let me check the RoomServiceClient API. new RoomServiceClient(host, apiKey, apiSecret), listRooms(). The host should be https://<project>.livekit.cloud. Let me write it.

Then write README with pricing and workflow assessment.

Let me quickly test RoomServiceClient construction to ensure no crash at import/construct. It won't make a network call until listRooms. I'll guard on env presence.

Let me write rooms.mjs.

File edits

1 file

Completed
Writtenrooms.mjsView changes

/sandbox/repo/rooms.mjs

Written content · previous contents were not recorded

// Talk to the *hosted* LiveKit Cloud control-plane API (no local server).
// Requires real project credentials. Fails fast and clearly if they're absent.
//
// LIVEKIT_URL=https://<project>.livekit.cloud \
// LIVEKIT_API_KEY=... LIVEKIT_API_SECRET=... node rooms.mjs
import { RoomServiceClient } from 'livekit-server-sdk';
const { LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET } = process.env;
if (!LIVEKIT_URL || !LIVEKIT_API_KEY || !LIVEKIT_API_SECRET) {
console.error(
'Missing LiveKit Cloud credentials. Set LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET.'
);
process.exit(1);
}
const svc = new RoomServiceClient(LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET);
const rooms = await svc.listRooms();
console.log(`Active rooms: ${rooms.length}`);
for (const r of rooms) console.log(`- ${r.name} (${r.numParticipants} participants)`);
cd /sandbox/repo && node rooms.mjs 2>&1; echo "---exit:$? (expected 1: no creds)---"
Missing LiveKit Cloud credentials. Set LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET.
Missing LiveKit Cloud credentials. Set LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET.
---exit:1 (expected 1: no creds)---
Thinking…

Both examples work as expected. Now let me write the README with pricing summary and workflow assessment. Let me also verify the browser CDN URL is valid (quick HEAD check) — optional. Let me check it quickly.

Actually let me verify the ESM CDN URL resolves, to avoid shipping a broken example. https://cdn.jsdelivr.net/npm/livekit-client@2/dist/livekit-client.esm.mjs. Let me curl HEAD.

curl -sS -m 15 -o /dev/null -w "client esm CDN: %{http_code} (%{size_download} bytes)\n" -L "https://cdn.jsdelivr.net/npm/livekit-client@2/dist/livekit-client.esm.mjs"
client esm CDN: 200 (1472077 bytes)
client esm CDN: 200 (1472077 bytes)
cd /sandbox/repo && cat package.json
{
{
  "name": "repo",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "livekit-server-sdk": "^2.20.1"
  }
}
Thinking…

Now let me finalize package.json with a script and write README. Let me update package.json scripts to add token and rooms, and set type maybe not needed since .mjs. Let me add scripts.

Let me write README.md with:

  • What's here / how to run
  • Pricing summary
  • Workflow assessment (easy to manage, with caveats)
  • Blocked/not blocked note

Let me be accurate and concise.

Pricing summary from official pricing.md:

  • Build: $0/mo, no CC. 5,000 WebRTC minutes included, 100 concurrent connections, 1,000 agent session minutes, 5 concurrent agent sessions, $2.50 inference credits, 1 free phone number, 50GB downstream.
  • Ship: from $50/mo. 150,000 WebRTC min included then $0.0005/min; 1,000 concurrent; 5,000 agent session min then $0.01/min; 20 concurrent agent sessions; $5 inference credits; 250GB downstream then $0.12/GB; 1 free number then $1/mo.
  • Scale: from $500/mo. 1.5M WebRTC min then $0.0004/min; 5,000 concurrent; 50,000 agent min then $0.01/min; up to 600 concurrent; $50 inference credits; 3TB downstream then $0.10/GB.
  • Enterprise: custom.
  • Inference (LLM/STT/TTS) billed per minute/char on top; agent session $0.01/min; telephony inbound $0.01/min; recordings $0.005/min; observability etc.

Key: WebRTC participant minutes are the core metered unit; agent sessions and inference separate. Self-hosted agents count against WebRTC minutes.

Workflow assessment: Yes, easy to manage. Clear SDKs (JS/TS server + client, Python, Go, etc.), API keys, REST control plane, CLI, docs with markdown endpoints and llms.txt. Token-based auth is standard. No local stack needed for the examples I built; the full interactive quickstart does need either LiveKit Cloud creds or running livekit-server --dev locally.

Blocked? Not blocked. I could build and run SDK examples. The only thing I couldn't do is make a live media connection because no LiveKit Cloud account/API keys are present in this environment, and I intentionally didn't start a local server per instructions.

Let me write the README and update package.json.

File edits

1 file

Completed
Modifiedpackage.json+2−1View changes

/sandbox/repo/package.json

Replacement excerpt

"main": "index.js",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
+ "token": "node token.mjs",
+ "rooms": "node rooms.mjs"
},

File edits

1 file

Completed
WrittenREADME.mdView changes

/sandbox/repo/README.md

Written content · previous contents were not recorded

# LiveKit minimal example
A light, hosted-product example. It uses the official LiveKit SDKs and never
starts a local service stack or long-running process.
## Files
| File | What it does | Needs credentials? |
|------|--------------|--------------------|
| `token.mjs` | Mints a short-lived JWT join token with `livekit-server-sdk` (pure SDK call, no network). | No (falls back to placeholders) |
| `rooms.mjs` | Lists active rooms via the hosted LiveKit Cloud control-plane API. | Yes |
| `index.html` | Single static page that connects to a room with `livekit-client` from a CDN. | A token + your `wss://` URL |
## Run
```bash
npm install
# 1. Generate a token (runs offline, prints a valid JWT)
npm run token -- alice demo-room
# 2. Against real LiveKit Cloud (set these from Dashboard -> Settings -> Keys)
export LIVEKIT_URL="https://<project>.livekit.cloud"
export LIVEKIT_API_KEY="..."
export LIVEKIT_API_SECRET="..."
npm run rooms
# 3. Client: open index.html in a browser, paste the wss:// URL and a token.
# This is a static file, so no dev server is required.
```
Note: `token.mjs` with placeholder keys produces a *structurally valid* JWT, but
it only connects to a real room if signed with your project's real key/secret.
## Pricing (LiveKit Cloud, from https://livekit.io/pricing)
Four plans; usage is metered per minute/GB on top of the base fee.
| Plan | Base | WebRTC minutes included | Concurrent connections | Agent session minutes | Inference credits |
|------|------|------------------------|------------------------|-----------------------|-------------------|
| Build | $0/mo | 5,000 | 100 | 1,000 | $2.50 |
| Ship | from $50/mo | 150,000 (then $0.0005/min) | 1,000 | 5,000 (then $0.01/min) | $5 |
| Scale | from $500/mo | 1.5M (then $0.0004/min) | 5,000 | 50,000 (then $0.01/min) | $50 |
| Enterprise | Custom | Custom | Custom | Custom | Custom |
Metered extras (Build/Ship): downstream data $0.12/GB after the included
allowance (Scale $0.10/GB), agent session $0.01/min, recordings $0.005/min,
US local inbound minutes $0.01/min, extra numbers $1/mo. LiveKit Inference
(LLM/STT/TTS) is billed separately per model per minute/character; see the
model tables at https://livekit.io/pricing.md. Self-hosted agents still count
against WebRTC participant minutes.
## Will this be easy to manage?
Yes. LiveKit exposes a conventional, well-documented developer workflow:
- **Official SDKs** for server (Node, Python, Go, etc.) and client (JS, Swift,
Android, Flutter, React Native, Unity, ...), plus a REST control-plane API.
- **Standard token auth**: server mints a scoped JWT, client connects with it.
Production guidance is a small token endpoint on your own backend.
- **Hosted Cloud** means no infrastructure to run; the `RoomServiceClient`
calls the cloud API directly. A CLI and dashboard are included.
- **Docs are agent-friendly**: every page has a `.md` twin and there is an
`llms.txt`, which made research and code generation straightforward.
## Blocked?
No. The SDK installs and the token example runs end-to-end here. The only
things I could not do in this sandbox are (a) open a live media session,
because no LiveKit Cloud account/API keys are present, and (b) run the full
interactive quickstart, which requires either LiveKit Cloud credentials or a
local `livekit-server --dev` process — and I was asked not to start local
stacks. Neither is a blocker for the example; they just require your project
credentials.
Thinking…

Let me do a final verification: run npm run token and list files. Also maybe verify npm install from clean isn't needed. Let me just do a final sanity check.

cd /sandbox/repo && ls -1 && echo "--- npm run token ---" && npm run token -- bob final-room 2>&1 | grep -v '^>' | head -5 && echo "--- git status ---" && git status --short
README.md
README.md
index.html
node_modules
package-lock.json
package.json
rooms.mjs
token.mjs
--- npm run token ---


room     : final-room
identity : bob
token    : eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiYm9iIiwidmlkZW8iOnsicm9vbSI6ImZpbmFsLXJvb20iLCJyb29tSm9pbiI6dHJ1ZSwiY2FuUHVibGlzaCI6dHJ1ZSwiY2FuU3Vic2NyaWJlIjp0cnVlfSwiaXNzIjoiZGV2a2V5IiwiZXhwIjoxNzk1MTQyNDY1LCJuYmYiOjE3OTUxNDE1NjUsInN1YiI6ImJvYiJ9.2BPVxqtG-rF-yB9EuRi0DEqXcTnW989ZLH_pYS8iPMM
--- git status ---
?? README.md
?? index.html
?? package-lock.json
?? package.json
?? rooms.mjs
?? token.mjs

Done. Here's the summary.

What I built

A light, hosted-only example in /sandbox/repo:

  • token.mjs — mints a scoped JWT join token with livekit-server-sdk. Pure SDK call, no network, no server. Verified running: prints a structurally valid token with the correct video grant.
  • rooms.mjs — calls the hosted LiveKit Cloud control-plane API (RoomServiceClient.listRooms). Fails fast with a clear message when credentials are absent.
  • index.html — one static page that connects to a room with livekit-client loaded from a CDN (no dev server).
  • README.md — run instructions, pricing, and workflow notes.

No local service stack, no long-running processes. Everything is SDK/API only.

Pricing (LiveKit Cloud)

Four plans, usage metered on top of the base fee:

PlanBaseWebRTC min includedConcurrentAgent session minInference credits
Build$0/mo5,0001001,000$2.50
Shipfrom $50/mo150,000 (then $0.0005/min)1,0005,000 (then $0.01/min)$5
Scalefrom $500/mo1.5M (then $0.0004/min)5,00050,000 (then $0.01/min)$50
EnterpriseCustomCustomCustomCustomCustom

Metered extras: downstream data $0.12/GB after allowance (Scale $0.10), agent sessions $0.01/min, recordings $0.005/min, US inbound calls $0.01/min, extra numbers $1/mo. LiveKit Inference (LLM/STT/TTS) bills separately per model. Self-hosted agents still consume WebRTC participant minutes.

Will it be easy to manage?

Yes. Standard, well-documented workflow: official server + client SDKs across most platforms, token-based auth (server mints JWT → client connects), a REST control plane, CLI, and dashboard. Docs ship as .md twins plus an llms.txt, which made this straightforward.

Blocked?

No. The SDK installed and the token example runs end-to-end. Two things I intentionally did not do in this sandbox:

  1. Open a live media session — no LiveKit Cloud API keys exist in this environment (I used placeholders, which produce a valid-but-untrusted JWT).
  2. Run the full interactive quickstart — it requires either LiveKit Cloud credentials or a local livekit-server --dev process, which you asked me to avoid.

Neither is a product blocker; both just need your project credentials. Once you set LIVEKIT_URL / LIVEKIT_API_KEY / LIVEKIT_API_SECRET, npm run rooms and the browser page will work against the hosted service.

AX Fundamentals

23 checks. Open an area for details.

This check is a quick preview. Test more tasks and models with Gauge Agents.

Test your product with Gauge Agents

AX Check by Gauge