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.

mem0 logo

Self-host mem0

ts-v3.3.1

Durable memory layer for AI chat agents

ReleaseOpen SourceApache-2.0
Updatedlast month
LanguagePython
Setup difficultyEasy
Stars
68 986
Ports
8000 (FastAPI REST API inside the container; the reference compose file publishes it as 8888:8000 (API reachable at http://localhost:8888).), 3000 (Web dashboard container (http://localhost:3000).)
Install with Docker
mem0 screenshot 1mem0 screenshot 2mem0 screenshot 3mem0 screenshot 4

What is mem0?

Should you self-host mem0?

mem0 scores 86/100 on selfhost.directory (how scoring works) and ranks #2 of 167 in Developer Tools. It has 68 986 GitHub stars, +1 982 in the last 30 days.

It shipped 82 stable releases in the past year. The latest, ts-v3.3.1, came out on 25 September 2026.

Setup is easy: most people get it running in one sitting. It is Apache-2.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is openhands (87/100, 93 487 stars). It scores higher overall, so compare the two before you pick. See mem0 vs openhands side by side.

Features

  • Async memory operations
  • CLI
  • Custom Instructions
  • Entity linkingBenchmarks published for the new algorithm were measured on the managed platform, which has proprietary optimizations the open-source SDK lacks.
  • Hybrid search with BM25 keyword matchingRequires the mem0ai[nlp] extra plus a spaCy model.
  • Metadata Filtering
  • Multimodal memory
  • Node.js SDK
  • Persistent agent memory
  • Per-user API keys
  • Pluggable LLM and embedder
  • Python SDK
  • Reranker support
  • REST API
  • Web Dashboard

mem0 README

How to install mem0

Install mem0 with Docker

Docker and Docker Compose (the reference path).
Environment variables
OPENAI_API_KEY, POSTGRES_PASSWORD, JWT_SECRET, AUTH_DISABLED, ADMIN_API_KEY, DASHBOARD_URL
cd server
cp .env.example .env
# Recommended: one command — start the stack, create an admin, issue the first API key.
cd server && make bootstrap

# Manual: start the stack and finish setup via the browser wizard.
cd server && docker compose up -d    # http://localhost:3000

Self-hosted server: dashboard on http://localhost:3000, REST API on http://localhost:8888 with OpenAPI docs at /docs.

How to configure mem0

  • OPENAI_API_KEY
  • JWT_SECRET
  • ADMIN_API_KEY
  • AUTH_DISABLEDfalseLocal development only. Leave false in production.
  • DASHBOARD_URLhttp://localhost:3000

mem0 releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Developer Tools

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…