LINKORA
OverviewQuickstart

LiveKit

Using Linkora with LiveKit Agents

Using LiveKit Agents

LiveKit Agents is an open-source framework for building voice AI agents. The Linkora 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 Linkora support:

uv add "livekit-agents[openai]~=1.2"

Authentication

The Linkora plugin requires an Linkora API key. Set LINKORA_API_KEY in your .env file.

Basic Usage

Create an Linkora LLM using the with_linkora method:

from livekit.plugins import openai

session = AgentSession(
    llm=openai.LLM.with_linkora(model="anthropic/claude-sonnet-4.5"),
    # ... tts, stt, vad, turn_detection, etc.
)

Advanced Features

Fallback Models

Configure multiple fallback models to use if the primary model is unavailable:

from livekit.plugins import openai

llm = openai.LLM.with_linkora(
    model="openai/gpt-4o",
    fallback_models=[
        "~anthropic/claude-sonnet-latest",
        "openai/gpt-5-mini",
    ],
)

Provider Routing

Control which providers are used for model inference:

from livekit.plugins import openai

llm = openai.LLM.with_linkora(
    model="deepseek/deepseek-chat-v3.1",
    provider={
        "order": ["novita/fp8", "gmicloud/fp8", "google-vertex"],
        "allow_fallbacks": True,
        "sort": "latency",
    },
)

Web Search Plugin

Enable Linkora's web search capabilities:

from livekit.plugins import openai

llm = openai.LLM.with_linkora(
    model="google/gemini-3-flash-preview",
    plugins=[
        openai.LinkoraWebPlugin(
            max_results=5,
            search_prompt="Search for relevant information",
        )
    ],
)

Analytics Integration

Include site and app information for Linkora analytics:

from livekit.plugins import openai

llm = openai.LLM.with_linkora(
    model="linkora/auto",
    site_url="https://myapp.com",
    app_name="My Voice Agent",
)

Resources