whatisgithub

What is memori?

memorilabs/memori — explained in plain English

Analysis updated 2026-06-24

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

In one sentence

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

What do people build with it?

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.

What is it built with?

PythonTypeScript

How does it compare?

memorilabs/memorijoeanamier/tiktokdownloadernvlabs/stylegan
Stars14,44014,40314,402
LanguagePythonPythonPython
Setup difficultymoderatemoderatehard
Complexity3/52/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get 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.

So what is it?

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?

Frequently asked questions

What is memori?

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.

What language is memori written in?

Mainly Python. The stack also includes Python, TypeScript.

How hard is memori to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is memori for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.