Skip to main content

VLM Run plugin for LiveKit Agents

Vision-language models from the VLM Run gateway as an LLM for LiveKit agents, through the gateway's OpenAI-compatible chat completions API. Images in the chat context (ImageContent, including rtc.VideoFrame camera frames) are sent to the model.

vlmrun.DecisionModel answers typed questions (probability, choice, score) through the gateway's System One API.

Installation

pip install livekit-plugins-vlmrun

Pre-requisites

Set VLMRUN_API_KEY (from app.vlm.run). Set VLMRUN_GATEWAY_BASE_URL (or VLMRUN_GATEWAY_URL) to use another gateway.

Usage

from livekit.agents import AgentSession
from livekit.plugins import vlmrun

session = AgentSession(llm=vlmrun.LLM(model="qwen/qwen3.8-27b"), stt=..., tts=...)

Tool calling works on qwen/qwen3.8-27b and the provider models (google/gemini-*, moonshotai/kimi-k3, minimax/minimax-m3, meta/muse-*); the provider models need a paid account. Sampling settings are sent only when set, because the gateway rejects settings a model doesn't support.

Requests time out after 70 s by default, because the gateway allows qwen/qwen3.8-27b up to 60 s to its first token. Set AgentSession(conn_options=...) to change it, or pass conn_options to DecisionModel.evaluate().

See the LiveKit docs for more.

Decisions

from livekit.agents import llm, utils
from livekit.plugins import vlmrun

async with utils.http_context.open():
    model = vlmrun.DecisionModel()  # qwen/qwen3.8-27b
    context = llm.ChatContext.empty()
    context.add_message(role="user", content="Please let me speak to a person.")
    response = await model.evaluate(
        input=context,
        decisions={
            "handoff": llm.Probability("The caller requests a human."),
            "intent": llm.Choice(
                "What does the caller want?",
                options={"booking": "Make a reservation", "other": "Anything else"},
            ),
            "frustration": llm.Score(
                "How frustrated is the caller?", levels=["Calm", "Annoyed", "Angry"]
            ),
        },
    )
    for name, result in response.results.items():
        print(name, result.value)

input also accepts a string, which is sent as-is. Each requested decision appears in either response.results or response.errors. Request failures and malformed responses raise.

Metadata

Release files for livekit-plugins-vlmrun 1.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-plugins-vlmrun 1.9.0
File Size Uploaded Provenance Actions
livekit_plugins_vlmrun-1.9.0.tar.gz 9.3 kB With provenance Details for livekit_plugins_vlmrun-1.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-vlmrun 1.9.0
File Interpreter ABI Platform Actions
livekit_plugins_vlmrun-1.9.0-py3-none-any.whl Python 3 none any Details for livekit_plugins_vlmrun-1.9.0-py3-none-any.whl

Total release size: 21.9 kB

Release files / livekit_plugins_vlmrun-1.9.0.tar.gz

Download URL livekit_plugins_vlmrun-1.9.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3893d00cf2b8948a84c0585b28d976cc6874305fa8af417a0b2882b4bcac485a
BLAKE2b-256 checksum
How to use checksums
240975ea509ed1ab12ce2bcb6a9692162971e2965b1c32209ec67c5c98573350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / livekit_plugins_vlmrun-1.9.0-py3-none-any.whl

Download URL livekit_plugins_vlmrun-1.9.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2a005a3bcd3cfb44d860c39c63ae8e35ef146a59be217ffcca20a1f93cc04dd
BLAKE2b-256 checksum
How to use checksums
e4385860df230738bdb078767dd03227bfb4f14c8d62330d2f2888cf77692c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for livekit-plugins-vlmrun 1.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for livekit_plugins_vlmrun-1.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.9.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page