ax-check.com
by Gauge
L
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.
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.
›Thinking…
The user wants help building a simple example using LiveKit. Let me understand the task. They want:
- Build a simple example using LiveKit
- Tell them how pricing works
- Briefly tell whether the product will be easy for me to manage
- Let me know if I get blocked
- If the product has no developer workflow I 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
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---
Recorded tool call
{
"type": "tool_call",
"seq": 4,
"ts": "2026-11-20T02:25:01.582Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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---\""
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_41f9c063a0fd4f44b4eeaae4",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 8,
"ts": "2026-11-20T02:25:02.226Z",
"turn": 1,
"output": {
"content": [
{
"text": "/sandbox/repo\ntotal 16\ndrwxr-xr-x 3 root root 4096 Sep 18 08:00 .\ndrwxr-xr-x 7 root root 4096 Nov 20 02:24 ..\ndrwxr-xr-x 8 root root 4096 Sep 24 20:05 .git\n-rw-r--r-- 1 root root 408 Sep 18 08:00 .gitignore\n---NODE---\nv22.23.4\n10.9.8\nPython 3.12.3\n---ENV---\n---done---\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_41f9c063a0fd4f44b4eeaae4",
"is_error": false,
"tool_kind": "shell"
}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>&1total 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
Recorded tool call
{
"type": "tool_call",
"seq": 5,
"ts": "2026-11-20T02:25:01.582Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_921b113152ca40378dacc71d",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 9,
"ts": "2026-11-20T02:25:02.842Z",
"turn": 1,
"output": {
"content": [
{
"text": "total 28\ndrwxr-xr-x 7 root root 4096 Nov 20 02:24 .\ndrwxr-xr-x 22 root root 4096 Sep 18 07:59 ..\ndrwxr-xr-x 3 root root 4096 Nov 20 02:24 .cache\ndrwxr-xr-x 3 root root 4096 Nov 20 02:24 .gauge\ndrwxr-xr-x 3 root root 4096 Nov 20 02:24 .pi\ndrwxrwxrwt 2 root root 4096 Sep 18 08:00 .tmp\ndrwxr-xr-x 3 root root 4096 Sep 18 08:00 repo\n---\n---net---\nlivekit.io:308\ncloud.livekit.io:307\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_921b113152ca40378dacc71d",
"is_error": false,
"tool_kind": "shell"
}›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]
Recorded tool call
{
"type": "tool_call",
"seq": 13,
"ts": "2026-11-20T02:25:06.943Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_314c1e45c3454cdaaf12c3fa",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 16,
"ts": "2026-11-20T02:25:09.727Z",
"turn": 1,
"output": {
"content": [
{
"text": "(no output)\n\n[Showing lines 10-10 of 10 (50.0KB limit). Full output: /tmp/pi-bash-20931721d3659274.log]",
"type": "text"
}
],
"details": {
"truncation": {
"content": "",
"maxBytes": 51200,
"maxLines": 2000,
"truncated": true,
"totalBytes": 264783,
"totalLines": 10,
"outputBytes": 0,
"outputLines": 1,
"truncatedBy": "bytes",
"lastLinePartial": false,
"firstLineExceedsLimit": false
},
"fullOutputPath": "/tmp/pi-bash-20931721d3659274.log"
}
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_314c1e45c3454cdaaf12c3fa",
"is_error": false,
"tool_kind": "shell"
}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
Recorded tool call
{
"type": "tool_call",
"seq": 14,
"ts": "2026-11-20T02:25:06.943Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_b8cb1e6a51c94fb8bafc7fef",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 17,
"ts": "2026-11-20T02:25:10.573Z",
"turn": 1,
"output": {
"content": [
{
"text": "=== npm view livekit-server-sdk ===\nversion = '2.20.1'\ndescription = 'Server-side SDK for LiveKit'\nhomepage = 'https://github.com/livekit/node-sdks#readme'\n\n=== npm view livekit-client ===\nversion = '2.24.1'\ndescription = 'JavaScript/TypeScript client SDK for LiveKit'\nhomepage = 'https://github.com/livekit/client-sdk-js#readme'\n\n=== pypi livekit-api ===\n2.0.1 - Python Server API for LiveKit\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_b8cb1e6a51c94fb8bafc7fef",
"is_error": false,
"tool_kind": "shell"
}›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]
Recorded tool call
{
"type": "tool_call",
"seq": 20,
"ts": "2026-11-20T02:25:13.276Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cat /tmp/pi-bash-20931721d3659274.log 2>/dev/null | head -60; echo \"=== END LOG ===\"; ls -la /tmp/pi-bash-*.log 2>/dev/null"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_1f330790dc854c1db61ca386",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 23,
"ts": "2026-11-20T02:25:13.276Z",
"turn": 1,
"output": {
"content": [
{
"text": "\n=== END LOG ===\n-rw------- 1 root root 264783 Nov 20 02:25 /tmp/pi-bash-20931721d3659274.log\n-rw------- 1 root root 98304 Nov 20 02:25 /tmp/pi-bash-8031e1796746c5fa.log\n\n[Showing lines 10-13 of 13 (50.0KB limit). Full output: /tmp/pi-bash-8031e1796746c5fa.log]",
"type": "text"
}
],
"details": {
"truncation": {
"content": "\n=== END LOG ===\n-rw------- 1 root root 264783 Nov 20 02:25 /tmp/pi-bash-20931721d3659274.log\n-rw------- 1 root root 98304 Nov 20 02:25 /tmp/pi-bash-8031e1796746c5fa.log",
"maxBytes": 51200,
"maxLines": 2000,
"truncated": true,
"totalBytes": 264953,
"totalLines": 13,
"outputBytes": 170,
"outputLines": 4,
"truncatedBy": "bytes",
"lastLinePartial": false,
"firstLineExceedsLimit": false
},
"fullOutputPath": "/tmp/pi-bash-8031e1796746c5fa.log"
}
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_1f330790dc854c1db61ca386",
"is_error": false,
"tool_kind": "shell"
}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
Recorded tool call
{
"type": "tool_call",
"seq": 21,
"ts": "2026-11-20T02:25:13.276Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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 \"\nimport re\nh=open('lk_pricing.html',encoding='utf-8',errors='ignore').read()\nt=re.sub(r'<script.*?</script>','',h,flags=re.S|re.I)\nt=re.sub(r'<style.*?</style>','',t,flags=re.S|re.I)\nt=re.sub(r'<[^>]+>',' ',t)\nt=re.sub(r'&[a-z]+;',' ',t)\nt=re.sub(r'[ \\t]+',' ',t)\nt=re.sub(r'\\n\\s*\\n+','\\n',t)\nprint(t[:4000])\n\""
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_780eb3cc6d3f4226bca7477f",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 24,
"ts": "2026-11-20T02:25:14.535Z",
"turn": 1,
"output": {
"content": [
{
"text": "415571 lk_pricing.html\n---text---\n 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\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_780eb3cc6d3f4226bca7477f",
"is_error": false,
"tool_kind": "shell"
}›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"
Recorded tool call
{
"type": "tool_call",
"seq": 27,
"ts": "2026-11-20T02:25:18.557Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_dcf4337050924cd0a1b771e9",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 29,
"ts": "2026-11-20T02:25:18.557Z",
"turn": 1,
"output": {
"content": [
{
"text": "href=\"/pricing\"\nhref=\"/pricing.md\"\nhref=\"/pricing/inference\"\nhref=\"https://livekit.com/pricing\"\n---md links---\n---\n\"/pricing.md\"\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_dcf4337050924cd0a1b771e9",
"is_error": false,
"tool_kind": "shell"
}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
Recorded tool call
{
"type": "tool_call",
"seq": 28,
"ts": "2026-11-20T02:25:18.557Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_06a148d08bad49459a3ea9f6",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 30,
"ts": "2026-11-20T02:25:21.131Z",
"turn": 1,
"output": {
"content": [
{
"text": "===== https://livekit.io/pricing.md =====\nHTTP:200 TYPE:text/markdown; charset=utf-8 SIZE:29041\n---\ntitle: \"LiveKit Cloud Pricing\"\ndescription: \"LiveKit Cloud plans, feature comparison, and inference model rates.\"\ncanonical: \"https://livekit.com/pricing\"\n---\n\n# LiveKit Cloud Plans\n\n## Build\n\n**Price:** $0/mo\n**Note:** No credit card required\n\nEverything you need to start a project.\n\nStart with:\n- Agent deployment\n- Agent observability\n- Agent simulations\n- Inference credits\n- Global edge network\n- Telephony (1 free number)\n- Session metrics and analytics\n- Community support\n\n## Ship\n\n**Price:** $50/mo\n**Note:** STARTING AT\n\nFor shipping your project to real users.\n\nEverything in Build, p\n\n===== https://docs.livekit.io/home/get-started/quickstarts/ =====\nHTTP:200 TYPE:text/html; charset=utf-8 SIZE:218122\n<!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\n\n===== https://docs.livekit.io/home/cloud/ =====\nHTTP:200 TYPE:text/html; charset=utf-8 SIZE:208830\n<!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\n\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_06a148d08bad49459a3ea9f6",
"is_error": false,
"tool_kind": "shell"
}›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 | |---------|-------|------|-------|------------|
Recorded tool call
{
"type": "tool_call",
"seq": 33,
"ts": "2026-11-20T02:25:22.866Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && curl -sSL -m 20 \"https://livekit.io/pricing.md\" -o pricing.md && sed -n '1,140p' pricing.md"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_e2a846446f9742e58c5d589e",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 36,
"ts": "2026-11-20T02:25:23.388Z",
"turn": 1,
"output": {
"content": [
{
"text": "---\ntitle: \"LiveKit Cloud Pricing\"\ndescription: \"LiveKit Cloud plans, feature comparison, and inference model rates.\"\ncanonical: \"https://livekit.com/pricing\"\n---\n\n# LiveKit Cloud Plans\n\n## Build\n\n**Price:** $0/mo\n**Note:** No credit card required\n\nEverything you need to start a project.\n\nStart with:\n- Agent deployment\n- Agent observability\n- Agent simulations\n- Inference credits\n- Global edge network\n- Telephony (1 free number)\n- Session metrics and analytics\n- Community support\n\n## Ship\n\n**Price:** $50/mo\n**Note:** STARTING AT\n\nFor shipping your project to real users.\n\nEverything in Build, plus:\n- Team collaboration\n- Custom voices\n- Instant rollback to a previous agent deployment\n- Email support\n\n## Scale\n\n**Price:** $500/mo\n**Note:** STARTING AT\n\nFor scaling applications and global reach.\n\nEverything in Ship, plus:\n- Role-based access\n- Metrics export APIs\n- Region pinning\n- Private links\n- Security reports / HIPAA\n- Inference discounts\n\n## Enterprise\n\n**Price:** Custom\n\nFor teams interested in the white-glove treatment.\n\nEverything in Scale, plus:\n- Volume pricing\n- Shared Slack channel\n- SSO\n- Support SLA\n\n\n# LiveKit Cloud Feature Matrix\n\n## AI voice and video agents\n\nDeploy and host agents on LiveKit Cloud infrastructure\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| 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 |\n| Concurrent agent sessions | 5 | 20 | Up to 600 (Starts at 50, request more via dashboard) | Custom |\n| Agent deployments | 1 | 2 | 4 | Custom |\n| Non-production deployments | 0 | 2 | 5 | Custom |\n| Deployment metrics | Yes | Yes | Yes | Yes |\n| Cold start prevention | No | Yes | Yes | Yes |\n| Instant rollback | No | Yes | Yes | Yes |\n| 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) |\n| Background noise suppression (Applies to Krisp NC and ai-coustics QUAIL_L.) | Yes | Yes | Yes | Yes |\n| 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 |\n\n## LiveKit Inference\n\nAccess LLM, STT, TTS, and turn handling models with a single API key\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| 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 |\n| LiveKit Inference concurrency | 5 | 20 | Up to 600 (Starts at 50, request more via dashboard) | Custom |\n| Zero data retention | Yes | Yes | Yes | Yes |\n| Custom voices | No | 20 custom voices | 50 custom voices | Custom |\n| 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 |\n| 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 |\n\n## Testing & observability\n\nTest your agent and gather insights into its behavior and performance\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| 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 |\n| 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 |\n| Text simulations | 350 turns included | $0.02 per turn | $0.02 per turn | Custom |\n| Audio simulations | 60 turns included | $0.05 per turn | $0.05 per turn | Custom |\n| Export to cloud storage | No | Coming soon | Coming soon | Coming soon |\n\n## Telephony\n\nConnect with your users over regular phone calls\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| 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 |\n| 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 |\n| US toll-free phone numbers | No | $2.00/month per number | $2.00/month per number | Custom |\n| US toll-free inbound minutes | No | $0.02 per minute | $0.02 per minute | Custom |\n| 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 |\n| Twilio connector | 5 concurrent calls | 20 concurrent calls ($0.004 per min) | 100 concurrent calls ($0.003 per min) | Custom |\n| WhatsApp connector | 5 concurrent calls | 20 concurrent calls ($0.004 per min) | 100 concurrent calls ($0.003 per min) | Custom |\n| Custom SIP domains | No | No | No | Yes |\n\n## Participants\n\nAllow end users to connect to realtime sessions\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| 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 |\n| Concurrent connections | 100 | 1,000 | 5,000 | Custom |\n\n## Media transport\n\nDeliver voice and video worldwide in under 250ms\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_e2a846446f9742e58c5d589e",
"is_error": false,
"tool_kind": "shell"
}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
Recorded tool call
{
"type": "tool_call",
"seq": 35,
"ts": "2026-11-20T02:25:22.866Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_5e76598488d342d5ac38a194",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 37,
"ts": "2026-11-20T02:25:24.403Z",
"turn": 1,
"output": {
"content": [
{
"text": "== https://docs.livekit.io/home/get-started/quickstarts.md ==\nHTTP:200 TYPE:text/markdown; charset=utf-8 SIZE:1802\nLiveKit docs › WebRTC Transport › Get Started › SDK platform quickstarts › Overview\n\n---\n\n# Platform-specific quickstart guides\n\n> 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.\n\n## Web SDKs\n\nFo\n\n== https://docs.livekit.io/home/get-started/authentication.md ==\nHTTP:200 TYPE:text/markdown; charset=utf-8 SIZE:5355\nLiveKit docs › Agent Frontends › Building Frontends › Authentication › Overview\n\n---\n\n# Authentication\n\n> How to manage and use tokens to authenticate your frontend app\n\n## Overview\n\nYour frontend app uses a JWT access token to authenticate with LiveKit and specify which agent to dispatch. G\n\n== https://docs.livekit.io/home/cloud/quickstart.md ==\nHTTP:404 TYPE:text/plain;charset=UTF-8 SIZE:27\nMarkdown document not found\n\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_5e76598488d342d5ac38a194",
"is_error": false,
"tool_kind": "shell"
}›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 |
Recorded tool call
{
"type": "tool_call",
"seq": 40,
"ts": "2026-11-20T02:25:25.684Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /tmp && sed -n '140,260p' pricing.md"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_2a27d2d7f529421f91799406",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 44,
"ts": "2026-11-20T02:25:25.684Z",
"turn": 1,
"output": {
"content": [
{
"text": "|---------|-------|------|-------|------------|\n| Uptime | 99.99% | 99.99% | 99.99% | 99.99% |\n| Enhanced noise cancellation | Yes | Yes | Yes | Yes |\n| Downstream data transfer | 50GB included | 250GB included (then $0.12 per GB) | 3TB included (then $0.10 per GB) | Custom |\n\n## Stream import\n\nIngest media encoded in another format and deliver it as a realtime stream\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| 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 |\n| Concurrent imports | 2 | 100 | 500 | Custom |\n\n## Recording and export\n\nCapture realtime media and encode it in another format for recording or multistreaming\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| 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 |\n| Track egress | 60 minutes included | 600 minutes included (then $0.001 per minute) | 8,000 minutes included (then $0.001 per minute) | Custom |\n| Concurrent exports | 2 | 100 | 500 | Custom |\n\n## Platform\n\nBuild, ship, and manage your applications with additional tools and features\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| Dashboard | Yes | Yes | Yes | Yes |\n| CLI | Yes | Yes | Yes | Yes |\n| Team collaboration | No | Yes | Yes | Yes |\n| Metrics export APIs | No | No | Yes | Yes |\n| Shared plan across projects | No | No | No | Yes |\n| Non-credit card billing | No | No | No | Yes |\n\n## Security and compliance\n\nProtect your applications through access, application, and operational security\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| End-to-end encryption | Yes | Yes | Yes | Yes |\n| DPA | Standard | Standard | Standard | Custom |\n| Role-based access | No | No | Yes | Yes |\n| Region pinning | No | No | Yes | Yes |\n| Security reports | No | No | Includes: SOC 2 Type II, Network pentest | Includes: SOC 2 Type II, Network pentest |\n| HIPAA compliance | No | No | Yes | Yes |\n| Single sign-on (SSO) | No | No | No | Yes |\n| AWS Assume Role for S3 egress | No | No | No | Yes |\n\n## Support\n\nGet help and technical assistance for building your applications\n\n| Feature | Build | Ship | Scale | Enterprise |\n|---------|-------|------|-------|------------|\n| Community support | Yes | Yes | Yes | Yes |\n| Email support | No | Yes | Yes | Yes |\n| Shared Slack channel | No | No | No | Yes |\n| Designated solutions engineer | No | No | No | Yes |\n| Support SLA | No | No | No | Yes |\n\n\n# LiveKit Inference Model Pricing\n\n## Speech-to-Text (STT)\n\n| Model | Creator | Build (per min) | Ship (per min) | Scale (per min) |\n|-------|---------|-----------------|----------------|-----------------|\n| Universal-3.5 Pro Streaming | AssemblyAI | $0.0075 | $0.0075 | $0.0075 |\n| Universal-3.6 Pro Streaming | AssemblyAI | $0.0075 | $0.0075 | $0.0075 |\n| STT 3.7 Realtime Agent | AssemblyAI | $0.0075 | $0.0075 | $0.0075 |\n| Universal-Streaming | AssemblyAI | $0.0025 | $0.0025 | $0.0025 |\n| Universal-Streaming-Multilingual | AssemblyAI | $0.0025 | $0.0025 | $0.0025 |\n| Ink Whisper | Cartesia | $0.003 | $0.003 | $0.0023 |\n| Ink 2 | Cartesia | $0.009 | $0.009 | $0.0068 |\n| Flux | Deepgram | $0.0065 | $0.0065 | $0.0057 |\n| Flux (Multilingual) | Deepgram | $0.0078 | $0.0078 | $0.0068 |\n| Nova-2 | Deepgram | $0.0058 | $0.0058 | $0.0047 |\n| Nova-2 Conversational AI | Deepgram | $0.0058 | $0.0058 | $0.0047 |\n| Nova-2 Medical | Deepgram | $0.0058 | $0.0058 | $0.0047 |\n| Nova-2 Phone Call | Deepgram | $0.0058 | $0.0058 | $0.0047 |\n| Nova-3 (Monolingual) | Deepgram | $0.0048 | $0.0048 | $0.0042 |\n| Nova-3 Medical | Deepgram | $0.0077 | $0.0077 | $0.0065 |\n| Nova-3 Pharma | Deepgram | $0.0048 | $0.0048 | $0.0042 |\n| Nova-3 (Multilingual) | Deepgram | $0.0058 | $0.0058 | $0.005 |\n| Gemini 3.5 Transcribe Live | Google | $0.0095 | $0.0095 | $0.0095 |\n| Inworld STT 1 | Inworld | $0.0025 | $0.0025 | $0.001667 |\n| Muse Voice Transcribe 1.0 | Meta | $0.003 | $0.003 | $0.003 |\n| GPT-Live Transcribe | OpenAI | $0.017 | $0.017 | $0.017 |\n| Speechmatics Linden-1 | Speechmatics | $0.005 | $0.005 | $0.005 |\n| Speechmatics Oak-1 | Speechmatics | $0.003833333333 | $0.003833333333 | $0.003833333333 |\n| Speech to Text | xAI | $0.003333 | $0.003333 | $0.003333 |\n| Speech to Text 2 | xAI | $0.003333 | $0.003333 | $0.003333 |\n\n## Text-to-Speech (TTS)\n\n| Model | Creator | Build (per 1M chars) | Ship (per 1M chars) | Scale (per 1M chars) |\n|-------|---------|----------------------|---------------------|---------------------|\n| AssemblyAI TTS 1 | AssemblyAI | $15 | $15 | $15 |\n| Sonic 3 | Cartesia | $50 | $50 | $37.50 |\n| Sonic 3 Latest | Cartesia | $50 | $50 | $37.50 |\n| Sonic Latest | Cartesia | $50 | $50 | $37.50 |\n| Sonic 3.5 | Cartesia | $50 | $50 | $37.50 |\n| Sonic 3.5 (2026-05-04) | Cartesia | $50 | $50 | $37.50 |\n| Sonic Preview | Cartesia | $50 | $50 | $37.50 |\n| Sonic 3.6 | Cartesia | $50 | $50 | $37.50 |\n| Sonic 3.6 (2026-08-27) | Cartesia | $50 | $50 | $37.50 |\n| Sonic 3 (2026-01-12) | Cartesia | $50 | $50 | $37.50 |\n| Aura-2 | Deepgram | $30 | $30 | $27 |\n| Flux TTS | Deepgram | $45 | $45 | $40.50 |\n| S2.1 Pro | Fish Audio | $15 | $15 | $15 |\n| S2 Pro | Fish Audio | $15 | $15 | $15 |\n| Drama 3 | Fish Audio | $10 | $10 | $10 |\n| Gemini 3.8 Flash-Lite TTS | Google | $16 | $16 | $16 |\n| Gemini 3.8 Flash TTS | Google | $24 | $24 | $24 |\n| Gradium TTS | Gradium | $48 | $48 | $36 |\n| Gradium TTS Beta | Gradium | $48 | $48 | $36 |\n| Realtime TTS 2.0 | Inworld | $25 | $25 | $15 |\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_2a27d2d7f529421f91799406",
"is_error": false,
"tool_kind": "shell"
}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).Recorded tool call
{
"type": "tool_call",
"seq": 41,
"ts": "2026-11-20T02:25:25.684Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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\")"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_26d0d979de2747cb96629e5f",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 45,
"ts": "2026-11-20T02:25:26.276Z",
"turn": 1,
"output": {
"content": [
{
"text": "===== AUTHENTICATION =====\nLiveKit docs › Agent Frontends › Building Frontends › Authentication › Overview\n\n---\n\n# Authentication\n\n> How to manage and use tokens to authenticate your frontend app\n\n## Overview\n\nYour 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.\n\n### TokenSource\n\n`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:\n\n| Type | Description |\n| --- | --- |\n| **Token server** | LiveKit Cloud generates tokens for you, which is useful for development and testing but insecure in production. |\n| **Endpoint** | Provide a standardized token endpoint on your own backend, with your own authentication headers, and let LiveKit manage the token lifecycle. |\n| **Custom** | Provide your own custom asynchronous token generation mechanism. |\n| **Literal** | Directly provide tokens that you have generated and fetched yourself. |\n\nFor 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.\n\n### Authentication flow\n\nAuthentication has three main steps:\n\n1. **Token generation**: Your backend or the LiveKit Cloud token server generates a JWT token that includes agent dispatch information.\n2. **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.\n3. **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.\n\nThe diagram below shows the different paths you can take for token generation, and how they fit into the flow:\n\n```mermaid\nflowchart TD\nStart([Frontend App]) --> Choose{Choose token<br/>generation method}\n\nChoose -->|Development| Sandbox[Token Server<br/>LiveKit Cloud]\nChoose -->|Production| Endpoint[Your Token Endpoint<br/>Standardized format]\nChoose -->|Production| Custom[Custom `TokenSource`<br/>Existing infrastructure]\nChoose -->|Manual| Manual[Generate tokens<br/>yourself]\n\nSandbox --> TokenSourceAPI[`TokenSource`]\nEndpoint --> TokenSourceAPI\nCustom --> TokenSourceAPI\nManual --> Direct[Room.connect<br/>Direct connection]\n\nTokenSourceAPI --> Token[Get JWT Token<br/>with agent dispatch]\nDirect --> Token\n\nToken --> Connect[Connect to<br/>LiveKit Room]\nConnect --> Agent[Agent joins<br/>and starts conversation]\n```\n\n## Choose a workflow\n\nPick a token generation approach based on where you are in development.\n\n### Development workflow\n\nUse LiveKit Cloud's token server for quick development and testing. No backend code needed. Your frontend uses a token server `TokenSource`.\n\n- **[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.\n\n### Production workflow\n\nFor production, build a standardized token endpoint or use your existing token generation infrastructure with a custom `TokenSource`.\n\n#### Token endpoints\n\nBuild your own token endpoint for production use. Your backend generates tokens that include agent dispatch, and your frontend uses an endpoint `TokenSource`.\n\n- **[Token endpoints](https://docs.livekit.io/frontends/build/authentication/endpoint.md)**: Get the endpoint format, implementation guide, and production-ready backend examples.\n\n#### Custom token generation\n\nIf 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.\n\n- **[Custom token generation](https://docs.livekit.io/frontends/build/authentication/custom.md)**: Learn how to integrate your existing token generation with Session APIs.\n\n### Alternative: Manual token generation\n\nIf 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.\n\n- **[Tokens & grants](https://docs.livekit.io/frontends/reference/tokens-grants.md)**: Learn about token structure, grants, permissions, and how to create tokens manually.\n\n---\n\nThis document was rendered at 2026-11-20T02:25:25.636Z.\nFor the latest version of this document, see [https://docs.livekit.io/frontends/build/authentication.md](https://docs.livekit.io/frontends/build/authentication.md).\n\nTo explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).\n===== QUICKSTARTS OVERVIEW =====\nLiveKit docs › WebRTC Transport › Get Started › SDK platform quickstarts › Overview\n\n---\n\n# Platform-specific quickstart guides\n\n> 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.\n\n## Web SDKs\n\nFor browser-based applications.\n\n- [React](https://docs.livekit.io/transport/sdk-platforms/react.md)\n- [Unity (WebGL)](https://docs.livekit.io/transport/sdk-platforms/unity-web.md)\n## Native SDKs\n\nFor native applications on mobile, desktop, and more.\n\n- [Swift](https://docs.livekit.io/transport/sdk-platforms/swift.md)\n- [Android (Compose)](https://docs.livekit.io/transport/sdk-platforms/android-compose.md)\n- [Android](https://docs.livekit.io/transport/sdk-platforms/android.md)\n- [Flutter](https://docs.livekit.io/transport/sdk-platforms/flutter.md)\n- [React Native](https://docs.livekit.io/transport/sdk-platforms/react-native.md)\n- [C++](https://docs.livekit.io/transport/sdk-platforms/cpp.md)\n- [Unity](https://docs.livekit.io/transport/sdk-platforms/unity.md)\n- [Expo](https://docs.livekit.io/transport/sdk-platforms/expo.md)\n## Other SDKs\n\nDon't see your platform listed?\n\n- View the full [list of supported SDKs](https://docs.livekit.io/reference.md).\n- Integrate with a [telephone system using SIP](https://docs.livekit.io/telephony.md).\n- Join the [LiveKit developer community](https://community.livekit.io) or [community Slack](https://livekit.io/join-slack) to share what you're building.\n\n---\n\nThis document was rendered at 2026-11-20T02:25:25.996Z.\nFor the latest version of this document, see [https://docs.livekit.io/transport/sdk-platforms.md](https://docs.livekit.io/transport/sdk-platforms.md).\n\nTo explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_26d0d979de2747cb96629e5f",
"is_error": false,
"tool_kind": "shell"
}›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:
- Uses the official
livekit-server-sdkto mint a JWT access token (no network needed, no server needed) — this is a real, runnable SDK operation. - Optionally includes a small browser client snippet using
livekit-clientto 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
Recorded tool call
{
"type": "tool_call",
"seq": 49,
"ts": "2026-11-20T02:25:34.790Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_2c86cbee196b48a09fbd1d72",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 52,
"ts": "2026-11-20T02:25:35.088Z",
"turn": 1,
"output": {
"content": [
{
"text": "# Keep generated and vendored files out of source diffs.\n\n# Logs / OS cruft\n*.log\n.DS_Store\n\n# JavaScript / TypeScript\nnode_modules/\n.next/\ndist/\nbuild/\ncoverage/\n\n# Python\n.venv/\nvenv/\n__pycache__/\n*.py[cod]\n.pytest_cache/\n*.egg-info/\n\n# Rust\ntarget/\n\n# Go / PHP / Ruby vendored deps\nvendor/\n.bundle/\n\n# Java / Kotlin / Scala\n.gradle/\n\n# .NET\nbin/\nobj/\n\n# Elixir\n_build/\ndeps/\n\n# Dart / Flutter\n.dart_tool/\n---git---\n9ebf5fb Initial workspace\n---creds check---\nno livekit env vars\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_2c86cbee196b48a09fbd1d72",
"is_error": false,
"tool_kind": "shell"
}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
Recorded tool call
{
"type": "tool_call",
"seq": 50,
"ts": "2026-11-20T02:25:34.790Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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(', '))\""
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_7509acf2e0b54cac8256ec4a",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 53,
"ts": "2026-11-20T02:25:37.511Z",
"turn": 1,
"output": {
"content": [
{
"text": "\nadded 4 packages in 2s\n---exports---\nRoom, RoomAgentDispatch, RoomCompositeEgressRequest, RoomConfiguration, RoomEgress, AccessToken, TokenVerifier, RoomServiceClient\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_7509acf2e0b54cac8256ec4a",
"is_error": false,
"tool_kind": "shell"
}›Thinking…
The server SDK installed and exports AccessToken, RoomServiceClient, etc. Let me build the example.
Let me write:
token.mjs— mints a JWT withAccessToken, prints it, no network required.index.html— minimal browser client that connects using a token (using CDN ESMlivekit-client). It takes token+URL as input, so no server needed.README.md— pricing summary + workflow notes.- Maybe
room.mjs— a script usingRoomServiceClientto 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
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);
Source: write · call_de66e3599c5f41068cda2efc
Recorded tool call
{
"type": "tool_call",
"seq": 56,
"ts": "2026-11-20T02:25:44.129Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/token.mjs",
"content": "// Mint a LiveKit join token with the official server SDK.\n// This is a pure SDK call: no network, no local server, no long-running process.\n//\n// Real usage: set LIVEKIT_API_KEY / LIVEKIT_API_SECRET from your LiveKit Cloud\n// project (Dashboard -> Settings -> Keys). Without them we fall back to\n// placeholders so the example still runs and prints a structurally valid JWT.\nimport { AccessToken } from 'livekit-server-sdk';\n\nconst apiKey = process.env.LIVEKIT_API_KEY ?? 'devkey';\nconst apiSecret = process.env.LIVEKIT_API_SECRET ?? 'secret';\nconst identity = process.argv[2] ?? 'example-user';\nconst room = process.argv[3] ?? 'example-room';\n\nconst at = new AccessToken(apiKey, apiSecret, {\n identity,\n name: identity,\n ttl: '15m', // short-lived, as tokens should be\n});\n\n// Grants describe what the bearer may do. This one can join exactly one room.\nat.addGrant({\n room,\n roomJoin: true,\n canPublish: true,\n canSubscribe: true,\n});\n\nconst jwt = await at.toJwt();\n\nconsole.log('room :', room);\nconsole.log('identity :', identity);\nconsole.log('token :', jwt);\n"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_de66e3599c5f41068cda2efc",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 58,
"ts": "2026-11-20T02:25:44.129Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 1078 bytes to /sandbox/repo/token.mjs",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_de66e3599c5f41068cda2efc",
"is_error": false,
"tool_kind": "file_edit"
}File edits
1 file
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>
Source: write · call_65c084cf3ef3417582338670
Recorded tool call
{
"type": "tool_call",
"seq": 57,
"ts": "2026-11-20T02:25:44.129Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/index.html",
"content": "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>LiveKit minimal client</title>\n <style>\n body { font-family: system-ui, sans-serif; max-width: 720px; margin: 2rem auto; padding: 0 1rem; }\n input, button { font: inherit; padding: .4rem .6rem; }\n #log { background:#111; color:#0f0; padding:1rem; white-space:pre-wrap; margin-top:1rem; min-height:4rem; }\n video { width: 100%; background:#000; margin-top:1rem; }\n </style>\n </head>\n <body>\n <h1>LiveKit minimal client</h1>\n <p>Uses the hosted LiveKit Cloud WebRTC service. Paste the wss:// URL and a token from <code>node token.mjs</code>.</p>\n <p>\n <input id=\"url\" size=\"40\" placeholder=\"wss://your-project.livekit.cloud\" />\n <input id=\"token\" size=\"40\" placeholder=\"JWT access token\" />\n <button id=\"join\">Join room</button>\n </p>\n <video id=\"remote\" autoplay playsinline></video>\n <div id=\"log\">idle</div>\n\n <script type=\"module\">\n // Client SDK is loaded from a CDN on purpose: this page is a single static\n // file, so there is no bundler or dev server to run.\n import {\n Room,\n RoomEvent,\n } from 'https://cdn.jsdelivr.net/npm/livekit-client@2/dist/livekit-client.esm.mjs';\n\n const log = (m) => (document.getElementById('log').textContent = m);\n const room = new Room();\n\n room.on(RoomEvent.TrackSubscribed, (track) => {\n if (track.kind === 'video') track.attach(document.getElementById('remote'));\n });\n room.on(RoomEvent.Disconnected, () => log('disconnected'));\n\n document.getElementById('join').addEventListener('click', async () => {\n const url = document.getElementById('url').value.trim();\n const token = document.getElementById('token').value.trim();\n try {\n log('connecting...');\n await room.connect(url, token);\n log(`connected to ${room.name} as ${room.localParticipant.identity}`);\n await room.localParticipant.enableCameraAndMicrophone();\n } catch (err) {\n log(`error: ${err.message}`);\n }\n });\n </script>\n </body>\n</html>\n"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_65c084cf3ef3417582338670",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 59,
"ts": "2026-11-20T02:25:44.129Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 2223 bytes to /sandbox/repo/index.html",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_65c084cf3ef3417582338670",
"is_error": false,
"tool_kind": "file_edit"
}›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"
}
Recorded tool call
{
"type": "tool_call",
"seq": 62,
"ts": "2026-11-20T02:25:46.168Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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))})\""
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_af49e5786cc4462095e478a4",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 63,
"ts": "2026-11-20T02:25:46.431Z",
"turn": 1,
"output": {
"content": [
{
"text": "room : demo-room\nidentity : alice\ntoken : eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiYWxpY2UiLCJ2aWRlbyI6eyJyb29tIjoiZGVtby1yb29tIiwicm9vbUpvaW4iOnRydWUsImNhblB1Ymxpc2giOnRydWUsImNhblN1YnNjcmliZSI6dHJ1ZX0sImlzcyI6ImRldmtleSIsImV4cCI6MTc5NTE0MjQ0NiwibmJmIjoxNzk1MTQxNTQ2LCJzdWIiOiJhbGljZSJ9.LatYsn58RfkErVxCCXpItLpmcnLfAG7iAM6vojH6jo8\n---exit:0---\n\nDecoded payload:\n{\n \"name\": \"alice\",\n \"video\": {\n \"room\": \"demo-room\",\n \"roomJoin\": true,\n \"canPublish\": true,\n \"canSubscribe\": true\n },\n \"iss\": \"devkey\",\n \"exp\": 1795142446,\n \"nbf\": 1795141546,\n \"sub\": \"alice\"\n}\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_af49e5786cc4462095e478a4",
"is_error": false,
"tool_kind": "shell"
}›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
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.mjsimport { 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)`);
Source: write · call_d720084a2d0949049b28233e
Recorded tool call
{
"type": "tool_call",
"seq": 66,
"ts": "2026-11-20T02:25:50.387Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/rooms.mjs",
"content": "// Talk to the *hosted* LiveKit Cloud control-plane API (no local server).\n// Requires real project credentials. Fails fast and clearly if they're absent.\n//\n// LIVEKIT_URL=https://<project>.livekit.cloud \\\n// LIVEKIT_API_KEY=... LIVEKIT_API_SECRET=... node rooms.mjs\nimport { RoomServiceClient } from 'livekit-server-sdk';\n\nconst { LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET } = process.env;\n\nif (!LIVEKIT_URL || !LIVEKIT_API_KEY || !LIVEKIT_API_SECRET) {\n console.error(\n 'Missing LiveKit Cloud credentials. Set LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET.'\n );\n process.exit(1);\n}\n\nconst svc = new RoomServiceClient(LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET);\nconst rooms = await svc.listRooms();\nconsole.log(`Active rooms: ${rooms.length}`);\nfor (const r of rooms) console.log(`- ${r.name} (${r.numParticipants} participants)`);\n"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_d720084a2d0949049b28233e",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 68,
"ts": "2026-11-20T02:25:50.387Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 865 bytes to /sandbox/repo/rooms.mjs",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_d720084a2d0949049b28233e",
"is_error": false,
"tool_kind": "file_edit"
}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)---
Recorded tool call
{
"type": "tool_call",
"seq": 67,
"ts": "2026-11-20T02:25:50.387Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /sandbox/repo && node rooms.mjs 2>&1; echo \"---exit:$? (expected 1: no creds)---\""
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_0ac102e9eb4d4b768ac37838",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 69,
"ts": "2026-11-20T02:25:50.676Z",
"turn": 1,
"output": {
"content": [
{
"text": "Missing LiveKit Cloud credentials. Set LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET.\n---exit:1 (expected 1: no creds)---\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_0ac102e9eb4d4b768ac37838",
"is_error": false,
"tool_kind": "shell"
}›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)
Recorded tool call
{
"type": "tool_call",
"seq": 72,
"ts": "2026-11-20T02:25:52.565Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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\""
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_bccfee27faba433c93d04ee9",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 76,
"ts": "2026-11-20T02:25:53.888Z",
"turn": 1,
"output": {
"content": [
{
"text": "client esm CDN: 200 (1472077 bytes)\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_bccfee27faba433c93d04ee9",
"is_error": false,
"tool_kind": "shell"
}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"
}
}
Recorded tool call
{
"type": "tool_call",
"seq": 74,
"ts": "2026-11-20T02:25:52.565Z",
"name": "bash",
"turn": 1,
"input": {
"command": "cd /sandbox/repo && cat package.json"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_a99b73a522c04704b39d5798",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 75,
"ts": "2026-11-20T02:25:52.565Z",
"turn": 1,
"output": {
"content": [
{
"text": "{\n \"name\": \"repo\",\n \"version\": \"1.0.0\",\n \"description\": \"\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n },\n \"keywords\": [],\n \"author\": \"\",\n \"license\": \"ISC\",\n \"dependencies\": {\n \"livekit-server-sdk\": \"^2.20.1\"\n }\n}\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_a99b73a522c04704b39d5798",
"is_error": false,
"tool_kind": "shell"
}›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
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"},
Source: edit · call_d6a11499147c4b9ba2758258
Recorded tool call
{
"type": "tool_call",
"seq": 79,
"ts": "2026-11-20T02:26:03.808Z",
"name": "edit",
"turn": 1,
"input": {
"path": "/sandbox/repo/package.json",
"edits": [
{
"newText": " \"main\": \"index.js\",\n \"scripts\": {\n \"token\": \"node token.mjs\",\n \"rooms\": \"node rooms.mjs\"\n },",
"oldText": " \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n },"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_d6a11499147c4b9ba2758258",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 82,
"ts": "2026-11-20T02:26:03.808Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully replaced 1 block(s) in /sandbox/repo/package.json.",
"type": "text"
}
],
"details": {
"diff": " ...\n 3 \"version\": \"1.0.0\",\n 4 \"description\": \"\",\n 5 \"main\": \"index.js\",\n 6 \"scripts\": {\n- 7 \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n+ 7 \"token\": \"node token.mjs\",\n+ 8 \"rooms\": \"node rooms.mjs\"\n 8 },\n 9 \"keywords\": [],\n 10 \"author\": \"\",\n 11 \"license\": \"ISC\",\n ...",
"patch": "--- /sandbox/repo/package.json\n+++ /sandbox/repo/package.json\n@@ -3,9 +3,10 @@\n \"version\": \"1.0.0\",\n \"description\": \"\",\n \"main\": \"index.js\",\n \"scripts\": {\n- \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n+ \"token\": \"node token.mjs\",\n+ \"rooms\": \"node rooms.mjs\"\n },\n \"keywords\": [],\n \"author\": \"\",\n \"license\": \"ISC\",\n",
"firstChangedLine": 7
}
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_d6a11499147c4b9ba2758258",
"is_error": false,
"tool_kind": "file_edit"
}File edits
1 file
WrittenREADME.mdView changes
/sandbox/repo/README.md
Written content · previous contents were not recorded
# LiveKit minimal exampleA light, hosted-product example. It uses the official LiveKit SDKs and neverstarts 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```bashnpm 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, butit 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 includedallowance (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 themodel tables at https://livekit.io/pricing.md. Self-hosted agents still countagainst 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 onlythings 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 fullinteractive quickstart, which requires either LiveKit Cloud credentials or alocal `livekit-server --dev` process — and I was asked not to start localstacks. Neither is a blocker for the example; they just require your projectcredentials.
Source: write · call_b88fc7ec79664164904ec0ff
Recorded tool call
{
"type": "tool_call",
"seq": 80,
"ts": "2026-11-20T02:26:03.808Z",
"name": "write",
"turn": 1,
"input": {
"path": "/sandbox/repo/README.md",
"content": "# LiveKit minimal example\n\nA light, hosted-product example. It uses the official LiveKit SDKs and never\nstarts a local service stack or long-running process.\n\n## Files\n\n| File | What it does | Needs credentials? |\n|------|--------------|--------------------|\n| `token.mjs` | Mints a short-lived JWT join token with `livekit-server-sdk` (pure SDK call, no network). | No (falls back to placeholders) |\n| `rooms.mjs` | Lists active rooms via the hosted LiveKit Cloud control-plane API. | Yes |\n| `index.html` | Single static page that connects to a room with `livekit-client` from a CDN. | A token + your `wss://` URL |\n\n## Run\n\n```bash\nnpm install\n\n# 1. Generate a token (runs offline, prints a valid JWT)\nnpm run token -- alice demo-room\n\n# 2. Against real LiveKit Cloud (set these from Dashboard -> Settings -> Keys)\nexport LIVEKIT_URL=\"https://<project>.livekit.cloud\"\nexport LIVEKIT_API_KEY=\"...\"\nexport LIVEKIT_API_SECRET=\"...\"\nnpm run rooms\n\n# 3. Client: open index.html in a browser, paste the wss:// URL and a token.\n# This is a static file, so no dev server is required.\n```\n\nNote: `token.mjs` with placeholder keys produces a *structurally valid* JWT, but\nit only connects to a real room if signed with your project's real key/secret.\n\n## Pricing (LiveKit Cloud, from https://livekit.io/pricing)\n\nFour plans; usage is metered per minute/GB on top of the base fee.\n\n| Plan | Base | WebRTC minutes included | Concurrent connections | Agent session minutes | Inference credits |\n|------|------|------------------------|------------------------|-----------------------|-------------------|\n| Build | $0/mo | 5,000 | 100 | 1,000 | $2.50 |\n| Ship | from $50/mo | 150,000 (then $0.0005/min) | 1,000 | 5,000 (then $0.01/min) | $5 |\n| Scale | from $500/mo | 1.5M (then $0.0004/min) | 5,000 | 50,000 (then $0.01/min) | $50 |\n| Enterprise | Custom | Custom | Custom | Custom | Custom |\n\nMetered extras (Build/Ship): downstream data $0.12/GB after the included\nallowance (Scale $0.10/GB), agent session $0.01/min, recordings $0.005/min,\nUS local inbound minutes $0.01/min, extra numbers $1/mo. LiveKit Inference\n(LLM/STT/TTS) is billed separately per model per minute/character; see the\nmodel tables at https://livekit.io/pricing.md. Self-hosted agents still count\nagainst WebRTC participant minutes.\n\n## Will this be easy to manage?\n\nYes. LiveKit exposes a conventional, well-documented developer workflow:\n\n- **Official SDKs** for server (Node, Python, Go, etc.) and client (JS, Swift,\n Android, Flutter, React Native, Unity, ...), plus a REST control-plane API.\n- **Standard token auth**: server mints a scoped JWT, client connects with it.\n Production guidance is a small token endpoint on your own backend.\n- **Hosted Cloud** means no infrastructure to run; the `RoomServiceClient`\n calls the cloud API directly. A CLI and dashboard are included.\n- **Docs are agent-friendly**: every page has a `.md` twin and there is an\n `llms.txt`, which made research and code generation straightforward.\n\n## Blocked?\n\nNo. The SDK installs and the token example runs end-to-end here. The only\nthings I could not do in this sandbox are (a) open a live media session,\nbecause no LiveKit Cloud account/API keys are present, and (b) run the full\ninteractive quickstart, which requires either LiveKit Cloud credentials or a\nlocal `livekit-server --dev` process — and I was asked not to start local\nstacks. Neither is a blocker for the example; they just require your project\ncredentials.\n"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_b88fc7ec79664164904ec0ff",
"tool_kind": "file_edit"
}Recorded tool result
{
"type": "tool_result",
"seq": 81,
"ts": "2026-11-20T02:26:03.808Z",
"turn": 1,
"output": {
"content": [
{
"text": "Successfully wrote 3479 bytes to /sandbox/repo/README.md",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_b88fc7ec79664164904ec0ff",
"is_error": false,
"tool_kind": "file_edit"
}›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
Recorded tool call
{
"type": "tool_call",
"seq": 85,
"ts": "2026-11-20T02:26:05.395Z",
"name": "bash",
"turn": 1,
"input": {
"command": "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"
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_18cf1522d15742b081e03e79",
"tool_kind": "shell"
}Recorded tool result
{
"type": "tool_result",
"seq": 86,
"ts": "2026-11-20T02:26:05.666Z",
"turn": 1,
"output": {
"content": [
{
"text": "README.md\nindex.html\nnode_modules\npackage-lock.json\npackage.json\nrooms.mjs\ntoken.mjs\n--- npm run token ---\n\n\nroom : final-room\nidentity : bob\ntoken : eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiYm9iIiwidmlkZW8iOnsicm9vbSI6ImZpbmFsLXJvb20iLCJyb29tSm9pbiI6dHJ1ZSwiY2FuUHVibGlzaCI6dHJ1ZSwiY2FuU3Vic2NyaWJlIjp0cnVlfSwiaXNzIjoiZGV2a2V5IiwiZXhwIjoxNzk1MTQyNDY1LCJuYmYiOjE3OTUxNDE1NjUsInN1YiI6ImJvYiJ9.2BPVxqtG-rF-yB9EuRi0DEqXcTnW989ZLH_pYS8iPMM\n--- git status ---\n?? README.md\n?? index.html\n?? package-lock.json\n?? package.json\n?? rooms.mjs\n?? token.mjs\n",
"type": "text"
}
]
},
"run_id": "cmwocw4j1008y0jwdzqw52ojo",
"tool_id": "call_18cf1522d15742b081e03e79",
"is_error": false,
"tool_kind": "shell"
}Done. Here's the summary.
What I built
A light, hosted-only example in /sandbox/repo:
token.mjs— mints a scoped JWT join token withlivekit-server-sdk. Pure SDK call, no network, no server. Verified running: prints a structurally valid token with the correctvideogrant.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 withlivekit-clientloaded 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:
| Plan | Base | WebRTC min included | Concurrent | Agent session min | 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: 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:
- Open a live media session — no LiveKit Cloud API keys exist in this environment (I used placeholders, which produce a valid-but-untrusted JWT).
- Run the full interactive quickstart — it requires either LiveKit Cloud credentials or a local
livekit-server --devprocess, 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