Using LiveKit Agents
LiveKit Agents is an open-source framework for building voice AI agents. The OpenRouter plugin allows you to access 400+ AI models from multiple providers through a unified API, with automatic fallback support and intelligent routing.Installation
Install the OpenAI plugin to add OpenRouter support:Authentication
The OpenRouter plugin requires an OpenRouter API key. SetOPENROUTER_API_KEY in your .env file.
Basic Usage
Create an OpenRouter LLM using thewith_openrouter method: