SuperAPI AI Directory

telemem

Mem0-compatible long-term and multimodal agent memory: character-isolated profiles, semantic deduplication, optional local stack and video memory with QA.

Open website

About this tool

Purpose

TeleMem is a memory management middleware for Agentic AI, serving as a high-performance drop-in replacement for Mem0, switchable with a single line of code:import telemem as mem0. It is deeply optimized for complex scenarios such as multi-turn conversations, character modeling, long-term information storage, and semantic retrieval, with the goal of using an agent's "hindsight" to enhance its "foresight."

Main Capabilities

Text Memory

  • Automatic memory extraction: extract and structure key facts from conversations.
  • Semantic clustering and deduplication: use an LLM to semantically merge similar memories, reducing conflicts and improving consistency.
  • Character-isolated memory: automatically build an independent memory profile for each character in a conversation, achieving precise isolation and personalized management, suitable for role-playing, companion AI, NPCs, and multi-personality assistants.
  • Efficient asynchronous writes: use a buffering + batch flush mechanism for high-performance persistence.
  • Precise semantic retrieval: combine FAISS + JSON dual storage, balancing fast recall with readable auditing.

Multimodal Video Memory

  • Automatic video processing pipeline: raw video → frame extraction → subtitle generation → vector database, fully automated.
  • ReAct-style video question answering: multi-step reasoning + tool calling for precise understanding of video content.
  • Smart caching: automatically skip a stage when the target file already exists, saving computational resources.

Usage

Installation and Configuration (per official documentation)

  • It is recommended to use uv to create a reproducible environment (based on the committed uv.lock).
  • Or use conda + pip.
  • Can be installed from PyPI via pip install telemem .
  • Requires setting an OpenAI API key; supports any OpenAI-compatible endpoint, and the repository's config/ directory provides ready-made configuration examples.
  • When using MiniMax as the LLM provider, refer to config/config.minimax.yaml; note that the temperature must be explicitly set within the (0.0, 1.0] range, and MiniMax does not provide a public embedding API, so the embedder must be configured separately.

Core API

  • add(): inject one or more turns of conversation, returning a mem0-compatible structure {"results": [{"id": "...", "memory": "...", "event": "ADD"}, ...]}. The internal flow includes message preprocessing, multi-perspective summarization (global event summary + each character's perspective), vectorization and similarity retrieval, batch semantic merging, and persistence.
  • search(): based on FAISS vector retrieval, supports millisecond-level response, returns a mem0-compatible structure.
  • Multi-character example: inexamples/multi_npc.py , a single add_batch(scene, user_id=[...]) call can build a private memory profile for each NPC along with a shared "event" world state.
  • Multimodal:add_mm(frame extraction, subtitle generation, vector database construction) and search_mm(internally uses MMCoreAgent, THINK → ACTION → OBSERVATION loop).

MCP Server Based on the official MCP Python SDK v2, compatible with the current MCP specification (2026-07-28) and older clients. Exposes 8 tools: add_memory, search_memories, get_memories, get_memory, update_memory, delete_memory, delete_all_memories, memory_history. When no scope is explicitly specified, TELEMEM_DEFAULT_USER_ID (telemem-mcp) is used by default; destructive batch deletion always requires an explicit scope. Can be accessed via uvx telemem Zero-install operation.

Framework integration Because it is compatible with the mem0 API, framework adapters written for the Mem0 OSS client (such as LangChain and LlamaIndex examples) can also point to telemem.Memory for use.

Applicable scenarios

  • Multi-role virtual agent systems
  • Long-term memory AI assistants (customer service, companionship, creative collaboration, etc.)
  • Complex narrative and world-building in virtual environments
  • Conversation scenarios with strong contextual dependencies
  • Video content question answering and reasoning, long video understanding and information retrieval, multimodal agent memory management

Limitations and notes

  • TeleMem itself does not collect telemetry; the underlying mem0ai enables anonymous PostHog usage telemetry by default, and TeleMem disables it by default.
  • The multimodal example generates frames, subtitles, and vector database JSON in the output directory on first run; generating subtitles and the video database still requires configuring VLM and embedding services.
  • The officially cited benchmark (the ZH-4O Chinese long-role dialogue dataset) is configured with LLM Qwen3-8B and embedding Qwen3-Embedding-8B, with a QA accuracy of 86.33%.
  • The project uses the Apache 2.0 license. For specific version updates and paper details, refer to the official repository.