Skip to main content

bitHuman plugin for LiveKit Agents

Support for bitHuman virtual avatars in LiveKit Agents. The avatar renders either locally, inside your agent's process from a bitHuman .imx model file (no GPU required), or in the bitHuman cloud, where it joins the room as a participant.

See the bitHuman integration docs for more information, and bitHuman's LiveKit guide for a complete agent.

Installation

pip install livekit-plugins-bithuman

To render Expression 2 models locally, also install the SDK's Expression 2 extra:

pip install "bithuman[expression-2]"

Pre-requisites

You'll need an API secret from bitHuman (create one). Store it under a name the plugin doesn't read, such as BITHUMAN_MASTER_SECRET, and pass it as api_secret=. If api_secret isn't passed, the plugin falls back to BITHUMAN_API_SECRET.

In cloud mode the plugin puts api_secret in the avatar participant's attributes, which everyone in the room can read. Pass a one-hour token minted for one agent and one room (POST https://api.bithuman.ai/v1/runtime-tokens/mint, how) instead of the secret, and keep BITHUMAN_API_SECRET unset. Cloud mode also uses LIVEKIT_URL, LIVEKIT_API_KEY and LIVEKIT_API_SECRET.

Usage

Local mode: the avatar renders in this process.

import os

from livekit.plugins import bithuman

avatar = bithuman.AvatarSession(
    model_path="./agent.imx",  # or set BITHUMAN_MODEL_PATH
    api_secret=os.environ["BITHUMAN_MASTER_SECRET"],
)
await avatar.start(session, room=ctx.room)

Cloud mode: the avatar renders on bitHuman's servers.

avatar = bithuman.AvatarSession(
    avatar_id="A23WJF0199",  # your bitHuman agent code (A23WJF0199 is the wise-pup sample)
    api_secret=minted_token,  # from POST /v1/runtime-tokens/mint
)
await avatar.start(session, room=ctx.room)

In both modes the avatar publishes the agent's audio, so start the session with room_options=room_io.RoomOptions(audio_output=False).

Models

  • Essence 2 (essence-2): a photoreal person from one portrait.
  • Expression 2 (expression-2): any character, including people, animals and cartoons, from one portrait.
  • essence / expression: the first-generation Essence 1 and Expression 1. Expression 1 runs in the cloud only.

In local mode the .imx file decides the model. In cloud mode, leave model unset to use the model the agent was created with, or set it to pin one; bitHuman refuses a model the avatar wasn't prepared for. A photo passed as avatar_image (no avatar_id) works only with Expression 1. Pricing: docs.bithuman.ai/pricing.

Metadata

Release files for livekit-plugins-bithuman 1.8.13

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-bithuman 1.8.13
File Size Uploaded Provenance Actions
livekit_plugins_bithuman-1.8.13.tar.gz 13.3 kB With provenance Details for livekit_plugins_bithuman-1.8.13.tar.gz

Built distribution (wheel)

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

Total release size: 26.5 kB

Release files / livekit_plugins_bithuman-1.8.13.tar.gz

Download URL livekit_plugins_bithuman-1.8.13.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a2d011cde04f9c2cac265b3b6ac274f8d610069e27869092455fd53b3176b67b
BLAKE2b-256 checksum
How to use checksums
be00ecfe7899870b58d0afc0df5f04b7971b544409b39011951a203c4f62a1fc
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 13, 2026.

Transparency log

Release files / livekit_plugins_bithuman-1.8.13-py3-none-any.whl

Download URL livekit_plugins_bithuman-1.8.13-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fa33b0aee0804a161c43713e790cf13577f9259d594e4a7fba187de7dc6a91b
BLAKE2b-256 checksum
How to use checksums
e38730e45619dac1564c3461801a3cefb0e16418757b61c06bee7866221b21a6
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 13, 2026.

Transparency log

Security for livekit-plugins-bithuman 1.8.13

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_bithuman-1.8.13.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 13, 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.8.13 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