LiveKit Plugin
livekit-plugin-alchemyst gives your LiveKit voice agents persistent, cross-session memory powered by Alchemyst AI. Voice agents remember users across conversations — preferences, past requests, personal details — and use that context for personalised responses without any manual state management.Features
- Automatic RAG injection — relevant memories are semantically retrieved and injected before each LLM response via the
onUserTurnCompletedhook - Auto-persist — completed user/assistant turns are stored to Alchemyst automatically
- LLM tools — exposes
remember,recall, andforgettools for explicit memory management - Per-session scoping — memories scoped by
groupName, session ID, and user identity - Provider-agnostic — works with any LLM (OpenAI, Gemini, Anthropic, etc.)
Installation
Quick Start
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | ALCHEMYST_API_KEY env | Alchemyst API key |
userId | string | "anonymous" | User identifier |
sessionId | string | auto-generated | Session identifier |
similarityThreshold | number | 0.5 | Similarity threshold (0–1) |
maxMemories | number | 5 | Max memories returned per search |
groupNames | string[] | ["voice-agent"] | Group tags for filtering |
autoPersist | boolean | true | Auto-store turns |
LLM Tools
| Tool | Description |
|---|---|
remember | Store a fact or preference in persistent memory |
recall | Semantic search over stored memories |
forget | Permanently delete a memory by ID |
Use Cases
- Customer support — remember account details and past issues across calls
- Personal companion — learn user preferences, routines, and interests
- Sales qualification — track prospect details and buying signals
- Multi-tenant SaaS — scope memory per organization and user

