How long does it normally take to spin up an agent...
# ask-ai
f
How long does it normally take to spin up an agent session? Do you recommend have one persistent agent session, or only spinning up an agent session when an agent is necessary?
t
Thanks for reaching out, Anish. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I completely understand how important it is to know how quickly an agent session can start in LiveKit, so let me walk you through it: • Cold Start Scenarios: If you’re on the Build plan or if agents have been scaled down to zero, it might take around 10-20 seconds to get a session up and running. • Optimized Operation: For those on paid plans, agents stay warm, which means dispatch times are usually super quick—typically under 150ms. For a smooth experience in production, we recommend keeping agent sessions persistent to avoid those cold start waits and keep your session state intact. Plus, LiveKit Cloud has automatic scaling to effortlessly handle new requests as they come in. If you’d like, I’m here to help with more tips on optimizing your setup—just let me know! Sources: Deploying to production | LiveKit Docs | Deploy and scale agents on LiveKit Cloud | LiveKit Pricing | Agent dispatch | LiveKit Docs | Job lifecycle | LiveKit Docs