livekit-plugins-openai
Agent Framework plugin for services from OpenAI
What it is and what it does
This package bridges OpenAI's AI services into the LiveKit Agents framework, enabling real-time voice and video interactions. It provides access to OpenAI's Realtime API for low-latency streaming conversations, plus standard LLM, text-to-speech, and speech-to-text capabilities. The plugin also acts as a gateway to OpenAI-compatible services, allowing you to swap in providers like Azure OpenAI, Cerebras, Fireworks, Perplexity, Telnyx, xAI, Ollama, DeepSeek, and SambaNova without changing your agent code.
The package depends on livekit-agents (the core framework) and openai (the official client library). It's designed for developers building conversational AI agents that need to integrate with LiveKit's media infrastructure while leveraging OpenAI's models or compatible alternatives. Installation is straightforward and requires only an OpenAI API key as a prerequisite.
Use it for:
- Build real-time voice agents that respond to user speech using OpenAI's Realtime API within a LiveKit session.
- Create multi-modal agents combining video, audio, and LLM reasoning using OpenAI's APIs integrated into LiveKit.
- Switch between OpenAI and compatible providers (Azure, Fireworks, Ollama) without rewriting agent logic.
- Deploy speech-to-text and text-to-speech pipelines for live conversations powered by OpenAI models.
- Prototype and test agent behavior with Ollama or DeepSeek before deploying to production OpenAI endpoints.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates OpenAI's Realtime, Responses, LLM, TTS, and STT APIs into LiveKit Agents, plus support for OpenAI-compatible providers like Azure OpenAI, Cerebras, Fireworks, Perplexity, and others.
Yes. The package is actively maintained, has low install friction, carries a permissive license, and integrates cleanly into the LiveKit Agents ecosystem. It's well-positioned for production use if you're building conversational agents and need OpenAI or compatible LLM/voice services. No known vulnerabilities. Install it if you're already using LiveKit Agents and want OpenAI integration.
Install
livekit-plugins-openai on PyPI
pip
pip install livekit-plugins-openaiuv
uv add livekit-plugins-openaipoetry
poetry add livekit-plugins-openaiInstalling livekit-plugins-openai
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a recent release (1 day old) and strong repository signals (13002 stars, last commit 2026-08-14). Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most production deployments.
Quickstart
pip install livekit-plugins-openai
import os
from livekit.agents import openai
# Set OPENAI_API_KEY environment variable
os.environ['OPENAI_API_KEY'] = 'your-key-here'
# Use OpenAI LLM, TTS, or STT within a LiveKit agent
Requires Python 3.10 or later and a valid OpenAI API key set as OPENAI_API_KEY environment variable.
Verify before relying
- Whether the package handles fallback or error recovery when an OpenAI-compatible provider is unavailable.
- Performance characteristics and latency expectations for the Realtime API streaming path.
- Whether all listed compatible providers (Azure, Cerebras, Fireworks, etc.) are equally well-tested or have known limitations.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — livekit-agents, openai |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,539,666/month — #2,585 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: livekit_plugins_openai-1.6.10-py3-none-any.whl
Keywords: ai, audio, livekit, openai, realtime, video, voice
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
livekit-plugins-azureIntegrates Azure AI services, particularly…
permissive · top 15,000 on PyPI
open-webuiOpen WebUI is a self-hosted AI platform…
unclear · top 5,000 on PyPI
livekit-plugins-xaiIntegrates xAI's Grok LLM with LiveKit's Agent…
permissive · top 15,000 on PyPI
livekit-plugins-assemblyaiIntegrates AssemblyAI speech-to-text into the…
permissive · top 15,000 on PyPI
livekit-plugins-cartesiaIntegrates Cartesia's voice AI services…
permissive · top 5,000 on PyPI
livekit-plugins-telnyxIntegrates Telnyx telephony services with…
permissive · top 15,000 on PyPI
livekit-plugins-sarvamIntegrates Sarvam.ai's Indian-language voice AI…
permissive · top 15,000 on PyPI
livekit-plugins-rimeIntegrates Rime speech recognition into…
permissive · top 15,000 on PyPI
astra-assistantsWraps OpenAI's Assistants API as a drop-in…
unclear · top 15,000 on PyPI
openai-agentsA framework for building multi-agent LLM…
permissive · top 1,000 on PyPI