
Build realtime multimodal AI agents with Node.js
Repo livekit/agents-js, read from GitHub 1 min ago. livekit has not joined Take My Repo.
livekit/agents-js is a public repo on GitHub by livekit. Build realtime multimodal AI agents with Node.js. It declares the Apache-2.0 license on GitHub. It is written mainly in TypeScript, has 972 stars and last changed on 2026-11-23. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Tip
We just released livekit-agents 1.5.0. Check the release note and migration guide here.
The Agent Framework is designed for building realtime, programmable participants that run on servers. Use it to create conversational, multi-modal voice agents that can see, hear, and understand.
This is a Node.js distribution of the LiveKit Agents framework, originally written in Python.
The framework includes a variety of plugins that make it easy to process streaming input or generate output. For example, there are plugins for converting text-to-speech or running inference with popular LLMs.
pnpm if you haven't already:npm install -g pnpm
To install the core Agents library as well as plugins, run:
pnpm install @livekit/agents
Currently, only the following plugins are supported:
| Plugin | Features |
|---|---|
| @livekit/agents-plugin-openai | LLM, TTS, STT |
| @livekit/agents-plugin-google | LLM, TTS |
| @livekit/agents-plugin-deepgram | STT, TTS |
| @livekit/agents-plugin-elevenlabs | TTS |
| @livekit/agents-plugin-cartesia | STT, TTS |
| @livekit/agents-plugin-neuphonic | TTS |
| @livekit/agents-plugin-resemble | TTS |
| @livekit/agents-plugin-rime | TTS |
| @livekit/agents-plugin-inworld | STT, TTS |
| @livekit/agents-plugin-silero | VAD |
| @livekit/agents-plugin-livekit | EOU |
| @livekit/agents-plugin-anam | Avatar |
| @livekit/agents-plugin-bey | Avatar |
| @livekit/agents-plugin-lemonslice | Avatar |
| @livekit/agents-plugin-liveavatar | Avatar |
| @livekit/agents-plugin-did | Avatar |
| @livekit/agents-plugin-protoface | Avatar |
| @livekit/agents-plugin-mistralai | LLM, STT, TTS |
| @livekit/agents-plugin-xai | LLM, TTS |
| @livekit/agents-plugin-phonic | Realtime |
| @livekit/agents-plugin-fishaudio | TTS |
| @livekit/agents-plugin-hume | TTS |
| @livekit/agents-plugin-speechify | TTS |
Documentation on the framework and how to use it can be found here
Kickstart a complete voice AI pipeline (LLM, STT, TTS) with the LiveKit Agents Starter for Node.js:
It includes a ready-made assistant, multilingual turn detection, background noise cancellation, metrics/logging, and a production-ready Dockerfile. Start fast, then tailor it with your preferred models and plugins.
Checkout the quickstart guide
import { type JobContext, type JobProcess, WorkerOptions, cli, defineAgent, llm, voice, inference, } from '@livekit/agents'; import * as silero from '@livekit/agents-plugin-silero'; import { fileURLToPath } from 'node:url'; import { z } from 'zod'; const lookupWeather = llm.tool({ description: 'Used to look up weather information.', parameters: z.object({ location: z.string().describe('The location to look up weather information for'), }), execute: async ({ location }, { ctx }) => { return { weather: 'sunny', temperature: 70 }; }, }); export default defineAgent({ prewarm: async (proc: JobProcess) => { proc.userData.vad = await silero.VAD.load(); }, entry: async (ctx: JobContext) => { const agent = new voice.Agent({ instructions: 'You are a friendly voice assistant built by LiveKit.', tools: { lookupWeather }, }); const session = new voice.AgentSession({ // Speech-to-text (STT) is your agent's ears, turning the user's speech into text that the LLM can understand // See all available models at https://docs.livekit.io/agents/models/stt/ stt: new inference.STT({ model: 'deepgram/nova-3', language: 'en' }), // A Large Language Model (LLM) is your agent's brain, processing user input and generating a response // See all available models at https://docs.livekit.io/agents/models/llm/ llm: new inference.LLM({ model: 'openai/gpt-4.1-mini' }), // Text-to-speech (TTS) is your agent's voice, turning the LLM's text into speech that the user can hear // See all available models as well as voice selections at https://docs.livekit.io/agents/models/tts/ tts: new inference.TTS({ model: 'cartesia/sonic-3', voice: '9626c31c-bec5-4cca-baa8-f8ba9e84c8bc' }), // VAD and turn detection are used to determine when the user is speaking and when the agent should respond // See more at https://docs.livekit.io/agents/build/turns vad: ctx.proc.userData.vad! as silero.VAD, turnDetection: new livekit.turnDetector.MultilingualModel(), // To use hosted OpenAI Realtime or xAI Grok Voice, replace stt, llm, tts and vad with the // following. Use the provider plugin's RealtimeModel instead when supplying credentials directly. // llm: new inference.RealtimeModel({ model: 'openai/gpt-realtime' }), // or, for OpenAI's full-duplex GPT-Live: llm: 'openai/gpt-live-1', }); await session.start({ agent, room: ctx.room, }); await session.generateReply({ instructions: 'greet the user and ask about their day', }); }, }); cli.runApp(new WorkerOptions({ agent: fileURLToPath(import.meta.url) }));
No third-party API keys are required for this example. It runs out of the box via the LiveKit Inference Gateway.
This code snippet is abbreviated. For the full example, see multi_agent.ts
type StoryData = { name?: string; location?: string; }; class IntroAgent extends voice.Agent<StoryData> { constructor() { super({ instructions: `You are a story teller. Your goal is to gather a few pieces of information from the user to make the story personalized and engaging. Ask the user for their name and where they are from.`, tools: { informationGathered: llm.tool({ description: 'Called when the user has provided the information needed to make the story personalized and engaging.', parameters: z.object({ name: z.string().describe('The name of the user'), location: z.string().describe('The location of the user'), }), execute: async ({ name, location }, { ctx }) => { ctx.userData.name = name; ctx.userData.location = location; return llm.handoff({ agent: new StoryAgent(name, location), returns: "Let's start the story!", }); }, }), }, }); } // Use inheritance to create agent with custom hooks async onEnter() { this.session.generateReply({ instructions: '"greet the user and gather information"', }); } } class StoryAgent extends voice.Agent<StoryData> { constructor(name: string, location: string) { super({ instructions: `You are a storyteller. Use the user's information in order to make the story personalized. The user's name is ${name}, from ${location}`, }); } async onEnter() { this.session.generateReply(); } } export default defineAgent({ prewarm: async (proc: JobProcess) => { proc.userData.vad = await silero.VAD.load(); }, entry: async (ctx: JobContext) => { await ctx.connect(); const participant = await ctx.waitForParticipant(); console.log('participant joined: ', participant.identity); const userdata: StoryData = {}; const session = new voice.AgentSession({ vad: ctx.proc.userData.vad! as silero.VAD, stt: new inference.STT({ model: 'deepgram/nova-3', language: 'en' }), llm: new inference.LLM({ model: 'openai/gpt-4.1-mini' }), tts: new inference.TTS({ model: 'cartesia/sonic-3', voice: '9626c31c-bec5-4cca-baa8-f8ba9e84c8bc' }), userData: userdata, }); await session.start({ agent: new IntroAgent(), room: ctx.room, }); }, });
The framework exposes a CLI interface to run your agent. To get started, you'll need the following environment variables set:
LIVEKIT_URLLIVEKIT_API_KEYLIVEKIT_API_SECRETOPENAI_API_KEY)The following command will start the worker and wait for users to connect to your LiveKit server:
pnpm run build && node ./examples/src/restaurant_agent.ts devTo ease the process of building and testing an agent, we've developed a versatile web frontend called "playground". You can use or modify this app to suit your specific requirements. It can also serve as a starting point for a completely custom agent application.
pnpm run build && node ./examples/src/restaurant_agent.ts startRuns the agent with production-ready optimizations.
When you follow the steps above to run your agent, a worker is started that opens an authenticated
WebSocket connection to a LiveKit server instance(defined by your LIVEKIT_URL and authenticated
with an access token).
No agents are actually running at this point. Instead, the worker is waiting for LiveKit server to give it a job.
When a room is created, the server notifies one of the registered workers about a new job. The notified worker can decide whether or not to accept it. If the worker accepts the job, the worker will instantiate your agent as a participant and have it join the room where it can start subscribing to tracks. A worker can manage multiple agent instances simultaneously.
If a notified worker rejects the job or does not accept within a predetermined timeout period, the server will route the job request to another available worker.
The orchestration system was designed for production use cases. Unlike the typical web server, an agent is a stateful program, so it's important that a worker isn't terminated while active sessions are ongoing.
When calling SIGTERM on a worker, the worker will signal to LiveKit server that it no longer wants additional jobs. It will also auto-reject any new job requests that get through before the server signal is received. The worker will remain alive while it manages any agents connected to rooms.
To contribute to this project:
main branchTo test any changes or plugins:
Build the project:
pnpm build
Edit ./examples/src/basic_agent.ts as necessary for any plugin changes
Run the basic agent with debug logging:
node ./examples/src/basic_agent.ts dev --log-level=debug
To connect and talk to your agent:
This project is licensed under Apache-2.0, and is REUSE-3.2 compliant.
Refer to the license for details.
The LiveKit turn detection models are licensed under the LiveKit Model License.
| LiveKit Ecosystem | |
|---|---|
| Agents SDKs | Python · Node.js |
| LiveKit SDKs | Browser · Swift · Android · Flutter · React Native · Rust · Node.js · Python · Unity · Unity (WebGL) · ESP32 · C++ |
| Starter Apps | Python Agent · TypeScript Agent · React App · SwiftUI App · Android App · Flutter App · React Native App · Web Embed |
| UI Components | React · Android Compose · SwiftUI · Flutter |
| Server APIs | Node.js · Golang · Ruby · Java/Kotlin · Python · Rust · PHP (community) · .NET (community) |
| Resources | Docs · Docs MCP Server · CLI · LiveKit Cloud |
| LiveKit Server OSS | LiveKit server · Egress · Ingress · SIP |
| Community | Developer Community · Slack · X · YouTube |
livekit/agents-js is a public repo on GitHub by livekit. Build realtime multimodal AI agents with Node.js.
It declares the Apache-2.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-23. GitHub counts 568 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.

End-to-end realtime stack for connecting humans and AI

A framework for building realtime voice AI agents 🤖🎙️📹


Official open source React components and examples for building with LiveKit.
Take My Repo has not tested this on your machine. Requirements come from the project's own documentation.