Files
github-actions[bot]andgithub-actions[bot] dc8eed21e1 livekit-agents@2.0.0b2 (#8659)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-18 13:28:33 -08:00
..
2026-11-18 13:28:33 -08:00

livekit-plugins-runway

LiveKit Agents plugin for Runway Characters avatar integration.

Your LiveKit agent owns the full conversational AI pipeline (STT, LLM, TTS). Runway provides the visual layer — audio in, avatar video out.

Installation

pip install livekit-plugins-runway

Usage

from livekit.agents import Agent, VoiceSession, room_io
from livekit.plugins import runway

async def entrypoint(ctx):
    session = VoiceSession()

    avatar = runway.AvatarSession(
        avatar_id="your-custom-avatar-id",
        # api_key defaults to RUNWAYML_API_SECRET env var
    )
    await avatar.start(session, room=ctx.room)

    await session.start(
        agent=Agent(instructions="Talk to me!"),
        room=ctx.room,
        room_options=room_io.RoomOptions(audio_output=False),
    )

Using a preset avatar

avatar = runway.AvatarSession(
    preset_id="runway-preset-slug",
)

With a session duration limit

avatar = runway.AvatarSession(
    avatar_id="your-custom-avatar-id",
    max_duration=300,
)

Configuration

Parameter Env var Description
api_key RUNWAYML_API_SECRET Runway API key
api_url RUNWAYML_BASE_URL API base URL (default: https://api.dev.runwayml.com)
avatar_id — Custom avatar ID (mutually exclusive with preset_id)
preset_id — Preset avatar slug (mutually exclusive with avatar_id)
max_duration — Maximum session duration in seconds

LiveKit credentials (LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET) are read from environment variables or can be passed to avatar.start().