What is the config for a self-hosted agent ? Which...
# ask-ai
q
What is the config for a self-hosted agent ? Which models work if agent is deployed on livekit cloud and which don’t if self-hosted ?
t
Thanks for reaching out, Andrei. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Let's walk through setting up your self-hosted agent together! You'll want to start by configuring the LiveKit server and agent code with the right environment variables. Here are some key steps to keep in mind: • Set up the LiveKit server by adding your API keys and URLs in a
.env
file. • Use plugins and external APIs to access models, such as OpenAI, Deepgram, or ElevenLabs. • Consider configuring advanced options like memory limits, multiprocessing, and Prometheus metrics to help with monitoring. About model compatibility, here's a quick overview: • With LiveKit Cloud, you can access models through LiveKit Inference, which supports providers like OpenAI, Google, Deepgram, and more. Some examples are GPT-4o, Gemini 2.5, and HIPAA-compliant models. • For self-hosted agents, you’ll use plugins and external APIs, giving you access to a wider range of models, including open-weight ones like LLaMA or even your own custom local models. Just a heads-up, HIPAA-compliant pipelines aren’t natively supported in self-hosted setups. If you have any questions or need more details tailored to your setup, please don’t hesitate to reach out—I’m here to help! Sources: livekit-agents/livekit/agents/worker.py | .env.example | agent/README.md | README.md | docs/index.yaml