Skip to main content
This quickstart shows how to add an Anam avatar face to a LiveKit voice agent using OpenAI Realtime for the LLM.

Prerequisites

Set up the agent

Clone the LiveKit Node.js agent starter and install dependencies:
Download the required model files (VAD and turn detection):
Install the Anam plugin:

Configure credentials

Create a .env.local file:
.env.local
The avatar ID above is “Mia”, one of Anam’s stock avatars. Browse others in the Avatar Gallery or create your own at lab.anam.ai/avatars.

Add the avatar to your agent

Replace the contents of src/agent.ts:

Test locally

The agent connects to LiveKit Cloud and waits for rooms. You need a frontend to create a room and connect.

Set up the frontend

In a new terminal, create the React frontend:
Create a .env.local with your LiveKit credentials:
.env.local
Start the dev server:
Open http://localhost:3000, click connect, and the avatar appears as the agent speaks.

Deploy to LiveKit Cloud

This uploads your agent code and environment variables. The agent will now automatically join any rooms created in your project.

Next steps

Last modified on June 26, 2026