Skip to main content

Atmee plugin for LiveKit Agents

Give a LiveKit voice agent a face with an Atmee avatar. The avatar joins the room as its own participant and speaks the agent's audio with lips in sync. Your agent keeps its own speech recognition, model and voice.

Any Atmee avatar renders by its id, v1 (a talking head generated from a single portrait) or v2 (moves as a whole). Create avatars in the Atmee studio or with the Atmee API; this plugin renders them.

See the Atmee integration docs for more information.

Installation

pip install livekit-plugins-atmee

Pre-requisites

You'll need an API key from Atmee, created at atmee.ai/studio/api-keys. It can be set as an environment variable: ATMEE_API_KEY

The plugin mints the avatar participant's join token with your own LiveKit credentials (LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET); only that token is sent to Atmee.

Usage

from livekit.plugins import atmee

avatar = atmee.AvatarSession(avatar_id="...")  # ATMEE_API_KEY from env
await avatar.start(session, room=ctx.room)  # before session.start
await session.start(agent=Agent(...), room=ctx.room)

start() returns once Atmee's rendering worker has acknowledged the session; the avatar's video and audio tracks appear in the room a few seconds later. It first reads the avatar's generation: a v1 start may take up to 1 minute (3 with wait_for="avatar_joined"). The first v2 session after a quiet period can take a few minutes, so a v2 start may take up to 5 (7.5). The session ends when your agent leaves the room, when aclose() runs (registered as a job shutdown callback), or at max_duration_seconds. If aclose() runs while start() is still waiting, the render that start opens is ended and start() raises atmee.AtmeeException with code="closed".

Start the agent first

Started before session.start(), the avatar carries the agent's voice from the first word, but a slow v2 start keeps the user waiting with no agent. To let the agent talk right away and give it a face once the avatar is in the room, start the avatar after the session, without awaiting it:

await session.start(agent=Agent(...), room=ctx.room)  # the agent speaks with its own voice

async def attach_avatar() -> None:
    avatar = atmee.AvatarSession(avatar_id=avatar_id, wait_for="avatar_joined")
    try:
        await avatar.start(session, room=ctx.room)  # the agent's voice moves to the avatar
    except atmee.AtmeeException:
        logger.warning("continuing without an avatar", exc_info=True)

attach_task = asyncio.create_task(attach_avatar())  # keep a reference

Parameters

Parameter Default Description
avatar_id required The Atmee avatar to render.
api_key ATMEE_API_KEY Your Atmee API key.
api_url ATMEE_API_URL or https://api.atmanity.us Atmee API base URL.
avatar_participant_identity "atmee-avatar-agent" The LiveKit identity the avatar joins under. Must be unique per concurrent avatar in a room.
avatar_participant_name "atmee-avatar-agent" The LiveKit display name the avatar joins under.
max_duration_seconds 3600 Hard ceiling of the session.
wait_for "initializing" "avatar_joined" makes start() block until the avatar is in the room.
metadata None Free-form JSON stored with the session on the Atmee side.

API failures raise atmee.AtmeeException with status_code, code and message; atmee.AtmeeNoCapacityError (check retry_after) and atmee.AtmeeAvatarNotReadyError are subclasses worth handling. atmee.AtmeeAvatarWarmingError means a v2 avatar was still getting ready when the start's wait ran out; nothing was billed, and you can try again after retry_after.

Metadata

Release files for livekit-plugins-atmee 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-atmee 1.9.0
File Size Uploaded Provenance Actions
livekit_plugins_atmee-1.9.0.tar.gz 16.9 kB With provenance Details for livekit_plugins_atmee-1.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 36.3 kB

Release files / livekit_plugins_atmee-1.9.0.tar.gz

Download URL livekit_plugins_atmee-1.9.0.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
748cdaf4b45f86b74499049c33f2a0e72909bf8b920d172e0ea984df3bf03ddf
BLAKE2b-256 checksum
How to use checksums
e832721d1f6a52feada7b5349d715de3bcf3b19fcf4fd4194e601561175a23fe
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_atmee-1.9.0-py3-none-any.whl

Download URL livekit_plugins_atmee-1.9.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74bd103c1c0c3c9ce4b79ec238da5ee13d05ba9dcb37f4b713db76517e4eacd9
BLAKE2b-256 checksum
How to use checksums
da7d84da722d00c60f6a81627ed906fd89701b2a4c19c771e5fac43471cda575
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-atmee 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_atmee-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.

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