Al Buddy Memory
What it does
Governed local memory for AI agents: facts are retired, not overwritten, and every call is audited.
- Connects 在你的电脑上运行
- Account or key Needs AL_BUDDY_MEMORY_AUDIT_KEY
- Category 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月13日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Al Buddy Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "al-buddy-memory": { "command": "npx", "args": [ "-y", "al-buddy-memory", "mcp" ], "env": { "AL_BUDDY_MEMORY_DB": "your-value", "AL_BUDDY_MEMORY_OWNER": "your-value", "AL_BUDDY_MEMORY_AUDIT": "your-value", "AL_BUDDY_MEMORY_AUDIT_KEY": "your-value", "AL_BUDDY_MEMORY_SEMANTIC": "your-value", "AL_BUDDY_MEMORY_MODEL_CACHE": "your-value", "AL_BUDDY_MEMORY_INDEX_LIMIT": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Al Buddy Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Al Buddy Memory,或回答中出现 Al Buddy Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Al Buddy Memory
Al Buddy Memory 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Al Buddy Memory 的应用
- 需要 Al Buddy Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Al Buddy Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 Al Buddy Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 Al Buddy Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
B · 搜索与 AI 记忆 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Context7✓ ChatGPT
- AIHOT✓ ChatGPT
- Sui Knowledge Base (kapa.ai)✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Al Buddy Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user al-buddy-memory --env AL_BUDDY_MEMORY_DB=your-value --env AL_BUDDY_MEMORY_OWNER=your-value --env AL_BUDDY_MEMORY_AUDIT=your-value --env AL_BUDDY_MEMORY_AUDIT_KEY=your-value --env AL_BUDDY_MEMORY_SEMANTIC=your-value --env AL_BUDDY_MEMORY_MODEL_CACHE=your-value --env AL_BUDDY_MEMORY_INDEX_LIMIT=your-value -- npx -y al-buddy-memory mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Al Buddy Memory 在列表中并显示已连接
试一试
用 Al Buddy Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Al Buddy Memory,或回答中出现 Al Buddy Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Al Buddy Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
填写你的密钥
在 Al Buddy Memory 的设置中,AL_BUDDY_MEMORY_DB, AL_BUDDY_MEMORY_OWNER, AL_BUDDY_MEMORY_AUDIT, AL_BUDDY_MEMORY_AUDIT_KEY, AL_BUDDY_MEMORY_SEMANTIC, AL_BUDDY_MEMORY_MODEL_CACHE, AL_BUDDY_MEMORY_INDEX_LIMIT 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Al Buddy Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Al Buddy Memory,或回答中出现 Al Buddy Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Al Buddy Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
填写你的密钥
在 Al Buddy Memory 的设置中,AL_BUDDY_MEMORY_DB, AL_BUDDY_MEMORY_OWNER, AL_BUDDY_MEMORY_AUDIT, AL_BUDDY_MEMORY_AUDIT_KEY, AL_BUDDY_MEMORY_SEMANTIC, AL_BUDDY_MEMORY_MODEL_CACHE, AL_BUDDY_MEMORY_INDEX_LIMIT 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Al Buddy Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Al Buddy Memory,或回答中出现 Al Buddy Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user al-buddy-memory --env AL_BUDDY_MEMORY_DB=your-value --env AL_BUDDY_MEMORY_OWNER=your-value --env AL_BUDDY_MEMORY_AUDIT=your-value --env AL_BUDDY_MEMORY_AUDIT_KEY=your-value --env AL_BUDDY_MEMORY_SEMANTIC=your-value --env AL_BUDDY_MEMORY_MODEL_CACHE=your-value --env AL_BUDDY_MEMORY_INDEX_LIMIT=your-value -- npx -y al-buddy-memory mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"al-buddy-memory": {
"command": "npx",
"args": [
"-y",
"al-buddy-memory",
"mcp"
],
"env": {
"AL_BUDDY_MEMORY_DB": "your-value",
"AL_BUDDY_MEMORY_OWNER": "your-value",
"AL_BUDDY_MEMORY_AUDIT": "your-value",
"AL_BUDDY_MEMORY_AUDIT_KEY": "your-value",
"AL_BUDDY_MEMORY_SEMANTIC": "your-value",
"AL_BUDDY_MEMORY_MODEL_CACHE": "your-value",
"AL_BUDDY_MEMORY_INDEX_LIMIT": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"al-buddy-memory": {
"command": "npx",
"args": [
"-y",
"al-buddy-memory",
"mcp"
],
"env": {
"AL_BUDDY_MEMORY_DB": "your-value",
"AL_BUDDY_MEMORY_OWNER": "your-value",
"AL_BUDDY_MEMORY_AUDIT": "your-value",
"AL_BUDDY_MEMORY_AUDIT_KEY": "your-value",
"AL_BUDDY_MEMORY_SEMANTIC": "your-value",
"AL_BUDDY_MEMORY_MODEL_CACHE": "your-value",
"AL_BUDDY_MEMORY_INDEX_LIMIT": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"al-buddy-memory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"al-buddy-memory",
"mcp"
],
"env": {
"AL_BUDDY_MEMORY_DB": "your-value",
"AL_BUDDY_MEMORY_OWNER": "your-value",
"AL_BUDDY_MEMORY_AUDIT": "your-value",
"AL_BUDDY_MEMORY_AUDIT_KEY": "your-value",
"AL_BUDDY_MEMORY_SEMANTIC": "your-value",
"AL_BUDDY_MEMORY_MODEL_CACHE": "your-value",
"AL_BUDDY_MEMORY_INDEX_LIMIT": "your-value"
}
}
}
}需要你填写的值
AL_BUDDY_MEMORY_DBenvThe SQLite memory file. A leading ~ is expanded.AL_BUDDY_MEMORY_OWNERenvWhose memory this is; the owner's policy applies to every call.AL_BUDDY_MEMORY_AUDITenvOptional JSONL file for the audit chain instead of the database's own table. One writing process per file.AL_BUDDY_MEMORY_AUDIT_KEY机密 envOptional HMAC key for the audit chain. Keep it away from the trail.AL_BUDDY_MEMORY_SEMANTICenvSet to off for keyword-only recall; the on-device embedding model is then never downloaded.AL_BUDDY_MEMORY_MODEL_CACHEenvWhere the on-device embedding model (about 90 MB, downloaded once) is kept.AL_BUDDY_MEMORY_INDEX_LIMITenvMost facts embedded in the background per start (0 skips it).
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月13日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 flytomoon 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于4天前
- ✓ 通过
有许可证
使用 Apache-2.0
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 6048 个服务器的 85%
- 发布到注册中心的时间比此分类中其他 6048 个服务器的 57% 更新
- 基础检查结果等于或优于此分类中其他 6048 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Al Buddy Memory 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:AL_BUDDY_MEMORY_AUDIT_KEY
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于4天前,最新版本(0.12.0)于28天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Ruflo
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
al-buddy-memory
Al Buddy — that's *Al*, a name, said like "pal". Not A.I.
A memory that's yours.
Portable, governed, model-agnostic memory for AI agents.
A fact is invalidated, never overwritten; on a governed handle, erasure runs through policy and is audited. Raw text is the source of truth and cannot be edited. Embeddings are a disposable, model-tagged cache. Every fact and every link exports to one documented format. The memory outlives whatever model, runtime or company produced it.
Why this exists
Every agent-memory product on the market answers one question well: *what does the agent recall?* None of them answers the four questions that decide whether you can trust and keep that memory:
| Question | This library | Letta | Mem0 | Zep |
|---|---|---|---|---|
| Where did this fact come from, and who asserted it? | Provenance on every node and edge (UserInput / AIInferred / GuardianAdded / SystemGenerated) | Memory-file git history | Metadata field | Graph episodes |
| When was it true, and what replaced it? | Two queryable axes: validAt answers what was true at Y; getNodeAsOf / snapshotAsOf answer what the store believed at X from full before/after versions. They combine in one call (snapshotAsOf(X, { validAt: Y })), a read the history cannot vouch for is marked, and erasure removes the history too | Git history of files, not a fact model | Change history per memory (history(): old value, new value, event, timestamps) — transaction history, not valid time | Temporal graph (its real strength): Graphiti edges carry valid_at / invalid_at alongside created_at / expired_at |
| Can I take it with me, losslessly, to another runtime? | One versioned JSON export with a published schema and conformance tests | .af (agent state, framework-shaped, archival memory not yet included) | Cloud export | Cloud-only since 2025 |
| Does it run with no vendor, no key, no server? | SQLite on disk, on-device embeddings | Self-host possible; cloud is the product | Self-host possible (Apache-2.0, local vector stores); needs an LLM for extraction; cloud is the product | Zep is cloud; Graphiti self-hosts (graph DB + LLM key required) |
Sources for the cells above, each checked against the project's own code or announcement on 2026-09-18: Mem0's per-memory history is a SQLite table with old_memory, new_memory, event, created_at, updated_at (mem0/memory/storage.py); Mem0 is Apache-2.0 and runs against local vector stores including Qdrant, Chroma, pgvector and FAISS (vector-store docs), with an LLM called to extract facts on the default add() path. Zep stopped maintaining Community Edition on 2025-04-02, in its own words: *"we've decided to stop maintaining and releasing Zep Community Edition."* Graphiti, the engine under Zep, is Apache-2.0 and self-hosts, and its stated requirements are a graph database (Neo4j, FalkorDB, Amazon Neptune, or the deprecated Kuzu) plus an LLM key — it "defaults to OpenAI for LLM inference and embedding."
The three local, keyless ones people will name, read against their own code on 2026-09-21. They answer the fourth question the way this library does — your machine, your files, no account — and they are the honest comparison, not the cloud products.
- [basic-memory](https://github.com/basicmachines-co/basic-memory) (AGPL-3.0; Markdown notes on disk are the truth, SQLite is a rebuildable index). It has valid time, and that is worth saying plainly: an observation can carry
@effective[2026-06-10,2026-07-27)in the note itself, parsed into a time index (models/knowledge.py) and rebuilt from the file, so the file stays the source of truth. What it does not carry on a local install is who asserted a fact:created_by/last_updated_byexist and hold a cloud user id, null for local and CLI use. Portability is the strongest kind and the least specified: the notes *are* the format, so nothing is trapped, and there is no versioned schema to import them into something else. Capture and full-text search need no key; semantic search is opt-in and does. - [The MCP memory server](https://github.com/modelcontextprotocol/servers/tree/main/src/memory) (the reference implementation most agents meet first; one JSONL file). Entities, relations and observations, and nothing else: no field for who said it, no timestamps at all, and
deleteObservationsfilters the old value out of the array, so what was true before is gone rather than closed. The file is its own export. Nothing calls a model; nothing leaves the machine. - [Memori](https://github.com/GibsonAI/Memori) (Apache-2.0; your own SQL database — SQLite, Postgres, MySQL, Oracle). A fact in
memori_entity_facthas content, an embedding, a count and a last-seen date; who asserted it is only recoverable by walking the foreign keys back to a conversation message, not a property of the fact, and there is no valid time —date_updatedreplaces. "Your data stays in your database" is the portability story, with no interchange format published. It is local in the sense that matters for your data, but capture is not keyless: extraction and embeddings call an LLM, and the default SDK path expects a Memori account as well.
Also worth naming: [OpenMemory MCP](https://github.com/mem0ai/openmemory/tree/main/openmemory-archive) (Mem0, launched May 2025) shipped the same distribution idea — one local memory store shared across MCP clients — and Mem0 archived it; its README now opens "This project has been archived." Its schema is the contrast this table is about: models.py gives a memory content, created_at, updated_at, archived_at, deleted_at and a state, with no field for who asserted the fact and no valid time, and content is rewritten in place on update. It does keep a state-transition history and an access log, and it does have a ZIP export — so it is not the absence of portability that separates the two, it is provenance, valid time and an immutable raw.
Recall benchmarks (LOCOMO, LongMemEval, DMR) measure what an agent remembers. None of them scores a memory system on provenance, invalidation or portability. This library is built for that axis, and the conformance scorer below is one attempt at measuring it. The table is our reading of each project's own code and public docs, dated above; if we have a cell wrong, a PR with a link fixes it.
We run LongMemEval anyway, so a recall number people recognise sits beside the conformance score rather than in place of it, along with a small benchmark of our own for the part recall benchmarks skip: when a fact changes, does recall return the value that is true now? See Benchmarks.
Start here
An empty memory gives an assistant nothing to stand on. docs/STARTER.md seeds yours in ten minutes: pin who the person is and how they want to be treated (including "never a yes-person"), choose the rules the store enforces, and let it derive the rest nightly.
Upgrading from an earlier version: CHANGELOG.md marks anything that changes what an existing caller gets back. 0.4.0 has breaking changes (immutable content, governed erasure, a new listNodes on the store interface, the MCP exports moved to al-buddy-memory/mcp), so read that entry before you upgrade.
What is in the box
MemoryStore: a storage-agnostic interface;SqliteMemoryStoreandInMemoryStoreship, with a conformance suite any backend can run against itself.ProjectMemory: one brain scoped by project or person, each in its own SQLite file.HybridRetriever: lexical + semantic recall with decay-aware confidence; embeddings on-device via transformers.js (no API key). Recall can be scoped (memory type, tags, minimum confidence, privacy and retention tiers), and the scope applies to the keyword and the vector side alike. Two opt-in aids for questions whose answer is spread across conversations, both computed at read time and never stored: areranker(LocalReranker, an on-device cross-encoder) that rereads the question with each candidate and reorders them, andexpand, which reads a question's time and counting cues (analyzeQuery: "in April", "the past two weeks", "how many", "A and B") and recalls for each.exportPortable/importPortable: the lossless interchange format, versioned, with a JSON Schema.PinnedBlocks: a size-capped tier of facts that belong in every prompt, editable by the agent itself, on top of the governed store.consolidate: a sleep-time pass that reads recent raw memory and writes new derived facts with provenance edges back to their sources; the raw is never rewritten and nothing is summarised away.verifyDerived: every conclusion stores the exact words it rests on (evidence), checked when it is written; this re-checks them any time, and retracts, never deletes, one whose evidence no longer holds.- Mental models: standing questions with answers kept current in the background, so reading one costs no model call (
defineMentalModel,refreshMentalModels,getMentalModel). Every answer quotes the facts it rests on, keeps its history ("what did we think in June"), and reads as stale the moment one of those facts stops being true or is erased. - Current state: "where does X stand now?" held as one live memory per subject (
recordState,currentStates,statesMentionedIn). A newer state closes the one it replaces and keeps it as history; a state that arrives late never overturns a newer one. Recall can also weigh recency (freshness), so the newest of several matching notes comes first. explainFact: why a fact is believed, in one call — provenance and origin, validity and what replaced it, a conclusion's evidence with each quote checked, and its history. Through a governed handle a source the reader may not see is named as withheld, never shown.- Conclusions go with their facts: a fact that stops being true retracts what was concluded from it (kept, marked); a fact that is erased takes everything built from it (SPEC §8a).
listConsolidations/undoConsolidation: review what each pass concluded, with the evidence for every fact, and take back one pass's conclusions. Undo retracts (validTo) and records who withdrew each fact and why; it never deletes, so the history still shows what was believed, when it was withdrawn, and the reason.buildSourceProvenance/readSourceProvenance,renderMemoryBlock,exportMemoryMarkdown, decay helpers.- Integrations:
al-buddy-memory/ai-sdk(Vercel AI SDK tools + middleware),al-buddy-memory/langchain(a LangGraph long-term memory store + LangChain tools),al-buddy-memory/mastra(an input processor + tools). The frameworks are optional peer dependencies; every write is governed and records which agent made it. Guides in docs/integrations.
Node ≥ 20. One runtime dependency (better-sqlite3, with prebuilt binaries for Node 22, 24, 25 and 26 on macOS, Linux and Windows; on Node 20 it compiles from source, which needs Python and a C++ toolchain). Postgres (pg), the MCP SDK and the on-device model (transformers.js) are optional: they load only if you use them, and npm install --omit=optional leaves them out.
Prior art: the Letta project published the idea of a pinned memory tier and a background pass over memory (memory b