Best Platform To Self Host

Hi Everyone

I have been exploring options to deploy livekit-agents on my own. I tried modal compute. But I see that if it is serverless we will need to have min_container=1 to keep the websocket connection active right?

  1. So I tried manual dispatching, but it ended up with ~20second latency

Now that I am exploring others options - Hetzner VPS, AWS ECS, fly.io, render but still not sure which would be good enough at reasonable cost

Requirement:

  • Basic agent with least operational cost as possible ( Building Voice Agent for good purpose )

And kind of suggestion or feedback is really appreciated, Thanks

Hi @Mahimai_Raja. You’re right that serverless is a tough fit since the agent needs a persistent websocket connection to LiveKit, and that ~20s latency is almost certainly cold start time. For lowest cost with a basic agent, a small Hetzner VPS (CX22 at ~4/month, or their ARM CAX line even cheaper) running the agent as a systemd service is hard to beat. fly.io is another good option at $3-5/month if you prefer container deploys without managing a VPS. Either way, the key is keeping the agent as a long-lived process so the websocket stays up and there’s zero cold start when someone joins. If you’re on LiveKit Cloud, deploy in the same region to keep network latency minimal too

1 Like

Thanks @cdutr for the valuable comments