explaingit

memtensor/memos

9,064TypeScriptAudience · developerComplexity · 3/5Setup · moderate

TLDR

MemOS gives AI assistants and chatbots a persistent memory so they can remember past conversations and decisions across sessions, instead of starting completely fresh each time.

Mindmap

mindmap
  root((MemOS))
    What it does
      Persistent memory
      Cross-session recall
      Token reduction
    Memory layers
      Short-term traces
      Learned patterns
      World model
      Reusable skills
    Retrieval
      Keyword search
      Semantic search
      Hybrid approach
    Deployment
      Local SQLite plugin
      Cloud service
    Integration
      Hermes Agent
      OpenClaw
      Custom agents
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Give a customer service chatbot memory of past conversations so users do not have to repeat themselves in every new session.

USE CASE 2

Build a personal AI assistant that remembers your preferences and past decisions across separate chat sessions.

USE CASE 3

Reduce AI prompt token costs by storing conversation history in MemOS and retrieving only the relevant parts each time.

USE CASE 4

Enable multiple AI agents working on the same project to share a common memory pool through the cloud version.

Tech stack

TypeScriptPythonSQLite

Getting it running

Difficulty · moderate Time to first run · 30min

In plain English

MemOS is a memory system for AI agents and large language models. The basic problem it addresses is that most AI chat systems start fresh with each conversation: they have no recollection of what was discussed before unless you paste it back in manually. MemOS gives AI agents a structured, persistent memory that survives across sessions, so the agent can recall earlier conversations, build on past decisions, and adapt its behavior over time. The system organizes memory into different layers. Short-term interaction traces sit at one level, learned patterns and policies at another, and a broader model of the world at a third. There is also a layer for reusable skills, things the agent has figured out how to do that it can apply again in new situations. These layers are not just storage: the system evolves them over time based on feedback, adding, correcting, and replacing memories as needed. For retrieval, MemOS uses a hybrid approach that combines traditional keyword search with vector-based semantic search, so it can find relevant memories whether the query matches the exact phrasing or just the general meaning. The project claims this reduces the number of tokens needed in AI prompts by about 35%, because you can retrieve the specific memory that matters rather than stuffing the entire history into every request. MemOS ships as two main options: a self-hosted local plugin and a cloud service. The local plugin stores everything on the user's device using SQLite, with no external dependency. The cloud version adds multi-agent memory sharing, where multiple AI agents working under the same user ID can share a common memory pool. Both variants expose a single API for adding, retrieving, editing, and deleting memories. The project is designed to integrate with existing AI agent frameworks. Plugins are available for Hermes Agent and OpenClaw. It supports text, images, tool usage history, and knowledge bases built from documents or URLs. MemOS is accompanied by a research paper and is open source under a license the README links to its documentation site for full details.

Copy-paste prompts

Prompt 1
I'm building an AI assistant and want it to remember past user conversations using MemOS. Show me how to integrate the local plugin and save memories after each session.
Prompt 2
How do I use MemOS to retrieve only the relevant past memories for a new user query instead of pasting the full history into every prompt?
Prompt 3
I want to run MemOS locally with SQLite so no user data leaves my machine. What is the setup process?
Prompt 4
How does the MemOS cloud version let multiple AI agents share the same memory pool under one user ID?
Prompt 5
Show me how to use the MemOS API to add, retrieve, edit, and delete memories programmatically.
Open on GitHub → Explain another repo

← memtensor on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.