Blog: LiveKit AI Agent Development: Complete Guide to Architecture, Costs, and Implementation

Key takeaways

LiveKit Agents is a worker-based framework that glues WebRTC to STT, LLM and TTS. It is the most provider-flexible way to ship a real-time voice agent in 2026 — mix Deepgram, Claude or GPT, ElevenLabs or Cartesia, and swap providers in one config line.

Realistic all-in cost is $0.06–$0.15 per agent-minute when you assemble the stack yourself. At 100k minutes a month, Cartesia TTS and LLM tokens dominate the bill; LiveKit Cloud itself is ~15–20% of the total.

Latency budget: under 800ms time-to-first-audio. VAD 50ms + STT 150ms + LLM TTFT 400ms + TTS 150ms + network 50ms. Blow any single stage and the agent feels sluggish.

Realtime APIs (OpenAI Realtime, Gemini Live) beat cascading stacks on latency but lock you to one provider. Use them when speed matters more than provider swap-ability; use LiveKit Agents when cost control and choice matter.

Compliance is architecture, not paperwork. TCPA consent capture, HIPAA BAAs with every provider, PCI DTMF masking, STIR/SHAKEN on US outbound — all must be baked in from day one.

Why Fora Soft wrote this playbook

Fora Soft has shipped WebRTC voice and video products since 2005 and LiveKit-based products since the framework matured. Our LiveKit expertise page and our AI integration service list the full scope; this guide is the condensed version of the opinion we share on a 30-minute scoping call.

We ship with Agent Engineering — senior engineers driving AI coding agents across design, dispatching, prompt engineering and QA. On voice-agent projects, that compresses a classical 12–16 week MVP to 6–8 weeks at a smaller headcount. The pattern has been battle-tested on products that handle thousands of concurrent sessions — including our work on Scholarly, where LiveKit backs 2,000-seat live classrooms.

The article answers the four questions teams ask us in order: what is LiveKit Agents today, how do I architect one, what does it cost, and when should I pick something else. Read it end-to-end and you will stop arguing about framework brand names and start arguing about the right things — latency, cost and compliance.

Planning a LiveKit voice agent?

Book a 30-minute scoping call — we’ll map your call pattern to the right STT, LLM, TTS and telephony stack, no upsell.

Book a 30-min call → WhatsApp → Email us →

What LiveKit Agents actually is

LiveKit Agents is an open-source Python and Node.js framework for building real-time voice, video and multimodal AI agents on top of WebRTC. It is Apache 2.0 licensed, actively maintained (1.x line shipping throughout 2026), and built on the LiveKit media server — the same SFU you might already use for video calls.

The framework’s job is simple to describe and hard to execute: take a WebRTC audio stream, pass it through a pluggable pipeline of VAD → STT → LLM (with tools) → TTS → playback, and handle the horrible edge cases — interruptions, turn detection, dropouts, phone handoff — so you don’t have to. LiveKit provides the WebRTC transport, the worker runtime and the plugin interfaces; you bring the business logic.

Why it matters: every other voice-agent platform either forces you into one LLM/TTS vendor (OpenAI Realtime, Gemini Live) or stacks a proprietary platform fee on top of the provider costs (Vapi, Bland, Retell to a lesser degree). LiveKit Agents keeps the provider stack open and the infra layer thin.

Reference architecture: worker, dispatch, pipeline

Every production LiveKit Agents deployment has four moving parts:

  • LiveKit Server or LiveKit Cloud. The WebRTC SFU. Handles signaling, ICE/DTLS/SRTP, track routing and room lifecycle.
  • Agent worker. A long-running process (Python or Node) that registers with the server and waits to be dispatched into rooms. One worker can run many agents in parallel.
  • Agent pipeline. A state machine inside the worker: VAD watches for speech, STT transcribes, the LLM reasons with optional tool calls, TTS synthesizes and the framework publishes the audio back into the room.
  • Providers. STT (Deepgram, Whisper, Azure, Google), LLM (OpenAI, Anthropic, Google, open-source via Fireworks or Together), TTS (ElevenLabs, Cartesia, Google, Azure, Deepgram).

