📈 GH Trending Explorer 🎲 Surprise me

← all repos

MemPalace / mempalace

git clone https://github.com/MemPalace/mempalace.git v3.11.0 · 9d ago

The best-benchmarked open-source AI memory system. And it's free.

+17
stars, 24h · #2,192
+~100
stars, 7 days · #2,151
+~430
stars, 30 days · #1,908
60k
★ total · +0% this week
7.6k
forks · 834 open issues

Star history (as recorded here)

2026-10-20 · 59,664 ★ 2026-10-23 · 59,707 ★
LanguagePython
LicenseMIT
Created2026-04-05 (6mo ago)
Last push1d ago
Watchers319
OwnerOrganization

GitHub topics

Links

README excerpt
# MemPalace
Local-first AI memory. Verbatim storage, pluggable backend, 96.6% R@5 raw on LongMemEval — zero API calls.
[![][version-shield]][release-link]
[![][python-shield]][python-link]
[![][license-shield]][license-link]
[![][discord-shield]][discord-link]
> [!CAUTION]
> **Beware of impostor sites.** MemPalace has no other official websites. The **only** official sources are this **GitHub repository**, the **PyPI package**, and the docs at **mempalaceofficial.com**. Any other domain (including `.tech`, `.net`, or other `.com` variants) is an impostor and may distribute malware. Details and timeline: docs/HISTORY.md.
> [!IMPORTANT]
> **Claude Code sessions expire in 30 days without auto-save hooks wired.** Read this →
>
> Need the shortest recovery/setup path? Use the Claude Code retention setup checklist.
---
## What it is
MemPalace stores your conversation history as verbatim text and retrieves
it with semantic search. It does not summarize, extract, or paraphrase.
The index is structured — people and projects become *wings*, topics
become *rooms*, and original content lives in *drawers* — so searches
can be scoped rather than run against a flat corpus.
The retrieval layer is pluggable. The current default is ChromaDB; the
interface is defined in `mempalace/backends/base.py`
and alternative backends can be dropped in without touching the rest of
the system.
Nothing leaves your machine unless you opt in.
Architecture, concepts, and mining flows:
mempalaceofficial.com/concepts/the-palace.
---
## Install
### Agent-guided setup
Install the MemPalace skills first, then ask your coding agent to set up
MemPalace. The setup skill detects your system, installs the Python package,
configures MCP, and asks whether you want a private local palace, a shared-brain
hub, or a client connected to an existing hub:
 [code] 
The repository exposes three skills: `mempalace` for guided installation and
operations, `mempalace-recall` for search-before-answer recall, and
`mempalace-task` for logstream delegation. Installing a skill does not by
itself install the MemPalace CLI or MCP server; the setup skill guides the
agent through those system changes and verifies the live connection.
During guided setup the agent can offer weekly stable-release checks. They are
disabled by default, contact only PyPI when enabled, and never install updates
automatically. Cached availability appears in scoped `mempalace_status` fields
for the serving runtime and, when a local proxy is present, its client runtime,
allowing the agent to explain the release and request authorization before showing an exact
upgrade plan. Setup records whether the runtime came from `uv tool`, `pipx`, or
`pip` so the plan never proposes an upgrade command for the wrong installation.
### Direct CLI setup
MemPalace ships a CLI, so install it in an isolated environment to avoid
PEP 668 errors on Debian/Ubuntu/Homebrew Pythons and to keep mempalace's
deps (`chromadb`, `numpy`, `grpcio`, …) from conflicting wi