whatisgithub

What is mnemo?

zaydmulani09/mnemo — explained in plain English

Analysis updated 2026-05-18

193RustAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

A local Rust service that gives AI chat apps persistent memory by extracting entities and relationships from conversations and returning relevant context on demand.

Mindmap

mindmap
  root((mnemo))
    What it does
      Persistent AI memory
      Entity extraction
      Relationship graph
    Tech stack
      Rust binary
      SQLite storage
      Docker option
    Use cases
      Local AI chat memory
      Custom AI pipelines
      Offline assistants
    Audience
      Developers
      Self hosters
    Setup
      Docker with Ollama
      Rust binary install
      Python SDK

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

Give a local AI chatbot memory of past conversations across sessions.

USE CASE 2

Build a custom AI pipeline that needs structured, queryable memory it fully controls.

USE CASE 3

Run a fully offline AI assistant with Ollama and no data leaving your machine.

What is it built with?

RustSQLiteDockerOllamaPython SDK

How does it compare?

zaydmulani09/mnemomanyougz/velotypeevokoa/pggraph
Stars193191210
LanguageRustRustRust
Setup difficultymoderateeasymoderate
Complexity3/52/54/5
Audiencedeveloperwriterdeveloper

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

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires either Docker with Ollama or the compiled Rust binary plus an AI provider API key.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

Mnemo is a memory layer for AI language model applications, written in Rust. It solves a specific problem: AI chat sessions normally forget everything when they end. Mnemo runs as a background service alongside your application, listens for text you feed it, and builds a persistent record of entities and their relationships so that future conversations can reference things learned in earlier ones. Here is how it works in practice. Your application sends text to mnemo's ingest endpoint, such as a message from a chat session or a document. Mnemo sends that text to a language model of your choice, which extracts named entities (people, tools, places, concepts) and the connections between them. Those entities are stored in a local SQLite database along with a graph structure that tracks relationships. When your application needs context for a new prompt, it calls mnemo's retrieve endpoint with a query. Mnemo searches the stored text, finds matching entities, traverses the relationship graph to pull in related information, ranks everything by relevance, and returns a ready-to-use context string you can paste into your model's system prompt. Mnemo works with Ollama (a tool for running AI models entirely on your own computer, at no cost), OpenAI, Anthropic, or any API that follows the OpenAI format. No data ever leaves your machine unless you connect it to a cloud API yourself. The whole service ships as a single compiled binary with no Python or external runtime required, and it is designed to respond in under 50 milliseconds. Three ways to use it are provided: Docker with Ollama for a fully local, free setup, installing the Rust binary directly and pointing it at whichever AI service you already use, and a Python SDK for developers who want to call mnemo from Python code without managing HTTP requests manually. A command-line tool is also included for storing and searching memories, listing entities, and inspecting the knowledge graph from a terminal. Mnemo is aimed at developers building custom AI pipelines who need persistent, structured, local memory they control completely. It is not designed for use with managed AI platforms that already handle memory for you. The project is MIT-licensed. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Show me how to send a chat message to mnemo's ingest endpoint from my Python app.
Prompt 2
Write a Docker Compose setup that runs mnemo alongside Ollama for a fully local memory layer.
Prompt 3
Explain how mnemo's retrieve endpoint ranks and returns context for a new prompt.
Prompt 4
Help me wire mnemo into my existing OpenAI-compatible chat app for persistent memory.

Frequently asked questions

What is mnemo?

A local Rust service that gives AI chat apps persistent memory by extracting entities and relationships from conversations and returning relevant context on demand.

What language is mnemo written in?

Mainly Rust. The stack also includes Rust, SQLite, Docker.

What license does mnemo use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is mnemo to set up?

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

Who is mnemo for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.