selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
mnemo logo

Self-host mnemo

v0.1.0

Local-first AI memory layer with persistent knowledge graph

AlphaOpen SourceMIT
Updated13 hours ago
LanguageRust
Setup difficultyModerate
Stars
237
Port
8080 (API server)
Install with Docker Compose

What is mnemo?

A local-first AI memory layer that runs as a sidecar for LLM applications. It exposes a REST API where you send text, and it uses a configurable language model to pull out named entities and their relationships. Everything gets stored in a SQLite database backed by an in-memory knowledge graph. When you query it, the system blends full-text search, entity matching, and multi-hop graph traversal to return ranked context in milliseconds. The software is distributed as one standalone binary with no cloud dependencies and works with Ollama for fully local operation, plus OpenAI, Anthropic, and any OpenAI-compatible API. A CLI tool and Python SDK are included for integration. The knowledge graph deduplicates entities across sessions, weights relationships based on repeated sightings, and expands query results through configurable breadth-first search.

Should you self-host mnemo?

mnemo scores 43/100 on selfhost.directory (how scoring works) and ranks #91 of 125 in AI. It has 237 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. It is MIT-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is ComfyUI (93/100, 143 752 stars). It scores higher overall, so compare the two before you pick. See mnemo vs ComfyUI side by side.

Features

  • CLI Tool
  • Entity extraction
  • Graph Traversal
  • Multiple LLM backends
  • Persistent knowledge graph
  • REST API
  • Semantic Retrieval
  • Session support
  • Single static binary

mnemo README

How to install mnemo

Install mnemo with Docker Compose

Docker and Docker Compose
Environment variables
MNEMO_DB_PATH, MNEMO_PORT, MNEMO_LLM_BASE_URL, MNEMO_LLM_MODEL, MNEMO_LLM_API_KEY, MNEMO_LLM_PROVIDER

git clone https://github.com/zaydmulani09/mnemo cd mnemo docker compose up -d

Pull the llama3 model the first time (~4 GB)

docker exec mnemo-ollama ollama pull llama3

Verify everything is healthy

curl http://localhost:8080/health

Includes Ollama as a dependency service

How to configure mnemo

  • MNEMO_DB_PATHmnemo.dbSQLite database file path

    SQLite database file path

  • MNEMO_LLM_API_KEYollamaAPI key (any value works for Ollama)

    API key (any value works for Ollama)

  • MNEMO_LLM_BASE_URLhttp://localhost:11434/v1OpenAI-compatible LLM base URL

    OpenAI-compatible LLM base URL

  • MNEMO_LLM_MODELllama3Model name for entity extraction

    Model name for entity extraction

  • MNEMO_LLM_PROVIDERollamaProvider type: ollama, openai, anthropic, custom

    Provider type: ollama, openai, anthropic, custom

    values: ollama, openai, anthropic, custom

  • MNEMO_PORT8080API server port

    API server port

More in Knowledge Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…