Hello, I would like to understand livekit agent i...
# ask-ai
l
Hello, I would like to understand livekit agent in on prem deployment. for each agent I start it will register to livekit server right ? livekit server will store list of livekit agent into redis right ?
✅ 1
t
Thanks for reaching out, Hugo. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you help me understand a bit more about what you mean by "LiveKit agent"? Are you talking about a particular part of the LiveKit setup, like the media server, SDKs, or maybe another integration? Knowing this will help me give you a clearer and more helpful explanation.
l
yes livekit SDKs
t
Hey there! Just to clarify, LiveKit SDKs that folks use in browsers or mobile apps don’t actually register with the LiveKit server the same way backend services or agents do. While these SDKs do send some metadata when they connect, there isn’t any clear info showing that the LiveKit server keeps a list of SDKs in Redis or anywhere else. Redis mainly helps out with communication and storing session states in certain services, like the SIP integration, but it doesn’t seem to play a role in SDK registration, at least from what’s documented. If you have a specific use case or integration in mind, just let me know—I’m happy to help you dig into it! Sources: README.md | livekit-protocol/src/livekit.rs | Sources/LiveKit/Protos/livekit_models.pb.swift | README.md | Anatomy of an Agent | LiveKit Docs
l
what about the agents ?
t
When LiveKit agents start up, they connect to the LiveKit server through a persistent WebSocket connection. This helps the server know which agents (workers) are available and ready to take on jobs, matching tasks based on their availability and capacity. Redis does play a role in LiveKit for coordination and sharing state, but the docs don’t clearly say if the list of registered agents is kept there. The main way agents register is through that WebSocket connection, which keeps things running smoothly in real-time and helps balance the load. If you’d like to dive deeper into how agent registration or deployment works, just let me know—I’m here to help! Sources: Anatomy of an Agent | LiveKit Docs | Anatomy of an Agent | LiveKit Docs | Deploying to production | LiveKit Docs | Deploying to custom environments | LiveKit Docs
l
what are the limits for the agent in terms of room or users ?
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!