heropen — AI Agent Memory
What it does
Persistent memory for AI agents: local-first MCP server, zero-config. No cloud, no API keys.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月13日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "heropen": { "command": "uvx", "args": [ "heropen", "mcp" ] } } }退出 Claude 再重新打开
试一试
用 heropen — AI Agent Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 heropen — AI Agent Memory,或回答中出现 heropen — AI Agent Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 heropen — AI Agent Memory
heropen — AI Agent Memory 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 heropen — AI Agent Memory 的应用
- 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Python (uv)(只需一次)
- 需要先在电脑上安装 Python (uv)(只需一次)
- 需要先在电脑上安装 Python (uv)(只需一次)
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user heropen -- uvx heropen mcp在 Claude Code 中输入 /mcp
应能看到 heropen — AI Agent Memory 在列表中并显示已连接
试一试
用 heropen — AI Agent Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 heropen — AI Agent Memory,或回答中出现 heropen — AI Agent Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 heropen — AI Agent Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 heropen — AI Agent Memory,或回答中出现 heropen — AI Agent Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 heropen — AI Agent Memory 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 heropen — AI Agent Memory,或回答中出现 heropen — AI Agent Memory 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user heropen -- uvx heropen mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"heropen": {
"command": "uvx",
"args": [
"heropen",
"mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"heropen": {
"command": "uvx",
"args": [
"heropen",
"mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"heropen": {
"type": "stdio",
"command": "uvx",
"args": [
"heropen",
"mcp"
]
}
}
}这些设置是根据作者在注册中心的条目生成的。如果 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月15日
- ✓ 通过
作者与仓库一致
注册名称已通过域名 heropen.net 验证(注册中心会核实域名所有权)
- ✓ 通过
仍在维护
代码最后更新于18天前
- ✓ 通过
有许可证
使用 Apache-2.0
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 6131 个服务器的 76%
- 发布到注册中心的时间比此分类中其他 6131 个服务器的 69% 更新
- 基础检查结果等于或优于此分类中其他 6131 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
heropen — AI Agent Memory 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于18天前,最新版本(2.0.8)于18天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, OpenSEO
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
OpenSEO
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
heropen
English · 简体中文
Built to solve forgetting. The more you use it, the better it knows you.
A local-first memory system for AI agents. Memories live on your own machine — never uploaded, never synced, never taken away. heropen organizes and prunes them automatically, so retrieval gets sharper and more personal over time.
⭐ Did this help you? Give us a star → ★ Star in the top right, so more agent users find it.
In 30 seconds
- One-line install:
pip install heropen. No Docker, no Postgres, no API key. Common clients get their MCP config written automatically; Hermes and similar require wiring upheropen-mcpby hand. - Your agent gains long-term memory: it remembers people, events, and context across sessions — no more starting from zero every conversation.
- Data stays 100% on your machine: no telemetry, no cloud sync, no bills. Memories live on your disk, and only you can take them away.
Install
pip install heropen # Core: MCP + full-text search, pure-Python deps, any architecture (incl. ARM64)
pip install 'heropen[embedding]' # Optional: local embeddings (pulls in onnxruntime / fastembed) pip install 'heropen[tray]' # Optional: Windows system tray badge (always-visible presence + workbench)
ARM64 notes
| Platform | Recommendation |
|---|---|
| Apple Silicon (macOS arm64) | Usually pip install 'heropen[embedding]' just works |
| Windows ARM64 | Same; make sure Python is an ARM64 build |
| Linux aarch64 | Install core first, then try embedding. If no onnxruntime wheel matches, point EMBEDDING_ENDPOINT at a self-hosted endpoint or use FTS only |
Without local embeddings, search / recall degrade gracefully to full-text search — memory storage and retrieval keep working.
Restart your agent — done. On first launch heropen probes the known config paths of common clients (Claude Code, Cursor, Windsurf, WorkBuddy, etc.) and registers the memory tools. Custom `mcp_servers` setups like Hermes are not written automatically; follow "Connect your agent" below to configure them by hand.
Quick start in 30 seconds
heropen add "Project uses FastAPI + SQLAlchemy, tests run on pytest" # store a memory
heropen search "project tech stack" # search memories heropen status # check status heropen diagnose # diagnose problems
How to make it actually stick: read the official usage guide (single source of truth) — docs/usage-ssot-zh.md *(Chinese)*. The short version: only facts go into heropen; the hot layer holds iron rules, high-frequency items, and pointers; start every session with prime, then search; free-form tags are the primary mechanism.
The first add does not download the ~95 MB embedding model — writes go straight to full-text search. When you want local semantic retrieval, run it explicitly:
pip install 'heropen[embedding]'
heropen embed # download the model and generate embeddings for existing entries
Connect your agent (MCP)
Use the dedicated heropen-mcp entry point (stdio). heropen mcp also works, but prefer the form below in MCP client config:
{
"mcpServers": { "heropen": { "command": "heropen-mcp", "args": [] } } }
If heropen-mcp is not on your PATH (e.g. uv tool install into an isolated environment), replace command with the absolute path inside that environment.
For Claude Code / Cursor / Windsurf / WorkBuddy: heropen auto-setup attempts to write the known config paths. For Hermes and other custom config formats, add the block above to your own mcp_servers and restart the agent.
Restart your agent and it has memory. Store a bug fix once, and it is remembered permanently across sessions.
Tray badge (Windows system tray, heropen[tray])
With heropen[tray] installed, run heropen tray to pin a native heropen icon in the taskbar tray (same area as WeChat / Bluetooth / IME) — it covers no window content. It solves the problem of "a memory system with no presence, easily mistaken for junkware and uninstalled."
pip install 'heropen[tray]' # Windows only
heropen tray # start the badge (auto-starts on boot by default)
Right-click menu:
| Item | What it does |
|---|---|
| Status line | Running · Free / Plus · N agents · N memories |
| Version vX.Y.Z | Opens the changelog |
| Storage mode (per agent) | Each agent independently picks bulk store / per-turn store / auto-detect |
| Open workbench | Left-clicking the icon does the same — opens the live-data workbench page |
| Open homepage | Opens heropen.net |
| Check for updates | pip install -U heropen |
| Start on boot | Toggle (on by default; writes to the registry Run key) |
| Restart / Quit | Restart to load the latest code / exit completely |
Hovering the icon shows four pieces of self-explanatory status: identity (heropen agent memory system), storage mode, entries stored, and days in use.
Real data, no fabrication: the badge and workbench read the actual
entriestable from your local~/.heropen/*.db. Nothing is hardcoded. When no database is readable it shows "no data / 0" and never invents numbers (--mockis for demos only). It reflects only the local database — memories from another machine (say, another agent on a different computer) do not appear here, which is expected (each machine's badge is independent).
Storage modes (wired into the core): the three modes control how often and at what granularity memories are committed to heropen — bulk store batches them, per-turn store writes each turn, and auto-detect picks intelligently based on trigger words such as "remember / decided / path / preference". Set per agent. The mode only governs commits — not retrieval, not what the tray displays; what gets written is still the local fact store. See
docs/2.0-开场签名与存储内核.md*(Chinese)*.
Interface languages (since 2.0.4): the tray menu's "Language" item switches between 简体中文 / English / 日本語 / 한국어 / Español / Français / Deutsch / Português / Русский. Menus, hover tooltips, notifications, and the workbench page switch instantly, and the choice persists locally (
~/.heropen/_tray_state.json).
No delete feature: the badge, the workbench, and the CLI expose no deletion entry point whatsoever.
Opening signature
Before every conversation starts — before the agent actually begins working — heropen drops a single status line into context. You don't type a command, and you don't open a panel:
heropen ready · 187 local memories · ~3 hours since last conversation · agent=xiaokai
It is attached to the beginning of the MCP prime_conversation return value (the CLI bootstrap prints it too).
Presence in 2.0 = opening signature + tray: the signature covers "you see it while chatting", the tray covers "it's in your taskbar even when you're not."
Why heropen
| heropen (free) | Other options | |
|---|---|---|
| Storage | Unlimited | Usually capped |
| Retrieval | Unlimited | Metered per call |
| Network required | No | Yes |
| Data ownership | Your machine | Their servers |
| Install | One pip install | Server + configuration |
Free = the complete core feature set, with nothing crippled.
The position heropen holds
Local-first is not unique to heropen — a dozen similar projects run SQLite + MCP. What heropen genuinely holds, and others have not yet taken, is three things:
- Private-domain / shared-domain layering across multiple agents. The free tier gives you 8 fully private agents (high-frequency always-on agents like Hermes and WorkBuddy each get an isolated database), plus an optional shared domain (
_shared) for exchanging knowledge between agents on demand. Free and Plus differ in capability, not count (Plus adds real features such as skill collection and sharing). Most competitors offer only a single flat namespace. - Time awareness before a conversation (since v1.8.7). At the start of each session the agent automatically receives local time, the time-of-day word, the interval since the last conversation, and whether a sleep cycle was crossed — a temporal baseline on the interaction side that nobody else provides.
- A zero-dependency install surface. One line of
pip install heropen, with no Docker, no Postgres, and no Ollama.
Privacy commitment
Your data stays on your machine. No telemetry. No heartbeat ping. All memories live in a local SQLite database. Vector retrieval uses a local embedding model by default (fastembed; pip install heropen[embedding]) — fully offline and free. You can also point the EMBEDDING_ENDPOINT and EMBEDDING_API_KEY environment variables at your own self-hosted embedding endpoint (OpenAI-compatible /v1/embeddings), so you never pay a third-party cloud.
If neither local embeddings nor a self-hosted endpoint is configured, search falls back to fast full-text (FTS) matching — still fully offline and free. pip install heropen works with zero configuration; embeddings only *improve* retrieval quality and never block basic use.
Local capabilities stay local (currently): in the current version, local memory read/write, retrieval, and panel capabilities will not be migrated into services that require network access; capabilities already available in the free tier will not be reduced in later versions.
Why local
When memory is turned into a cloud primitive, your conversation history and working context end up on someone else's servers. heropen chooses the opposite: memories are written to ~/.heropen/, one SQLite file per agent, and the data never leaves your machine.
What the cloud gives you is convenience; what local gives you is that only you can take it away.
The memories are yours
Memories live in your local ~/.heropen/ directory, one SQLite file per agent. At any time you can:
- Back up / export:
heropen exportdumps all memories to a local JSON file (heropen importreads it back in); - No delete feature: heropen provides no delete / clear entry point — memories are locally under your control and exportable, but there is deliberately no "delete" button anywhere, to prevent unrecoverable mistakes (there is no cloud copy; deleted means gone). If you really need to clean up, simply remove the corresponding SQLite file under
~/.heropen/— no need to go through us, and no network required.
A friendlier Markdown + YAML export (human-readable, lossless round-trip, re-importable) is on the roadmap.
How to choose
When choosing a memory solution, don't look only at recall — look at five things:
- Deployment cost: does one
pip installget it running, or do you need Docker / Postgres / Ollama / an API key? - Dependencies and cost: does the write path burn LLM tokens? Are there zero external dependencies?
- Portability: can memories be exported as readable files, carried elsewhere, and re-imported?
- Secure defaults: does the listening port bind to loopback or
0.0.0.0by default? Is it telemetry-free? - Engineering tax: are write discipline and invalidation mechanisms clear? Is it compatible with prompt caching? How are cross-model capacity limits handled?
Run heropen doctor and it self-checks all five, giving each a pass / notice / warning verdict.
Versions and positioning
| Version | Positioning | Who it's for |
|---|