Dispatch comes in three flavours. Automatic dispatch spins up an agent for every new room — good for “agent is always present” products. Explicit dispatch (via token metadata or the AgentDispatchService API) lets you choose which agent joins which room and pass user context in with it. Entrypoint jobs run agent logic outside a room — batch transcription, scheduled outbound calls, cleanup tasks.

LiveKit Cloud vs self-hosted LiveKit Server

Both run the same open-source server. The difference is where the operations team sits.

Dimension LiveKit Cloud Self-hosted
Unit economics ~$0.01/agent-min, $0.10–0.12/GB egress Infra cost only; no per-min fee
Latency Sub-50ms P99 in-region, global edge Depends on your region strategy
Ops burden Zero — managed K8s, monitoring, failover, scaling
Recording & composition Built in (Egress) Deploy Egress service yourself
Break-even Up to ~500k monthly agent-min Cheaper past that — if you have DevOps

Reach for LiveKit Cloud when: you are under 500,000 monthly agent-minutes, have no dedicated WebRTC DevOps, or want to ship a pilot in weeks. Self-host only past that volume or when regulatory data residency forces on-prem.

Realtime APIs vs cascading STT→LLM→TTS

Two architectural camps now split the voice-agent world. Pick knowingly.

Native realtime (OpenAI Realtime API, Google Gemini Live). One model takes audio in and emits audio out. Time-to-first-audio (TTFA) can drop below 300ms. Voice quality is excellent. Downside: you are locked to one vendor, one voice family, and per-second token billing that is hard to predict at scale.

Cascading pipelines (LiveKit Agents, Pipecat). You wire VAD, STT, LLM and TTS yourself from best-of-breed providers. TTFA typically lands in the 500–800ms band after tuning, sometimes lower with streaming TTS. Upside: provider swap in a single config change, fine-grained cost control, richer tool-calling and retrieval pipelines.

LiveKit Agents supports both — its voice assistant primitive works with cascading providers and with OpenAI Realtime or Gemini Live as drop-in alternatives. That flexibility is the single biggest reason we default to LiveKit on multi-tenant products.

Cost model: $/minute for a real voice agent

Component Provider (example) Typical $/min Notes
STT Deepgram Nova-3 $0.003–$0.008 Streaming, pay-as-you-go
LLM Claude Sonnet / GPT-4o-mini $0.005–$0.015 Assumes ~200 in / 100 out per turn
TTS Cartesia / ElevenLabs $0.03–$0.08 Dominant cost line — tune here first
LiveKit Cloud Agent session + audio track $0.010–$0.015 Plus egress on recording
SIP / telephony Twilio, Telnyx $0.005–$0.020 Heavy volume discounts past 100k min
Total, typical Mixed best-of-breed $0.06–$0.15 All-in per agent-minute

10,000 agent-minutes/month. Deepgram + Claude Sonnet + Cartesia + LiveKit Cloud + Twilio SIP lands around $800–$1,000 all-in — typical for a seed-stage support bot or outbound campaign pilot.

100,000 agent-minutes/month. Same stack with volume discounts: ~$6,000–$8,000. TTS and LLM tokens dominate; LiveKit is ~15–20% of the bill. For deep cost comparisons against other real-time video stacks see our LiveKit vs Agora cost analysis.

LiveKit Agents vs Vapi, Retell, Daily Bots, Pipecat, Nova Sonic

