# Repository Briefing: openmemind/memind
> Source: https://repoforai.com/repo/openmemind/memind (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/openmemind/memind
- **Official Docs / Website**: https://docs.openmemind.com
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Java
- **License**: Apache-2.0
- **Engineering Health**: B+ (65/100 · Maintenance 12/35 · Adoption 16/25 · Releases 17/20 · License 20/20)
- **Latest Release**: 0.2.0 (2026-08-13) — https://github.com/openmemind/memind/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, API
- **Momentum**: 905 ★ total (+0 24h / +0 7d) · 97 forks
- **Topics**: `ai`, `ai-agent`, `ai-agents`, `ai-memory`, `context-engineering`, `java`, `memory`, `openclaw`, `spring-ai`
- **When to Use**: Best for: Teams building persistent coding agents, assistants, or workflow agents that need separate user and agent memory, task replay, and recall backed by source data, through Java embedding or a shared REST/MCP service. Skip if: You only need document-chunk retrieval, need an authenticated public admin console out of the box, or require an offline stack without separately setting up and validating a model endpoint.

## Overview
```text
### Architecture & Core Mechanics
Memind is a multi-module Java memory engine, not a standalone vector database. It retains raw sources, extracts structured memory items, and separates USER memory, such as preferences and profiles, from AGENT memory, such as directives and reusable task experience. Insight Trees distill memories from Leaf to Branch to Root; Memory Graphs represent relationships, and Memory Threads organize task history for replay. Retrieval can surface both source evidence and higher-level insights.

`memind-core` can run in process through `Memory.builder()` or Spring Boot starters, or behind `memind-server` through REST, HTTP MCP, and SDKs. Spring AI initializes provider beans; Memind config selects the default chat and embedding beans and can override chat routing for stages such as `ITEM_EXTRACTION` and `THREAD_ENRICHMENT`. JDBC plugins cover SQLite, MySQL, and PostgreSQL. The default Compose setup pairs SQLite with a fallback file-backed vector store.

### Key Capabilities & Differentiators
Memind ingests conversations, documents, images, audio, tool calls, and task histories. Retrieval can draw on raw sources, memory items, insights, graphs, and threads, using vector search, BM25, and temporal signals. Optional Deep Retrieval adds query expansion, sufficiency checking, and reranking. The default chat and embedding examples use `openai/gpt-4o-mini` and `openai/text-embedding-3-small` through OpenRouter; direct OpenAI or another compatible endpoint requires the appropriate base URL and provider-specific model names.

LongMemEval results are 84.20% overall versus 83.00% for EverMemOS, with 1,615.11 reported context tokens versus 2.8k. The clearest category gains over EverMemOS are multi-session recall (77.44% versus 73.68%) and temporal reasoning (79.45% versus 77.44%). The evaluation module also provides LoCoMo and PersonaMem profiles and can run ingestion, search, answering, and grading as separate stages.

### Trade-offs & Limitations
Choose Memind over a flat retrieval stack when an agent needs durable preferences, reusable task experience, or context assembled across sessions. That structure adds model-dependent work during ingestion, and optional Deep Retrieval adds query-time work. Budget separately for extraction throughput, retrieval latency, and provider usage; keeping raw inputs alongside derived memories also makes retention planning more important. The local SQLite and file-vector-store setup is a useful trial baseline, not evidence of production concurrency or storage limits.

The overall LongMemEval lead does not extend to every task: EverMemOS scores 97.14% versus Memind’s 93.81% on single-session user recall and 89.74% versus 88.46% on knowledge updates. Results use GPT-4o-mini as a judge and align baseline settings where possible, so test against your own workload before treating the ranking as a migration signal. The Compose admin UI has no built-in authentication and should not be exposed directly to public networks.

### Hardware & Deployment Guide
For a local trial, install Docker with Compose, copy `.env.example` to `.env`, and configure chat and embedding access via `OPENAI_API_KEY`, `OPENAI_BASE_URL`, `OPENAI_CHAT_MODEL`, and `OPENAI_EMBEDDING_MODEL`. Run `docker compose up -d --build`. The UI is on port `8080`; the server on `8366` exposes `/open/v1`, `/admin/v1`, and `/mcp`. `/open/v1/health` checks server availability, not model credentials, so verify actual ingestion and retrieval before relying on the service.

Compose persists SQLite and the fallback vector store in `memind-data` at `/app/data`; `docker compose down -v` deletes the volume. Running from source requires Java 21 and Maven, plus Node.js 20.19+ or 22+ and pnpm for the UI. The default model path uses an external API: self-hosting the memory service does not by itself make it offline or keep model inputs local. Release 0.2.0 added graph relationships, thread replay, and multimodal raw-data ingestion, and improved insight and temporal extraction.
```

## Key Capabilities
```text
- Memory scope: USER stores profiles and preferences; AGENT retains directives, tool experience, and resolved tasks.
- Memory structure: Insight Trees distill Leaf → Branch → Root summaries, while graphs preserve relationships and threads support replay.
- Retrieval: Vector, BM25, and temporal signals complement optional query expansion, sufficiency checks, and reranking.
- Model routing: `spring.ai.*` configures providers; `memind.ai.*` selects chat and embedding beans with optional per-stage chat overrides.
- Integration: REST, HTTP MCP at `/mcp`, SDKs, and embedded Java support both service and in-process deployments.
- Local persistence: Compose mounts `memind-data` at `/app/data` for SQLite and the fallback file-backed vector store.
```

## Quick Start / Clone
```bash
docker compose up -d --build
```
