Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Local-first memory engine for AI-agent teams: team/project ACL, recall, and federated sync.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
AGENT_MEMORY_AGENT_ID, AGENT_MEMORY_HOME你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"agent-memory-os": {
"command": "uvx",
"args": [
"agent-memory-os"
],
"env": {
"AGENT_MEMORY_AGENT_ID": "your-value",
"AGENT_MEMORY_HOME": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add agent-memory-os --env AGENT_MEMORY_AGENT_ID=your-value --env AGENT_MEMORY_HOME=your-value -- uvx agent-memory-os运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"agent-memory-os": {
"command": "uvx",
"args": [
"agent-memory-os"
],
"env": {
"AGENT_MEMORY_AGENT_ID": "your-value",
"AGENT_MEMORY_HOME": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"agent-memory-os": {
"type": "stdio",
"command": "uvx",
"args": [
"agent-memory-os"
],
"env": {
"AGENT_MEMORY_AGENT_ID": "your-value",
"AGENT_MEMORY_HOME": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
AGENT_MEMORY_AGENT_ID envAGENT_MEMORY_HOME env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 yamantaka520 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.10.1)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
English · 繁體中文
A local-first memory system for AI-agent teams — not just giving one agent a memory, but a shared memory fabric for a *fleet* of agents working together: private, team, and project-scoped memories behind a hard ACL, associative recall, and federated sync that keeps a mesh of nodes (and their org structure) in agreement. One SQLite file, zero required dependencies, Apache-2.0.
Why · Compare · Install · Quickstart · Features · Federation · Web UI · User Guide
The built-in web console: token-usage by agent/team/project, memory browse, and the ACL-safe association graph.
Real work happens in teams of agents — a project might mix Claude Code, Codex, OpenClaw, and several Hermes profiles, across multiple teams and projects, on one machine or many. They need to share the *right* knowledge with the *right* teammates and keep private what should stay private:
team: memory; a project (a subset of the team) sees project: memory; nothing leaks across the boundary. Membership is first-class and manageable, and drives the ACL.project: means the same thing everywhere.pip install and go.team: memory reaches the whole team, project: memory only that project — a hard ACL, managed in the console/CLI/API. Removing a member re-scopes recall instantly; deleting a scope revokes its memory.shared/full/team:/project:) is an enforced authorization scope: a peer can only assert membership within its own scope and can only *shrink* a memory's visibility, never widen it — no cross-scope escalation from a bundle.context_pack_report() explains every include/exclude decision).CONFLICT markers), and reserved budget for core memories.memory_links graph lets related memories surface even when they share no query terms; traversal is ACL-safe (invisible nodes are untraversable).record_recall, or auto_reinforce=True on context packs); unhelpful recalls weaken links and confidence (helpful=False).procedure, a companion on preference); profiles persist in the database and re-weight ranking only, never bypassing ACL.consolidate() pass that merges duplicates and synthesizes strongly co-recalled clusters into concept memories.Most agent-memory systems optimize for LLM-driven extraction at hosted scale. AgentMemoryOS optimizes for a different point: local-first, team-scoped, and federated — memory you run yourself, shared across a fleet under a hard ACL. This is a *positioning* comparison (architecture, not a benchmark); verify each row against the projects' current docs.
| AgentMemoryOS | Mem0 | Zep / Graphiti | |
|---|---|---|---|
| Run it | One SQLite file, pip install | Self-host (configure LLM + vector DB) or hosted | Zep Cloud, or self-host Graphiti on Neo4j/FalkorDB |
| Core needs an LLM | No (FTS5 + optional local vectors) | Yes (LLM extraction, e.g. gpt-5-mini) | Yes (LLM builds the temporal graph) |
| External services | None required | LLM API + vector store | Graph DB + LLM + embeddings (3+ systems to self-host) |
| Scope / ACL model | Private / agent / team / project / global — hard gate before ranking | Per user / agent / session id | Per user / session graph |
| Cross-node federation | Yes — memories *and* org structure converge; revocation propagates | Centralized store | Centralized (Cloud or your graph DB) |
| Built-in MCP server | Yes | Via SDK | Via SDK |
| License / self-host | Apache-2.0, fully OSS | OSS core; graph & advanced tiers paid | Community Edition deprecated; self-host = raw Graphiti |
Mem0 and Zep are strong at LLM-based extraction and managed-scale retrieval — things AgentMemoryOS deliberately doesn't do. Reach for AgentMemoryOS when you want a dependency-light memory you own, shared correctly across a *team* of agents, that keeps working offline and syncs on your terms.
pip install 'agent-memory-os[full]' # recommended: everything (Web UI, MCP, turbovec)
Or pick pieces: agent-memory-os (core, zero dependencies), [api] (Web UI), [mcp] (MCP server), [semantic] (turbovec vector recall).
Docker: the prebuilt multi-arch image is the complete AgentMemoryOS (web console + MCP server + CLI); the first argument picks the mode:
docker run -p 8000:8000 -v amos-data:/data yamantaka520/agent-memory-os # web console (default)
docker run -i --rm yamantaka520/agent-memory-os mcp # stdio MCP server docker run --rm -v amos-data:/data yamantaka520/agent-memory-os check # any CLI command
Or docker compose up -d. Console at http://localhost:8000, memories persist in a volume. See the Docker guide (Docker Hub image + a two-node sync mesh).
Requires Python 3.11+ with SQLite FTS5 (included in standard CPython builds).
After installing, run two commands:
agent-memory doctor # verifies FTS5, turbovec, and the other extras
agent-memory token create # protects the Web UI API with a bearer token
The token is stored at /web_token (mode 600); agent-memory-web picks it up automatically and the console prompts for it on first use. Manage it later with agent-memory token show|rotate|disable. Two narrower tiers exist: --readonly (GET-only) and --sync (federation routes only — hand this to a peer instead of the admin token).
Prefer a runnable script?
examples/team_memory.pyshows three agents sharing one store under a hard ACL in ~40 lines —python examples/team_memory.py.
from agent_memory_os import MemoryClient, RecallProfile
client = MemoryClient(home="~/.agent-memory")
client.add("User prefers dark mode.", owner="mizuki", type="preference", visibility=[]) # private to owner client.add("Deploy target is port 8000.", owner="neo", type="environment", visibility=["global"]) # visible to every agent
hits = client.search("deploy port", requester_agent_id="neo")
pack = client.context_pack("deploy port", requester_agent_id="neo", max_tokens=1200, auto_reinforce=True)
a = client.add("Staging deploy failed with database lock.", visibility=["global"]) b = client.add("Always snapshot before schema changes.", visibility=["global"]) client.link(a.id, b.id, relation="caused_by", weight=0.8)
client.save_profile(RecallProfile(agent_id="neo", type_weights={"procedure": 1.5, "note": 0.7}))
client.consolidate()
query
-> candidate providers (FTS5 | vector sidecar | resonance graph | fallback) -> merge/dedupe by stable memory_id -> rejoin authoritative rows from SQLite -> ACL hard gate -> expires_at hard gate -> scoring (relevance x importance x confidence x freshness x reinforcement) -> per-agent profile re-weighting (soft) -> truth arbitration + context budget allocation
Design invariants:
memories table is the single source of truth; FTS/vector indexes are disposable and rebuildable (rebuild_indexes()).memory_links) are authoritative data, survive index rebuilds, decay when unused, and never let an invisible memory bridge two visible ones.See SPEC.md for the full contract.
AgentMemoryOS uses two storage layers with strictly different authority:
只显示了开头部分;其余内容请在仓库中阅读