Platform Model Advertised $/min Best for Watch out for
LiveKit Agents Framework, BYO providers $0.06–$0.15 all-in Custom pipelines, multi-vendor Requires engineering
Vapi Platform + BYO providers $0.05 + providers Fast no-code pilots Real cost $0.15–$0.25 loaded
Retell AI Platform, transparent $0.07 Clean SaaS voice bot Smaller provider ecosystem
Bland AI Platform, outbound-first $0.09 High-volume outbound calls Less flexible LLM wiring
Daily Bots Built on Daily.co WebRTC ~$0.10–$0.15 est. Daily-native products Less transparent pricing
Pipecat Open-source framework Provider cost only Self-hosted, full control You own all the ops
Twilio ConversationRelay Telecom platform $0.04 + providers Deep Twilio ecosystem Still stitching STT/LLM/TTS
Amazon Nova Sonic AWS speech-to-speech ~$0.002–$0.01 AWS-native stacks Early, limited third-party

For broader context on the underlying WebRTC topology choices behind all of these, see our WebRTC architecture guide and the P2P vs MCU vs SFU explainer.

Need a second opinion on LiveKit vs Vapi or Retell?

30 minutes with senior engineers who have shipped all three in production — bring the use case, we bring the numbers.

Book a 30-min call → WhatsApp → Email us →

Use cases where LiveKit Agents earns its seat

  • Inbound support triage. Answer, collect intent, hand to a human agent with context.
  • Outbound calling campaigns. Appointment reminders, surveys, collections — always with TCPA consent and STIR/SHAKEN on US calls.
  • AI interviewer. First-round recruiting screens, structured prompts, consistent scoring.
  • Voice assistant inside SaaS. Embed a voice control surface in your web product — helpdesk, analytics, search.
  • Live translation and captioning. Cascade STT + NMT + TTS for real-time bilingual calls; we cover similar architecture in our video translation guide.
  • Tutoring voice companion. Pair with RAG on course content; see our smart tutoring systems guide.
  • Healthcare intake and scheduling. HIPAA-compliant with BAA coverage on every provider.

Latency budget and turn detection

Target time-to-first-audio (TTFA): under 800ms. Break that into a budget and hold every stage to its share.

  • VAD — ~50ms. Silero or WebRTC VAD.
  • STT — ~150ms with streaming partials.
  • LLM time-to-first-token — ~400ms. The hardest to shrink; trim system prompts ruthlessly and use smaller models for simple tasks.
  • TTS — ~150ms with first-chunk streaming (Cartesia, ElevenLabs).
  • Network — ~50ms on good networks.

Turn detection is where voice bots feel robotic. Default VAD-only endpointing has 200–500ms of silence tail. LiveKit’s model-based turn detection cuts that to ~150ms at the cost of an extra inference call. Use it on high-interaction products; VAD-only is fine on one-shot IVRs.

Interruptions need special handling. Plain VAD cuts the bot off mid-word too often. LiveKit’s adaptive interruption handling uses a lightweight classifier to tell “user wants to interrupt” from “user coughed”. Turn it on; it is a measurable UX win.

Telephony and SIP integration

Most voice-agent products ship on WebRTC first and the PSTN second. LiveKit offers a first-class SIP bridge — your agent runs on WebRTC internally while one side of the room is a SIP participant from Twilio, Telnyx or a similar trunk.

Three tactical points matter. First, SIP trunk latency can add 100–300ms — pick a carrier with well-peered points in your target regions. Second, DTMF handling needs to be explicit (RFC 2833 vs SIP INFO) and tested with every carrier. Third, STIR/SHAKEN attestation is now required for US outbound traffic — make sure your trunk provider signs your calls A-level or the far-end carriers will drop them.

Compliance: TCPA, HIPAA, PCI, GDPR, STIR/SHAKEN

Voice AI regulation moved ahead of the rest of AI in 2024–2025. Architecture these in from day one.

  • Recording consent. Two-party consent states (CA, FL, IL and others) require disclosure before recording. Log the consent event in your audit trail per call.
  • TCPA. Outbound calling needs prior express written consent for marketing traffic. $1,500 per violation, stackable.
  • HIPAA. BAA with every provider that touches PHI — LLM, STT, TTS, LiveKit Cloud, telephony. Encrypt recordings AES-256, RBAC on playback.
  • PCI DSS. DTMF masking during card entry. Do not let card digits enter STT, LLM prompt context or recordings.
  • GDPR. Consent, residency, deletion. Keep agent transcripts inside the same data-residency boundary as the rest of the user’s account.
  • STIR/SHAKEN. Required on US outbound; carriers drop unattested calls.

