worried-petabyte-38885
08/27/2025, 6:36 PMtall-airline-16756
08/27/2025, 6:36 PMtall-airline-16756
08/27/2025, 6:36 PMpip install -r requirements.txt.
- Don’t forget to set up your environment variables in a .env file for your LiveKit credentials and API keys.
- Finally, launch the agent using python agent.py dev.
2. Deploy the Next.js frontend:
- Head over to the frontend directory in the same repo.
- Install dependencies by running pnpm install, then start the dev server with pnpm dev.
- You can check out your app at http://localhost:3000.
3. Alternative setup:
- If you prefer, use the LiveKit CLI to quickly bootstrap both backend and frontend using templates like multimodal-agent-python and voice-assistant-frontend.
4. Deployment:
- For hosting the frontend, platforms like Vercel work great.
- When it comes to deploying the Python backend, LiveKit’s Deployment & Scaling Guide has got you covered.
Just make sure the frontend’s connection settings line up with your backend endpoints. If you hit any bumps or want a hand with anything, I’m here to help!
Sources: README.md | complex-agents/shopify-voice-shopper/README.md | OpenAI Realtime API Quickstart | LiveKit Docs | OpenAI Realtime API Quickstart | LiveKit Docsworried-petabyte-38885
08/28/2025, 5:24 PMtall-airline-16756
08/28/2025, 5:25 PMDockerfile, .env, and all the necessary setup files.
2. Containerize with Docker:
- Build and test it locally with these commands:
docker build -t voice-assistant .
docker run -p 8080:8080 voice-assistant
3. Deploy on a VM:
- Use the LiveKit config generator to create your deployment files:
docker pull livekit/generate
docker run --rm -it -v $PWD:/output livekit/generate
- Point your domain (like livekit.yourdomain.com) to your VM’s public IP by setting up DNS.
- Don’t forget to open these firewall ports: 80, 443, 7881, 3478/UDP, and 50000-60000/UDP.
4. Check That It’s Publicly Accessible:
- Look at the logs to confirm your TLS certificate was issued successfully.
- Test connectivity with: curl http://livekit.yourdomain.com.
5. Another Option:
- If you want to skip infrastructure hassle, try LiveKit Cloud with lk agent create.
If you have any questions or want me to walk you through any step, just let me know—I’m here to help!
Sources: Deploy to a VM | LiveKit Docs | Voice AI quickstart | LiveKit Docs | Deployment and scaling | LiveKit Docs | Deploying to custom environments | LiveKit Docs | agent/main.pyworried-petabyte-38885
08/28/2025, 5:37 PMtall-airline-16756
08/28/2025, 5:37 PM