How can we have two agents deployed on the same ac...
# ask-ai
w
How can we have two agents deployed on the same account? They should have two different urls
t
Thanks for reaching out, Kushank. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Great question! You can definitely deploy two agents on the same LiveKit account using different URLs by setting up each agent to connect to its own LiveKit server instance. Here’s a friendly guide on how to do this: • Multi-Region Deployments: You can deploy agents in different regions, with each one connecting to its regional LiveKit server URL, all while using the same API credentials. • Custom Environment Deployments: Another option is to deploy agents to different environments—like development, staging, or production—or even custom LiveKit server instances, each with its unique URL. To get each agent configured smoothly: 1. Set the
LIVEKIT_URL
environment variable to the specific WebSocket endpoint you want (for example,
wss://us-west-2.livekit.cloud
). 2. Use the same
LIVEKIT_API_KEY
and
LIVEKIT_API_SECRET
if they belong to the same LiveKit project. 3. Make sure each URL is pointing to a valid LiveKit server instance that your API credentials can access. If you’d like, I’m here to help walk you through a particular deployment setup—whether that’s across different regions or environments. Just let me know! Sources: Voice Assistant Applications | livekit/livekit_composite | DeepWiki | Deploying to production | LiveKit Docs | Deploying to custom environments | LiveKit Docs | agent/.env.sample | test/agent_test.go