Mini case: a LiveKit agent that books 20,000 calls/month

A SaaS client came to us with a booking team of 18 that drowned in inbound calls — reschedule, cancel, clarify. Their existing IVR routed everything to humans; average wait time was 3 minutes, abandonment was 22%. Their ask: a voice agent that could handle 70% of inbound traffic on its own, with full HIPAA compliance and sub-second response time.

Our 7-week build put LiveKit Cloud + Deepgram Nova-3 + Claude Sonnet (with tool calls to their calendar) + Cartesia TTS behind a Twilio SIP trunk. Agent Engineering generated ~60% of the tool-call schemas, prompt library and integration tests in parallel with senior review, which kept the timeline tight. On the compliance side we stood up BAAs with every provider, built a DTMF-masked card flow, logged two-party consent per call, and passed a SOC 2-adjacent audit at the end of week 6.

Outcome: 74% of inbound calls now self-serve. Average wait time fell to 12 seconds. Abandonment dropped from 22% to 5%. Monthly cost of the agent stack is ~$1,600 for ~20,000 handled calls — a fraction of the headcount it replaced. Book a 30-minute call for a similar scope.

A decision framework — pick LiveKit in five questions

1. Do you need provider flexibility? If you want to mix Claude for reasoning with Cartesia for voice and swap each independently, LiveKit Agents wins. Fixed-provider stacks (OpenAI Realtime, Gemini Live) do not.

2. Is sub-300ms latency a hard requirement? If yes, pair LiveKit Agents with a native realtime model (OpenAI Realtime, Gemini Live). Cascading lands at 500–800ms even well tuned.

3. Will you run past 500k agent-min/month? LiveKit Cloud is fine up to that range. Past it, self-host the media server on Kubernetes and keep the Cloud price off the bill.

4. How compliance-heavy is your vertical? Healthcare, finance, public sector — always custom, always BAAs, always granular audit. A no-code platform like Vapi will not survive procurement.

5. Do you have engineering? LiveKit is a framework, not a SaaS. Without a competent backend team, a platform (Retell, Vapi) or a development partner is the honest answer.

Five pitfalls we see on LiveKit Agent projects

1. Shipping VAD-only interruptions. The bot keeps talking over coughs and sneezes. Turn on model-based interruption handling before your first external demo.

2. Huge system prompts. 4,000-token prompts add 200–400ms to TTFT. Move the fat into retrieval, keep the system prompt tight.

3. No cost guardrails. A stuck session can burn hundreds of minutes of audio in an hour. Enforce max session duration, alert on per-minute spend anomalies.

4. Ignoring STIR/SHAKEN and TCPA early. Launch week is the wrong time to discover your trunk does not sign calls. Validate at kickoff.

5. Skipping observability. Record every VAD trigger, STT partial, LLM latency, TTS first-chunk and tool call. Without that, tuning turns into guesswork.

KPIs to watch on a voice-agent backend

Quality KPIs. TTFA P95 < 800ms, turn-detection accuracy ≥ 95%, task-completion rate ≥ 70%, hallucination rate < 1% on sampled transcripts, caller-abandonment rate < 10%.

Business KPIs. Cost per minute within plan (≤ $0.10 typical), containment / deflection rate (share of calls resolved without human), CSAT on AI calls, conversion on outbound.

Reliability KPIs. Agent session failure rate < 0.1%, LLM provider p95 latency < 600ms, STT stream drops < 0.5%, SIP call setup success ≥ 99%.

