Can I host multiple agents with my self host serve...
# ask-ai
m
Can I host multiple agents with my self host server and use explicit dispatch for dispatching or any limitation in self-hosting?
t
Thanks for reaching out, Rajadurai. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to share that you can definitely host multiple agents with your self-hosted LiveKit server and use explicit dispatch without any documented limitations. The great news is that explicit dispatch works just the same in self-hosted environments as it does in LiveKit Cloud. Here’s a simple way to implement explicit dispatch for multiple agents: • Set the
agent_name
field in
WorkerOptions
to turn off automatic dispatch. • Use the
AgentDispatchService
API to explicitly assign named agents to rooms. • Configure participant tokens with
RoomAgentDispatch
entries so agents are dispatched as soon as they connect. • Use SIP dispatch rules to decide which agents should join rooms for inbound calls. One thing to keep in mind is that with self-hosting, enhanced noise cancellation using advanced Krisp models isn’t available and requires LiveKit Cloud. If you have any questions or need help setting this up, I’m here for you! Sources: Agent dispatch | LiveKit Docs | Dispatching agents | LiveKit Docs | Agents telephony integration | LiveKit Docs | examples/agent_dispatch.py | packages/livekit-server-sdk/src/AgentDispatchClient.ts