Socket
Book a DemoInstallSign in
Socket

@livekit/agents-plugin-baseten

Package Overview
Dependencies
Maintainers
42
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livekit/agents-plugin-baseten

Baseten plugin for LiveKit Node Agents

latest
Source
npmnpm
Version
1.0.31
Version published
Maintainers
42
Created
Source

LiveKit Agents Baseten Plugin

Node.js/TypeScript plugin for LiveKit Agents with Baseten-hosted models (LLM, STT, TTS).

Installation

cd packages/livekit-plugin-baseten
pnpm install
pnpm build

Configuration

Create .env file:

BASETEN_API_KEY=your_api_key_here
BASETEN_MODEL_ID=your_llm_model_id
BASETEN_TTS_MODEL_ID=your_tts_model_id
BASETEN_STT_MODEL_ID=your_stt_model_id

Usage

LLM

import { LLM } from 'livekit-plugin-baseten'

const llm = new LLM({
    model: 'openai/gpt-4o-mini',
    apiKey: process.env.BASETEN_API_KEY
})

STT

import { STT } from 'livekit-plugin-baseten'

const stt = new STT({
    apiKey: process.env.BASETEN_API_KEY,
    modelId: process.env.BASETEN_STT_MODEL_ID
})

const stream = stt.stream()
for await (const event of stream) {
    // Handle speech events
}

TTS

import { TTS } from 'livekit-plugin-baseten'

const tts = new TTS({
    apiKey: process.env.BASETEN_API_KEY,
    modelEndpoint: 'your-model-endpoint-url'
})

const stream = tts.synthesize('Hello world')
for await (const frame of stream) {
    // Process audio frames
}

Testing

pnpm test:llm-cli   # Interactive LLM chat
pnpm test:tts-cli   # TTS synthesis
pnpm test:stt-cli   # STT with microphone

See TESTING.md for details.

Development

pnpm build      # Build
pnpm dev        # Watch mode
pnpm typecheck  # Type checking
pnpm lint       # Linting

Keywords

livekit

FAQs

Package last updated on 23 Dec 2025

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