When not to pick LiveKit Agents

  • You need a no-code pilot in 72 hours. Vapi or Retell will get you there faster.
  • You have zero WebRTC experience and no budget for a partner. The operational surface is real.
  • Your product lives fully inside AWS and you are fine with Amazon Nova Sonic. A native AWS stack will be simpler to operate than a third-party framework.
  • Your use case is purely async transcription or summarization. You do not need an agent; you need Deepgram plus a batch job.

FAQ

Is LiveKit Agents production-ready in 2026?

Yes. The framework is on its 1.x line, actively maintained under Apache 2.0, and running in production across customer-support, recruiting and healthcare products. Our own team ships it as the default for voice-agent builds.

How much does a LiveKit voice agent cost per minute?

$0.06–$0.15 all-in with a mainstream stack (Deepgram + Claude Sonnet + Cartesia + LiveKit Cloud + SIP). TTS and LLM dominate; LiveKit Cloud itself is ~15–20% of the bill.

Can LiveKit Agents handle outbound phone calls?

Yes, via SIP trunks from Twilio, Telnyx or similar. Make sure your carrier signs calls STIR/SHAKEN A-level for US outbound, and log explicit TCPA consent per campaign.

What is the difference between LiveKit Agents and OpenAI Realtime?

OpenAI Realtime is a native audio-in, audio-out model — lowest latency, locked to OpenAI. LiveKit Agents is a framework that orchestrates pluggable STT/LLM/TTS providers — slightly higher latency, total provider flexibility. You can run OpenAI Realtime inside LiveKit Agents as one of several backends.

Do we need LiveKit Cloud, or can we self-host?

Self-hosting the open-source LiveKit Server is supported and pays off past ~500k monthly agent-minutes or when regulatory data residency demands on-prem. Under that volume, LiveKit Cloud is cheaper after operational cost.

What is a realistic latency target?

P95 time-to-first-audio under 800ms is achievable on a cascading LiveKit stack. With OpenAI Realtime or Gemini Live you can get below 300ms. Anything above 1s feels laggy to callers and drops task-completion rates visibly.

How long does it take to build a production voice agent?

With our Agent Engineering approach, 6–8 weeks for a scoped MVP (inbound triage, appointment reminder, AI interviewer). Classical delivery is 12–16 weeks for the same scope. Compliance-heavy verticals (healthcare, finance) add 2–4 weeks for audits and BAAs.

Can a LiveKit agent handle multiple languages?

Yes, by pairing multilingual STT (Deepgram, Whisper) with multilingual TTS (Cartesia, ElevenLabs, Azure) and instructing the LLM to respond in the detected language. Live translation bridges are also routine.

Cost

LiveKit vs Agora Cost Analysis

Per-minute economics on the underlying media platform.

WebRTC 2026

WebRTC Architecture Guide for Business

How SFU/MCU choices ripple into voice-agent design.

Architecture

P2P vs MCU vs SFU for Video Apps

Why most voice agents ship on an SFU, not peer-to-peer.

AI Tutors

Smart Tutoring Systems for Educators

RAG-grounded voice tutors that wrap your content.

Low Latency

Real-Time Low-Latency Video Streaming

How to keep media latency under the agent’s budget.

Ready to ship a LiveKit voice agent that earns its stack

LiveKit Agents gives you the provider flexibility and cost control that native realtime APIs cannot, and the engineering ergonomics that no-code platforms will never match. Pair it with the right STT, LLM and TTS for your latency budget, respect the compliance surface, and instrument everything — the rest is just taste.

If you are sizing a voice-agent build or untangling a stalled one, the next step is a 30-minute scoping call. We will map your call pattern, regulatory footprint and latency target to a concrete stack, timeline and budget — and leave you with a plan you can ship.

Let’s build your LiveKit voice agent

Fora Soft ships voice and real-time AI products with Agent Engineering — faster, cheaper, production-ready. 2,000-seat classrooms agree.

Book a 30-min call → WhatsApp → Email us →

  • Development
    Technologies
    Services