Overview
AvatarSession is an Agent Human plugin for LiveKit Agents. Drop it into your agent entrypoint and your agent’s voice output will be rendered as a talking avatar video in the LiveKit room — no manual session or token management required.
The avatar reports to your agent when it actually starts and stops speaking each reply. When the user interrupts, it stops within about a second and your agent keeps only the part of the reply the user heard.
Installation
Once the plugin is published:Environment Variables
AGENTHUMAN_API_KEY: Your Agent Human API keyAGENTHUMAN_AVATAR_ID: Avatar ID to use when noavatar_id/avatar_image_urlis passed toAvatarSession(optional: a public stock avatar is used otherwise)AGENTHUMAN_IMAGE_URL: Image URL to use instead of an avatar ID (set only one of the two)LIVEKIT_URL: Your LiveKit server WebSocket URLLIVEKIT_API_KEY: LiveKit API keyLIVEKIT_API_SECRET: LiveKit API secret
Next Steps
Quick Start
Add AvatarSession to your agent in minutes
Configuration
AvatarSession parameters and options
Examples
Complete agent examples
API Reference
Underlying session API