Devin Memory
What it does
Anti-poisoning memory for agents: provenance, conflicts, quarantine gate.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Devin Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "devin-memory": { "command": "uvx", "args": [ "devin-memory-mcp" ], "env": { "DEVIN_MEMORY_DB": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Devin Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Devin Memory,或回答中出现 Devin Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Devin Memory
Devin Memory 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Devin Memory 的应用
- 需要 Devin Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Devin Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Devin Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Devin Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
B · 搜索与 AI 记忆 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Context7✓ ChatGPT
- AIHOT✓ ChatGPT
- Sui Knowledge Base (kapa.ai)✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Devin Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
注册并创建 Devin Memory 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user devin-memory --env DEVIN_MEMORY_DB=your-value -- uvx devin-memory-mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Devin Memory 在列表中并显示已连接
试一试
用 Devin Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Devin Memory,或回答中出现 Devin Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Devin Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
注册并创建 Devin Memory 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Devin Memory 的设置中,DEVIN_MEMORY_DB 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Devin Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Devin Memory,或回答中出现 Devin Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Devin Memory 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
注册并创建 Devin Memory 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Devin Memory 的设置中,DEVIN_MEMORY_DB 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Devin Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Devin Memory,或回答中出现 Devin Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user devin-memory --env DEVIN_MEMORY_DB=your-value -- uvx devin-memory-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"devin-memory": {
"command": "uvx",
"args": [
"devin-memory-mcp"
],
"env": {
"DEVIN_MEMORY_DB": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"devin-memory": {
"command": "uvx",
"args": [
"devin-memory-mcp"
],
"env": {
"DEVIN_MEMORY_DB": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"devin-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"devin-memory-mcp"
],
"env": {
"DEVIN_MEMORY_DB": "your-value"
}
}
}
}需要你填写的值
DEVIN_MEMORY_DBenvPath to memory.db (default: ./memory.db)
这些设置是根据作者在注册中心的条目生成的。如果 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月12日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 Icaro0310 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于昨天
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 6005 个服务器的 76%
- 发布到注册中心的时间比此分类中其他 6005 个服务器的 49% 更新
- 基础检查结果等于或优于此分类中其他 6005 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Devin Memory 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于昨天,最新版本(0.3.0)于38天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
Part of the [DEVIN ecosystem](https://github.com/Icaro0310/awesome-devin)
Track: Build · Nature: product
For: AI engineers, Developers, Data Scientists
Interface: CLI / Python library / MCP server / Service
Path: AI engineers · step 3/3 — after
devin-orchestrator
Where this fits
- Job: Build
- Product:
devin-brain - Packages:
devin-memory - Mode: mixed
- Foundation:
devin-internals-spec - Ecosystem:
awesome-devin· registry:devin-powerups
devin-memory
Renamed (Oct 2026): this repository moved from
Icaro0310/devin-memory
to
Icaro0310/devin-brain— the PyPI package, CLI commands and MCP server
name stay
devin-memory; stars, issues and history are preserved by the
GitHub redirect.
Unofficial community project. Not affiliated with, endorsed by, or
sponsored by Cognition AI. "Devin" is a trademark of Cognition AI.
[Linux](README.linux.md) · [Personal Windows](README.windows.md) · [Corporate Windows](README.corporate-windows.md)
Part of the awesome-devin ecosystem: the curated hub for the devin-* tools.
An anti-poisoning memory store for Devin: durable facts with provenance, versioning, and a quarantine gate — so agent memory can't be silently corrupted by a bad session or injected content.
The problem
Agent memory is a poisoning vector. Any tool that persists "facts" between sessions can be corrupted by a single bad session — an injected instruction or a pasted secret becomes a trusted belief in every future session, with no review step and no way to answer *"where did this come from?"*.
Prior art
- The Devin memory MCP (
retain/recall/reflectover.devin/memory/memories.jsonl) — append-only, no screening, no session provenance.devin-memoryexports to that exact line shape. - MemGPT / LangChain memory — persistence layers that optimize for recall, not for auditing or distrusting what was stored.
devin-memory adapts the memory-store idea; it adds the parts those tools don't have: a quarantine gate and provenance back to real session rows.
What makes it Devin-native
- Side-by-side: every entry can carry
source_session_id+source_rowid, auditable against Devin'ssessions.dbviadevin-internals' read-only store — the memory MCP cannot verify that a claimed source session (or a specific message row) ever existed. The quarantine gate also screens every write for secret and injection shapes. - No-Devin: without
sessions.dbthere is no session provenance to audit — the extra disappears. - One sentence: *it's a memory store that remembers where each memory came from — and quarantines suspicious ones until a human releases them.*
Install
Python ≥ 3.10 required; install with uv (recommended) or pipx.
uv tool install 'devin-memory[mcp]'
or with pipx (alternative):
pipx install 'devin-memory[mcp]'
For development:
pip install -e ".[dev]"
pytest
Usage
# Store a fact (screened on write; suspect content lands in quarantine)
devin-memory retain "CI is green on Windows + Linux" --tags ci,status devin-memory retain "..." --source-session --source-rowid devin-memory retain "..." --workspace /path/to/project # scope to a workspace devin-memory retain "..." --expires-at 2026-12-31T00:00:00Z # TTL: drops
out of recall/prime after this instant
Keyword-ranked recall — returns active, unexpired entries only;
scores are weighted by recency decay so fresh memories outrank stale ones
devin-memory recall "ci status" [--json] [--limit 5] [--tags a,b] devin-memory recall "ci status" --include-expired # also surface expired
Quarantine lane: list, mark an existing entry, or release one
devin-memory quarantine # list with reasons devin-memory quarantine [--reason manual:x] # mark entry as quarantined devin-memory quarantine --hold-supersede # mark + hold the supersession:
the superseded parent returns
to active until release/retract
devin-memory quarantine --release # human override -> active
(applies a held supersession)
devin-memory quarantine --digest [--json] # audit hash (read-only)
Contradictions: a conflicting retain is linked, not overwritten
devin-memory conflicts [--json] # (newer, older) pairs; resolve with
supersede / retract / quarantine
Mine a session for durable knowledge -> proposed entries (inactive
until reviewed); extraction is heuristic — see "Limitations"
devin-memory extract --sessions-db path/to/sessions.db devin-memory extract --latest --sessions-db path/to/sessions.db [--auto-approve] devin-memory list --status proposed # review queue devin-memory approve # proposed -> active
Context block for a UserPromptSubmit hook — active entries only,
filtered by workspace + machine profile, bounded by ~4 chars/token;
also appends a generated ecosystem-state block (see below)
devin-memory prime [--workspace PATH] [--max-tokens N] [--state-md PATH] [--max-chars N]
Versioning and housekeeping
devin-memory supersede "corrected fact" [--expires-at ]
default: inherit old expiry
devin-memory retract devin-memory list [--status active|proposed|quarantined|retracted] [--json] devin-memory compact [--json] # dedup report (dry-run) devin-memory compact --apply # retract copies + vacuum the file
Audit an entry's provenance: the write-time seal always runs; with
--sessions-db it also cross-checks source_session_id/source_rowid
devin-memory verify [--sessions-db path/to/sessions.db]
Export active memories to a memory-MCP-compatible JSONL
devin-memory export --out memories.jsonl
MCP server
devin-memory is also a real MCP server (stdio) — the same retain/recall pipeline with the quarantine gate on every write, callable from Devin, Claude Desktop, Cursor or any MCP client:
pipx install "devin-memory-mcp"
The devin-memory-mcp console script also ships inside the base devin-memory dist, so a bare uv tool install devin-memory (no extra) leaves a script that exits with error: The MCP server needs the 'mcp' extra — recovery steps live in the Troubleshooting section of each platform guide (Linux, Personal Windows, Corporate Windows).
Client config:
{
"mcpServers": { "devin-memory": { "command": "devin-memory-mcp", "args": ["--db", "/path/to/memory.db"] } } }
The same stdio server registers in other MCP hosts:
Zed — context_servers in settings.json:
{
"context_servers": { "devin-memory": { "command": { "path": "devin-memory-mcp", "args": ["--db", "/path/to/memory.db"] } } } }
JetBrains — Settings → Tools → AI Assistant → Model Context Protocol → Add:
{ "mcpServers": { "devin-memory": { "command": "devin-memory-mcp", "args": ["--db", "/path/to/memory.db"] } } }
Antigravity — ~/.gemini/config/mcp_config.json:
{ "mcpServers": { "devin-memory": { "command": "devin-memory-mcp", "args": ["--db", "/path/to/memory.db"] } } }
Tools: retain, recall, screen (dry-run the gate, no write), list, retract, supersede, quarantine, release, approve, conflicts, prime, verify, extract, compact, quarantine_digest. The release and approve promotion overrides are only registered when the server runs with DEVIN_MEMORY_MCP_PROMOTE=1 — otherwise promotion stays human-only via the CLI (devin-memory quarantine --release / devin-memory approve ). The same flag gates extract's auto_approve parameter and quarantine's hold_supersede (restoring a superseded parent is promotion-shaped), both forced off without the opt-in so an AI client cannot skip the review step. Every tool returns structured data or a {"error", "detail"} object — nothing raises through the transport. DEVIN_MEMORY_DB works as an alternative to --db.
VS Code: adapters/vscode/ ships an extension that registers this server with the editor's built-in MCP support (server definition provider, VS Code ≥1.102) — launch command, optional DEVIN_MEMORY_DB and workspace cwd are declared there; the promotion opt-in is pinned off so the editor-facing server keeps its non-promoting surface.
adapters/ is a self-contained Devin plugin root (adapters/.devin-plugin/plugin.json + adapters/skills/devin-brain/SKILL.md), installed with devin plugins install Icaro0310/devin-brain#adapters — it ships in the repo, not inside the wheel. The manifest launches the server through uvx --from 'devin-memory[mcp]' devin-memory-mcp; the promotion opt-in (DEVIN_MEMORY_MCP_PROMOTE) is never set, so the plugin-facing server keeps its non-promoting surface. To run against a checkout instead of PyPI, point a local manifest copy at uvx --from '.[mcp]' devin-memory-mcp.
Learn from sessions with devin-learning
This companion CLI extracts candidate lessons from a `sessi