claude-mem
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
mindscale-noah/mindmemos is a plugin of skills that gives agents persistent long-term memory, with semantic retrieval, reranking and skill distillation across agents. Use it when you want memories to survive across sessions and agents, driven from the CLI in Python, Node or Bash.
Claude Code
$ npx -y skills add mindscale-noah/MindMemOS --agent claude-code
Codex
$ npx skills add mindscale-noah/MindMemOS -a codex
Cursor
$ npx skills add mindscale-noah/MindMemOS -a cursor
Gemini CLI
$ npx skills add mindscale-noah/MindMemOS -a gemini-cli
GitHub Copilot
$ npx skills add mindscale-noah/MindMemOS -a github-copilot
OpenCode
$ npx skills add mindscale-noah/MindMemOS -a opencode
Windsurf
$ npx skills add mindscale-noah/MindMemOS -a windsurf



简体中文 │ Website │ API Docs │ PYPI SDK │ Deployment Guide
Accurately remember user and task context and reuse it across agents; evolve memory through ongoing interactions, automatically distill Skills, and connect with file-based knowledge systems so experience truly becomes capability.
⭐ Star us on GitHub to automatically upgrade to a Pro quota membership.
add/search under algo_config.multimodal.mode (off/basic/enhanced, per-project overridable) — store originals in S3/MinIO (the only image backend), index them with a multimodal embedding model (mm_embed_model_router, SigLIP2-compatible), and in enhanced extract visual facts with a VLM and retrieve through a multimodal agent. Image hits carry metadata.image_url — a permanent mirror URL when configured, else a short-lived presigned URL on S3/MinIO, else an equally short-lived signed proxy URL that needs no API key — plus metadata.blob_id for re-download. Disabled by default (off), with byte-identical text-only behavior.MindMemOS offers two deployment modes (official cloud service, local self-hosting) and three access methods (HTTP API, Python SDK / CLI, agent plugin). Any combination works — server and client speak the same protocol:
| Access Method | Use Case | Cloud base_url | Local base_url |
|---|---|---|---|
| HTTP API | Call directly from business apps | https://mindmemos.cn | http://127.0.0.1:8000 |
| Python SDK / CLI | Integrate into business apps | https://mindmemos.cn | http://127.0.0.1:8000 |
| OpenClaw Plugin | Agent auto-recalls / writes memory | https://mindmemos.cn | http://127.0.0.1:8000 |
| DeepSeek Harness Plugin | Agent auto-recalls / writes memory (dsh) | https://mindmemos.cn | http://127.0.0.1:8000 |
To try it without deploying, use the official cloud service (request an API key on the website); for on-premises or offline use, start with Local Deployment below.
MindMemOS uses uv to manage dependencies and run local commands. For detailed configuration instructions, see docs/deploy/instruction.md.
cp .env.example .env
cp config/mindmemos/dev.example.yaml config/mindmemos/dev.yaml
Before startup, configure at least the following three model routers in config/mindmemos/dev.yaml:
chat_model_router: supports memory extraction, Skill evolution, and other generation tasks.embed_model_router: generates semantic embeddings; make sure its dimensions match the Qdrant dimension configuration.rerank_model_router: optional; reranks memory retrieval results.The schema memory-extraction flow is versioned: algo_config.add.schema.version defaults to v2 (rule-based graph fusion) and can be pinned to v1 (develop-compatible flow) per project. Storage is compatible in both directions; see the deployment guide for binding and effective timing.
Configure an API key and its bound project_id in config/mindmemos/api_keys.yaml.
Start the local service:
make dev
make dev starts the full Docker dependency stack before starting FastAPI.
To start only core dependencies:
make dev-core # Qdrant + Neo4j + Kafka
make db-observability # Qdrant + Neo4j + Kafka + ClickHouse + OTel + Grafana + MinIO
make dev / make db also start MinIO (the S3-compatible store for multimodal images) with its bucket bootstrap; pass MINIO=0 to skip it for a text-only layout — images always need MinIO, so that layout also sets algo_config.multimodal.mode: "off". dev-down / db-clean with MINIO=0 leave the MinIO container and its volume untouched (see the deploy guide).
The default local service port is 8000:
FastAPI: http://127.0.0.1:8000
Stop the local service:
make dev-down
Cloud and local self-hosting use the same access protocol. Local keys come from config/mindmemos/api_keys.yaml; cloud keys are obtained from the website.
HTTP is the base access method — the SDK and plugins also talk HTTP underneath. Once the service is up, first use curl to verify the endpoints work, then wire up your business logic. Define the address and key before calling (pick local or cloud):
export BASE_URL=http://127.0.0.1:8000 # Local self-host; change to https://mindmemos.cn for cloud
export API_KEY=dev-api-key-001 # Local example key; use a website-issued key for cloud
Add a memory:
curl -sS -X POST "$BASE_URL/v1/memory/add" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "u_123",
"messages": [{"role": "user", "content": "I like iced Americanos."}]
}'
Search memories:
curl -sS -X POST "$BASE_URL/v1/memory/search" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "What kind of coffee does the user like?", "top_k": 3}'
Multimodal projects accept images on both calls (the server-side mode requirement is in the
config docs); image hits answer with metadata.image_url and
metadata.blob_id:
curl -sS -X POST "$BASE_URL/v1/memory/search" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Describe the user desk setup", "top_k": 3, "multimodal": true}'
A code of ok with readable memory content means the access works. curl is just a smoke-test helper; the shown format is for bash. Other environments / languages and the remaining endpoints (get / list / delete / update / feedback / dreaming / skills, etc.) are all covered in the API docs.
Install the Python SDK:
pip install mindmemos-sdk
Run the authentication command and configure the service address, API key, and default user when prompted:
mindmemos auth
| Setting | Local Service | Cloud Service |
|---|---|---|
base_url | http://127.0.0.1:8000 | https://mindmemos.cn |
api_key | An enabled API key from config/mindmemos/api_keys.yaml | An API key obtained from the MindMemOS website |
user_id | A stable identifier for the current end user, such as u_123 | A stable identifier for the current end user, such as u_123 |
The configuration is saved to ~/.mindmemos/settings.json. Check the current configuration with:
mindmemos config show
The local service automatically determines the project_id and memory algorithm from the API key, so SDK calls do not need to pass project_id. The user_id distinguishes users within the same project and can be overridden in an individual add or search call.
If you prefer not to use the local configuration file, pass connection parameters explicitly when creating the client:
from mindmemos_sdk import MindMemOSClient
with MindMemOSClient(
base_url="http://127.0.0.1:8000",
api_key="<api_key>",
user_id="u_123",
) as client:
...
Explicit parameters take precedence over values in ~/.mindmemos/settings.json.
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
Gives Claude Code long-term memory through Hindsight. It recalls relevant past context before answering, retains durable facts as the agent learns them, and reflects over stored memory.
Local-first memory for Claude Code. It stores conversations verbatim in a private palace you can search before answering about past work, people, projects, or decisions, with optional shared-brain hub setup.
Gives Claude Code a private memory that stays on your machine. It stores past conversations word for word, so you can ask what was decided, what happened before, or who was involved and get the original context back. It can also hand tasks to other agents.
Install it with the command on its page. It includes mindmemos-cli. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it