explaingit

memorilabs/memori

14,440PythonAudience · developerComplexity · 3/5Setup · moderate

TLDR

Memori is a memory layer for AI agents that captures what happens during conversations and surfaces relevant context in future sessions, so agents stop starting completely blank every time a new chat begins.

Mindmap

mindmap
  root((Memori))
    Problem
      Agents forget
      Blank sessions
      Repeated context
    How it works
      Wraps AI client
      Stores memory
      Retrieves relevant
    Interfaces
      Python package
      TypeScript package
      MCP connector
    Storage
      Memori Cloud
      BYODB self-hosted
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

Add persistent memory to a Claude or GPT-powered chatbot so it remembers user preferences and past context across sessions.

USE CASE 2

Connect an AI coding assistant like Cursor or Claude Code to Memori via MCP so it recalls project context between sessions.

USE CASE 3

Build an AI customer support agent that answers from stored memory without replaying entire conversation histories.

Tech stack

PythonTypeScript

Getting it running

Difficulty · moderate Time to first run · 30min

Requires a Memori Cloud API key, a self-hosted BYODB option is available for teams that want to keep memory data in their own infrastructure.

In plain English

Memori is a memory infrastructure layer for AI agents. An AI agent, in this context, is a software program powered by a large language model (an AI system trained to understand and generate text) that takes actions on your behalf, such as answering questions, writing code, or managing tasks. The problem Memori addresses is that these agents typically forget everything when a session ends. Each new conversation starts completely blank, which means users have to re-explain their preferences, context, and history every time. Memori fixes this by capturing what happens during agent sessions and storing it as structured, persistent memory that can be retrieved in future sessions. It works by wrapping the AI client your application already uses, so it intercepts conversations in the background without requiring you to change your core agent logic. When the same user returns, relevant memories are surfaced automatically, reducing the need for large piles of background context to be loaded into every request. The library is available as a Python package and a TypeScript package and connects to an API key from the Memori Cloud service. It also describes a self-hosted option called BYODB (bring your own database) for teams that want to keep memory data in their own infrastructure. Integrations exist for several AI frameworks and gateway tools: a plugin for something called OpenClaw, a provider for a tool called Hermes Agent, and an MCP connector that lets AI coding assistants like Claude Code or Cursor use Memori with a single command. According to the README, Memori was evaluated on a benchmark called LoCoMo that tests long-conversation memory and achieved 81.95% accuracy while using roughly 5% of the prompt size that full-context approaches require, meaning it answers questions from memory using far fewer tokens than would be needed to replay the entire conversation history each time.

Copy-paste prompts

Prompt 1
Show me how to wrap my existing OpenAI client with Memori in Python so conversations are automatically stored and recalled in future sessions.
Prompt 2
How do I configure the Memori MCP connector so Claude Code remembers my coding preferences and project context across multiple sessions?
Prompt 3
Write a Python script that uses Memori to store a user preference from one conversation and retrieve it in a new conversation without passing the full chat history.
Prompt 4
How do I set up Memori with the BYODB option to store conversation memory in my own Postgres database instead of Memori Cloud?
Open on GitHub → Explain another repo

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

Verify against the repo before relying on details.