Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Boson Higgs Avatar plugin for LiveKit Agents

Use Boson's Higgs Audio-Driven Avatar as the video output for a LiveKit voice agent. This is an Avatar plugin: it composes with your existing voice/LLM plugin and does not replace or fork it.

The plugin has no dependency on Boson Voice, Boson Audio, or a particular TTS provider. Its input is the standard audio output of a LiveKit VoiceSession, so it works with any TTS plugin, realtime model, or custom source that produces LiveKit audio frames. Only Avatar rendering and Avatar session lifecycle are Boson-specific.

Installation

pip install livekit-plugins-boson-avatar

Set the credentials used by your LiveKit Agent Worker:

export BOSON_API_KEY="..."
export BOSON_AVATAR_API_URL="https://your-avatar-session-service.example/v1"
export LIVEKIT_URL="wss://..."
export LIVEKIT_API_KEY="..."
export LIVEKIT_API_SECRET="..."

The plugin deliberately has no hard-coded provider endpoint. Your application or deployment environment supplies the base URL exposed by its Boson Avatar deployment/operator. The plugin appends POST /sessions when starting an Avatar and DELETE /sessions/{id} during cleanup, so do not include /sessions itself in BOSON_AVATAR_API_URL.

Load the project-scoped Avatar catalog on your application server and use it to populate the face picker. The returned avatar_id is passed unchanged to AvatarSession; browser users never need to type or remember it:

from livekit.plugins import boson_avatar


async def avatar_options():
    # Returns [AvatarInfo(avatar_id="...", name="...")]
    return await boson_avatar.list_avatars()

This calls GET {BOSON_AVATAR_API_URL}/avatars with BOSON_API_KEY. Keep the key server-side and cache the result according to your application's needs.

Usage

Create the voice VoiceSession with the audio provider of your choice, then start the Avatar before starting the agent session:

from livekit.agents import Agent, VoiceSession, JobContext, inference
from livekit.plugins import boson_avatar


async def entrypoint(ctx: JobContext) -> None:
    session = VoiceSession(
        stt=inference.STT("deepgram/nova-3"),
        llm=inference.LLM("openai/gpt-4.1-mini"),
        tts=inference.TTS("cartesia/sonic-3"),
    )
    avatar = boson_avatar.AvatarSession(
        avatar_id="your-avatar-id",
    )

    await avatar.start(session, room=ctx.room)
    await session.start(
        agent=Agent(instructions="You are a helpful assistant."),
        room=ctx.room,
    )

BOSON_AVATAR_ID can supply avatar_id instead. AvatarSession also accepts optional width, height, max_duration_seconds, avatar_participant_identity, idempotency_key, and APIConnectOptions. max_duration_seconds must be an integer from 1 through 14400.

Inside a LiveKit Agent job, provider-session creation automatically derives a stable UUID idempotency key from the LiveKit job ID and Avatar session binding. If LiveKit redelivers that job after a worker crash, the plugin recovers the existing provider session instead of allocating another one. The standard model is one Avatar lifecycle per LiveKit job. If one job intentionally starts another Avatar after closing the first, pass a new explicit UUID idempotency_key for that lifecycle.

The avatar_id is the value returned by list_avatars() behind the Avatar selected in your application; end users do not need to type or remember it.

The plugin handles the provider API call, LiveKit participant token, PCM data stream routing, interruption buffer clears, and provider-session cleanup. A developer does not need to call Boson's Avatar REST API or combine voice and Avatar responses in an application server. The application server only needs its normal responsibility: create a LiveKit room and dispatch the Agent Worker.

When started inside a LiveKit job, cleanup is registered automatically. When using the plugin in a standalone script or test, open LiveKit's HTTP context and close the Avatar explicitly:

from livekit.agents import http


async with http.open():
    await avatar.start(session, room)
    try:
        # Run the standalone session.
        ...
    finally:
        await avatar.aclose()

Metadata

Release files for livekit-plugins-boson-avatar 2.0.0b2

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-boson-avatar 2.0.0b2
File Size Uploaded Provenance Actions
livekit_plugins_boson_avatar-2.0.0b2.tar.gz 10.3 kB With provenance Details for livekit_plugins_boson_avatar-2.0.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-boson-avatar 2.0.0b2
File Interpreter ABI Platform Actions
livekit_plugins_boson_avatar-2.0.0b2-py3-none-any.whl Python 3 none any Details for livekit_plugins_boson_avatar-2.0.0b2-py3-none-any.whl

Total release size: 23.3 kB

Release files / livekit_plugins_boson_avatar-2.0.0b2.tar.gz

Download URL livekit_plugins_boson_avatar-2.0.0b2.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a7b96d23716bb67a7e15195015efc5bd3d6a46d88cb4fdbfe165eb70e7d2d705
BLAKE2b-256 checksum
How to use checksums
3f57a6d5b2bd80939bb60c10a2df23831961d28b5f954d83f8783160659e3b88
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 18, 2026.

Transparency log

Release files / livekit_plugins_boson_avatar-2.0.0b2-py3-none-any.whl

Download URL livekit_plugins_boson_avatar-2.0.0b2-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d58418f25a19d4e89ab602047c63b6a718508db01acfb011ffd07f80c9065395
BLAKE2b-256 checksum
How to use checksums
1478be679287d763d06c68097bccb072591d2cb5815b74d926c1170aaa237206
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 18, 2026.

Transparency log

Security for livekit-plugins-boson-avatar 2.0.0b2

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_boson_avatar-2.0.0b2.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 18, 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.

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