Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@livekit/agents-plugin-lemonslice

Package Overview
Dependencies
Maintainers
42
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livekit/agents-plugin-lemonslice

LemonSlice avatar plugin for LiveKit Node Agents

latest
Source
npmnpm
Version
1.0.42
Version published
Maintainers
42
Created
Source

LemonSlice plugin for LiveKit Agents

Support for avatar generation and animation with LemonSlice.

See https://docs.livekit.io/agents/models/avatar/plugins/lemonslice/ for more information.

Installation

npm install @livekit/agents-plugin-lemonslice
# or
pnpm add @livekit/agents-plugin-lemonslice
# or
yarn add @livekit/agents-plugin-lemonslice

Pre-requisites

You'll need an API key from LemonSlice. It can be set as an environment variable: LEMONSLICE_API_KEY Manage your LemonSlice API key through the LemonSlice API Dashboard

Usage

import { AvatarSession } from '@livekit/agents-plugin-lemonslice';

// Create an avatar session with an image URL
const avatar = new AvatarSession({
  agentImageUrl: 'publicly-accessible-image-url',
  apiKey: 'your-lemonslice-api-key', // or set LEMONSLICE_API_KEY env var
});

// Start the avatar session after creating your agent session
await avatar.start(agentSession, room);

Full Example

Find a complete working example here.

Set LEMONSLICE_API_KEY and LEMONSLICE_IMAGE_URL to get up and running.

Configuration Options

AvatarSessionOptions

OptionTypeDescription
agentIdstringThe LemonSlice agent ID to use. Either agentId or agentImageUrl must be provided.
agentImageUrlAvatarImageA publicly accessible url to your avatar image. Either agentId or agentImageUrl must be provided.
apiUrlstringThe LemonSlice API URL. Defaults to LEMONSLICE_API_URL env var or the default LemonSlice API endpoint.
apiKeystringThe LemonSlice API key. Defaults to LEMONSLICE_API_KEY env var.
avatarParticipantIdentitystringThe identity of the avatar participant in the room. Defaults to 'lemonslice-avatar-agent'.
avatarParticipantNamestringThe name of the avatar participant in the room. Defaults to 'lemonslice-avatar-agent'.
connOptionsAPIConnectOptionsConnection options for API requests (retry count, timeout, etc.).

Environment Variables

VariableDescription
LEMONSLICE_API_KEYYour LemonSlice API key
LEMONSLICE_API_URLCustom LemonSlice API URL (optional)
LIVEKIT_URLYour LiveKit server URL
LIVEKIT_API_KEYYour LiveKit API key
LIVEKIT_API_SECRETYour LiveKit API secret

FAQs

Package last updated on 05 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts