LiveKit docs › Build Agents › Models › Virtual avatar › Tavus

---

# Tavus virtual avatar integration guide

> How to use the Tavus virtual avatar plugin for LiveKit Agents.

Available in:
- [x] Node.js
- [x] Python

## Overview

[Tavus](https://tavus.io/) provides hyper-realistic interactive avatars for conversational video AI agents. You can use the open source Tavus integration for LiveKit Agents to add virtual avatars to your voice AI app.

- **[Tavus demo](https://www.youtube.com/watch?v=iuX5PDP73bQ)**: A video showcasing an educational AI agent that uses Tavus to create an interactive study partner.

[Video: Replica: r3f427f43c9d, Persona: paaee96e4f87](https://static.livekit.io/video/docs-avatar-demos/demo-tavus-expressive.mp4)

### Installation

**Python**:

```shell
uv add "livekit-agents[tavus]~=1.8"

```

---

**Node.js**:

```shell
pnpm add @livekit/agents-plugin-tavus

```

### Authentication

The Tavus plugin requires a [Tavus API key](https://docs.tavus.io/api-reference/authentication#get-the-api-key).

Set `TAVUS_API_KEY` in your `.env` file.

### Faces and PALs

A Tavus avatar combines a [face](https://docs.tavus.io/sections/faces/overview) and a Personified Application Layer ([PAL](https://docs.tavus.io/sections/conversational-video-interface/pal/overview)). The face is the on-screen likeness and voice. The PAL is the conversational configuration: it sets the agent's behavior and the LiveKit transport, and carries a default face. The face overrides the PAL's default face when you set one. Choose each with the `face_id` and `pal_id` parameters, or omit either to fall back to a default.

#### Using faces

When you set a `pal_id` without a `face_id`, the avatar uses that PAL's default face. When you set neither, the plugin uses the stock "Lucy - Home" face. To use a specific appearance, set `face_id` to a stock or custom face:

- Browse Tavus's [stock faces](https://docs.tavus.io/sections/faces/stock-faces) and copy the ID of one you like.
- Train a [custom face](https://docs.tavus.io/sections/faces/which-training-path) from a short video or an image.

> 🔀 **Behavior change: Default face is now Lucy - Home**
> 
> As of `livekit-agents` 1.8.1 (Python) and `@livekit/agents` 1.9.0 (Node.js), an agent that sets neither `face_id` nor `pal_id` uses the stock "Lucy - Home" face, which runs on Tavus's phoenix-4.5 model. Earlier versions used the stock PAL's own face, Luna, on the older phoenix-3 model. To restore the earlier appearance, set `face_id` to the Luna face from Tavus's [stock faces](https://docs.tavus.io/sections/faces/stock-faces).

#### Using PALs

By default, the plugin uses a stock PAL already configured for LiveKit Agents, which covers most apps. To define your own conversational configuration, create a PAL and pass its ID as `pal_id`. A PAL used with LiveKit Agents must set `pipeline_mode` to `echo` and define a `livekit` transport layer. The following `curl` command creates one using the [Create PAL endpoint](https://docs.tavus.io/api-reference/pals/create-pal):

```shell
curl --request POST \
  --url https://tavusapi.com/v2/pals \
  -H "Content-Type: application/json" \
  -H "x-api-key: <api-key>" \
  -d '{
    "pal_name": "My PAL",
    "default_face_id": "<face-id>",
    "pipeline_mode": "echo",
    "layers": {
        "transport": {
            "transport_type": "livekit"
        }
    }
}'

```

In Node.js, you can also create a PAL in code with `TavusAPI`:

```typescript
import { TavusAPI } from '@livekit/agents-plugin-tavus';

const tavus = new TavusAPI(); // reads TAVUS_API_KEY
const palId = await tavus.createPal({ defaultFaceId: '<face-id>' });

```

### Usage

Use the plugin in an `AgentSession`. For example, you can use this avatar in the [Voice AI quickstart](https://docs.livekit.io/agents/start/voice-ai.md).

**Python**:

```python
from livekit import agents
from livekit.agents import AgentServer, AgentSession
from livekit.plugins import tavus

server = AgentServer()

@server.rtc_session(agent_name="my-agent")
async def my_agent(ctx: agents.JobContext):
   session = AgentSession(
      # ... stt, llm, tts, etc.
   )

   avatar = tavus.AvatarSession(
      # Both are optional. Omit to use a default stock PAL.
      face_id="...",  # ID of the Tavus face to use
      pal_id="...",  # ID of the Tavus PAL to use (see preceding section for configuration details)
   )

   # Start the avatar and wait for it to join
   await avatar.start(session, room=ctx.room)

   # Start your agent session with the user
   await session.start(
      # ... room, agent, room_options, etc....
   )

```

---

**Node.js**:

```typescript
import { voice } from '@livekit/agents';
import * as tavus from '@livekit/agents-plugin-tavus';

const session = new voice.AgentSession({
    // Add STT, LLM, TTS, and other components here
});

const avatar = new tavus.AvatarSession({
  // Both are optional. Omit to use a default stock PAL.
  faceId: '...', // ID of the Tavus face to use
  palId: '...', // ID of the Tavus PAL to use (see preceding section for configuration details)
});

// Start the avatar and wait for it to join
await avatar.start(session, room);

// Start your agent session with the user
await session.start(
    // ... room, agent, room_options, etc.
);

```

Preview the avatar in the [Agent Console](https://docs.livekit.io/testing/agent-console.md) or a frontend [starter app](https://docs.livekit.io/agents/start/frontend.md#starter-apps) that you build.

### Parameters

This section describes some of the available parameters. See the [plugin reference](https://docs.livekit.io/reference/python/livekit/plugins/tavus/index.html.md#livekit.plugins.tavus.AvatarSession) for a complete list of all available parameters.

- **`face_id`** _(string)_ (optional) - Environment: `TAVUS_FACE_ID`: ID of the Tavus face to use. Omit to use the stock "Lucy - Home" face, or the default face of the PAL you set with `pal_id`. See [Faces and PALs](#face-pal) for details.

- **`pal_id`** _(string)_ (optional) - Environment: `TAVUS_PAL_ID`: ID of the Tavus PAL to use. Omit to use a default stock PAL. See [Faces and PALs](#face-pal) for details.

- **`avatar_participant_name`** _(string)_ (optional) - Default: `tavus-avatar-agent`: The name of the participant to use for the avatar.

## Additional resources

The following resources provide more information about using Tavus with LiveKit Agents.

- **[Tavus docs](https://docs.tavus.io/)**: Tavus's full docs site.

- **[Agent Console](https://docs.livekit.io/testing/agent-console.md)**: A virtual workbench to test your avatar agent.

- **[Frontend starter apps](https://docs.livekit.io/agents/start/frontend.md#starter-apps)**: Ready-to-use frontend apps with avatar support.

---

This document was rendered at 2026-11-14T14:47:57.626Z.
For the latest version of this document, see [https://docs.livekit.io/agents/models/avatar/plugins/tavus.md](https://docs.livekit.io/agents/models/avatar/plugins/tavus.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).