+++ :snail: Agent really slow when deployed to Liv...
# ask-ai
l
+++ 🐌 Agent really slow when deployed to LiveKit Cloud 🐌 +++ 1. ✅ I develop locally and the conversation with my agent is really low-latency. Using agent-starter-node and agent-starter-react. 2. ❗However, upon deploying everything falls apart. Responses take like 5 - 10 seconds. Sometimes the agent doesnt respond at all. => I am intentionally trying to be as simple and docs-aligned as possible. Deploying agent-starter-node as is to eu-central. No changes to the default agent.
t
Thanks for reaching out, Lukas. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I hear your frustration: locally the agent is low-latency, but after deploying to LiveKit Cloud in eu-central you see 5–10s responses or no response at all. I’ll help narrow this down and recommend fixes. Quick checklist of the most common causes and what you can do now • Region mismatch (most likely): Deploying in eu-central while your LLM/STT/TTS provider is in a different region (e.g., US) adds round-trip delay. Try deploying the agent in the region closest to your model provider (for example,
us-east
if your LLM is US-based). • Use LiveKit Inference: Routing LLM/STT/TTS via LiveKit Inference reduces public endpoint queuing and network hops. Remove direct provider keys and use the unified inference path if possible. • Cold starts: Free/low-tier plans can scale to zero and cause cold-start delays. Keep agents warm by using a paid plan that prevents cold starts. • Availability/redundancy: Run multiple agent replicas/servers for the same
agent_name
to avoid dispatch failures and increase reliability. • Measure latency: Use agent metrics (Time To First Token / Time To First Byte) and
lk agent logs
to identify where the delay happens (agent init vs. model response vs. network). Diagnostics I need from you to pinpoint the problem 1. Which LLM/STT/TTS providers are you using (OpenAI, Anthropic, LiveKit Inference, etc.)? 2. Are you using LiveKit Inference or direct provider API keys in production? 3. Can you run these and share the results or key observations? ◦
lk agent status
(replica count, region) ◦
lk agent logs
during a slow/no-response session ◦ Any latency/TTFB/TTFT numbers you see in the dashboard or metrics What I’ll help with next • If you tell me the providers and share the logs/metrics above, I’ll recommend the exact region to deploy to, configuration changes (inference vs direct), and replica/plan settings to eliminate cold starts and routing delays. Would you like to start by telling me which model/STT/TTS providers you use and sharing
lk agent status
and recent
lk agent logs
output? Sources: Troubleshooting Guide | livekit/livekit_composite | DeepWiki | Introducing LiveKit Inference: A unified model interface for voice AI | LiveKit Pricing | Deploying to production | LiveKit Docs | Operational Best Practices | livekit/livekit_composite | DeepWiki