Step 1 — Install and configure
Step 2 — Add AvatarSession to your agent
Import AvatarSession, instantiate it with your avatar, and call start() before starting the agent session:
AvatarSession creates the Agent Human session, generates the LiveKit token, and routes your agent’s audio output through the avatar video stream automatically.
Step 3 — Run your agent
avatar.start() reads LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET from environment variables. You can also pass them directly — see Configuration.