Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Free-to-start portable memory for AI agents: encrypted, shareable, provably erased. Join SAIHM.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
SAIHM_ENDPOINT_URL, SAIHM_SELF_JOIN, SAIHM_MASTER_SECRET_FILE, SAIHM_IDENTITY, SAIHM_IDENTITY_PASSPHRASE, SAIHM_TIER, SAIHM_PAYMENT_METHOD, SAIHM_EPHEMERAL_HOME, SAIHM_HOME标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"saihm-pro": {
"command": "npx",
"args": [
"-y",
"@saihm/mcp-server-pro"
],
"env": {
"SAIHM_ENDPOINT_URL": "your-value",
"SAIHM_SELF_JOIN": "your-value",
"SAIHM_MASTER_SECRET_FILE": "your-value",
"SAIHM_IDENTITY": "your-value",
"SAIHM_IDENTITY_PASSPHRASE": "your-value",
"SAIHM_TIER": "your-value",
"SAIHM_PAYMENT_METHOD": "your-value",
"SAIHM_EPHEMERAL_HOME": "your-value",
"SAIHM_HOME": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add saihm-pro --env SAIHM_ENDPOINT_URL=your-value --env SAIHM_SELF_JOIN=your-value --env SAIHM_MASTER_SECRET_FILE=your-value --env SAIHM_IDENTITY=your-value --env SAIHM_IDENTITY_PASSPHRASE=your-value --env SAIHM_TIER=your-value --env SAIHM_PAYMENT_METHOD=your-value --env SAIHM_EPHEMERAL_HOME=your-value --env SAIHM_HOME=your-value -- npx -y @saihm/mcp-server-pro运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"saihm-pro": {
"command": "npx",
"args": [
"-y",
"@saihm/mcp-server-pro"
],
"env": {
"SAIHM_ENDPOINT_URL": "your-value",
"SAIHM_SELF_JOIN": "your-value",
"SAIHM_MASTER_SECRET_FILE": "your-value",
"SAIHM_IDENTITY": "your-value",
"SAIHM_IDENTITY_PASSPHRASE": "your-value",
"SAIHM_TIER": "your-value",
"SAIHM_PAYMENT_METHOD": "your-value",
"SAIHM_EPHEMERAL_HOME": "your-value",
"SAIHM_HOME": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"saihm-pro": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@saihm/mcp-server-pro"
],
"env": {
"SAIHM_ENDPOINT_URL": "your-value",
"SAIHM_SELF_JOIN": "your-value",
"SAIHM_MASTER_SECRET_FILE": "your-value",
"SAIHM_IDENTITY": "your-value",
"SAIHM_IDENTITY_PASSPHRASE": "your-value",
"SAIHM_TIER": "your-value",
"SAIHM_PAYMENT_METHOD": "your-value",
"SAIHM_EPHEMERAL_HOME": "your-value",
"SAIHM_HOME": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
SAIHM_ENDPOINT_URL envSAIHM_SELF_JOIN envSAIHM_TIER envSAIHM_PAYMENT_METHOD envSAIHM_EPHEMERAL_HOME envSAIHM_HOME env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 SAIHM-Admin 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:SAIHM_MASTER_SECRET_FILE, SAIHM_IDENTITY, SAIHM_IDENTITY_PASSPHRASE
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.14.3)于10天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
Portable memory for AI agents. Your assistant remembers what matters — across sessions, across models, across vendors. Share a memory with someone else's agent, take it back, or erase it for good.
▶ SAIHM Short Overview 6 minutes ▶ SAIHM Detailed Overview 30 minutes
Enjoyed them? Like the videos, subscribe to the SAIHM channel, and turn on notifications with the bell 🔔 to hear about new videos and updates.
Prefer to read? The SAIHM manual (PDF) is a decision-maker's guide to SAIHM and SHM.
AI assistants forget everything when the session ends. SAIHM gives yours a memory that doesn't — one that follows you to a different assistant, a different model, or a different company's product.
Encrypted before it leaves your machine. Nobody else can read your memories — not the storage, not SAIHM. There is nothing to switch on. With your key in a file, as in the standard setup, SAIHM also keeps an unencrypted copy of your memories on your own device for fast recall. Only your account can read it, and one setting turns it off.
npx -y @saihm/mcp-server-pro free-join
No card and no wallet. You need a browser and a GitHub account once, for a quick sign-in that confirms you're a real person:
Then add SAIHM to your AI client, restart it, and say "Recall my SAIHM memories." You're running.
No GitHub account? Start at https://saihm.net/free instead: you sign in with Google or Microsoft, and the page gives you your key and the steps to connect your assistant. Follow them, then say "Recall my SAIHM memories." Keep your key safe: it is the only key to your memory. Your key is already active, so skip *"Join SAIHM"*: there is nothing to join, and saying it anyway makes no new key.
Rather let your assistant set it up? Install SAIHM in your AI client first: for Claude Code that is the one command under Claude Code, and the other clients are below. Restart the client, then say "Join SAIHM" to your assistant. It asks whether you already have a SAIHM identity, then runs the same setup and gives you the same link and code to approve.
If a join is interrupted, join again on the same machine: it reuses the key it already created, so you keep the same identity. To cancel a join, stop it and don't enter the code; the code expires on its own. Keep the key file either way. Joining in detail.
The configurations below for Claude Code, Gemini CLI and the OpenAI Agents SDK are presented as tested (which clients are checked); the others are documented from each vendor's own documentation. Every configuration is subject to change at the vendor's discretion.
SAIHM runs on your machine as a local MCP server that your AI client starts with npx, so you need Node.js 20.19 or later. The package is @saihm/mcp-server-pro on npm, and the official MCP Registry lists it as io.github.SAIHM-Admin/saihm-mcp-server-pro.
Find your client below, add its block, and restart the client. Three tips:
npx -y @saihm/mcp-server-pro --version in a terminal. It downloads the package, prints its version and exits, so the client's first start is quick.Each block follows that client's own documentation. Before every release, the server is started from these blocks in Claude Code, Gemini CLI and the OpenAI Agents SDK to confirm it connects. Each client's fine print is in the reference.
Adding another AI client on this computer? It uses the key already in ~/.saihm by itself, so don't join again there: add its block, restart it and say *"Recall my SAIHM memories."* Give it the same settings as your first client:
SAIHM_HOME, or the same SAIHM_MASTER_SECRET_FILE, in its block.SAIHM_TIER and SAIHM_PAYMENT_METHOD to its block, wherever your key is, ~/.saihm included. Without them the new client signs in on the free plan.One command adds SAIHM for all your projects:
claude mcp add --env SAIHM_ENDPOINT_URL=https://saihm.net/mcp --transport stdio --scope user saihm -- npx -y @saihm/mcp-server-pro
If the tools don't appear after the first start, give the server more time: MCP_TIMEOUT=60000 claude, or run npx -y @saihm/mcp-server-pro --version once in a terminal and start Claude Code again. claude mcp list shows whether it connected. For Claude Code on the web, see Hosted agent environments.
Open Settings > Developer > Edit Config, add the "saihm" entry inside mcpServers, then quit and reopen Claude Desktop:
{
"mcpServers": { "saihm": { "command": "npx", "args": ["-y", "@saihm/mcp-server-pro"], "env": { "SAIHM_ENDPOINT_URL": "https://saihm.net/mcp" } } } }
Claude Desktop starts the server with the Node.js installed on your machine, so install Node.js first. If the tools don't appear the first time, run npx -y @saihm/mcp-server-pro --version in a terminal, then quit and reopen Claude Desktop.
Add this to ~/.codex/config.toml, or to a project's .codex/config.toml:
[mcp_servers.saihm]
command = "npx" args = ["-y", "@saihm/mcp-server-pro"] env = { SAIHM_ENDPOINT_URL = "https://saihm.net/mcp" } startup_timeout_sec = 60
Check it with codex mcp list, or /mcp inside Codex.
import asyncio
from agents import Agent, Runner from agents.mcp import MCPServerStdio
async def main(): async with MCPServerStdio( name="saihm", params={ "command": "npx", "args": ["-y", "@saihm/mcp-server-pro"], "env": {"SAIHM_ENDPOINT_URL": "https://saihm.net/mcp"}, }, client_session_timeout_seconds=60, ) as saihm: agent = Agent(name="Assistant", mcp_servers=[saihm]) result = await Runner.run(agent, "Recall my SAIHM memories.") print(result.final_output)
asyncio.run(main())
The 60-second timeout gives the first npx download time to finish. Pass secrets from the environment, never as literals in your code.
Add this to ~/.gemini/settings.json (all projects) or .gemini/settings.json (one project):
{
"mcpServers": { "saihm": { "command": "npx", "args": ["-y", "@saihm/mcp-server-pro"], "env": { "SAIHM_ENDPOINT_URL": "https://saihm.net/mcp" } } } }
Or install the Gemini CLI extension, which carries the same entry: gemini extensions install https://github.com/SAIHM-Admin/saihm-mcp-server-pro.
Run Gemini CLI in a folder you trust, since it starts local servers only there. Check with gemini mcp list, or /mcp inside Gemini CLI.
Since 2026-06-18, Google no longer serves personal Google accounts in the Gemini CLI: signing in with one answers "This client is no longer supported for Gemini Code Assist for individuals". As of October 2026 the Gemini CLI still works with a Gemini API key, or with a Gemini Code Assist Standard or Enterprise licence.
Add this to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json in a project:
{
"mcpServers": { "saihm": { "command": "npx", "args": ["-y", "@saihm/mcp-server-pro"], "env": { "SAIHM_ENDPOINT_URL": "https://saihm.net/mcp" } } } }
Type /mcp inside Antigravity CLI to see whether it connected. If the tools don't appear the first time, run npx -y @saihm/mcp-server-pro --version in a terminal, then reload the server there.
Add this to ~/.grok/config.toml, or to a project's .grok/config.toml:
[mcp_servers.saihm]
command = "npx" args = ["-y", "@saihm/mcp-server-pro"] env = { SAIHM_ENDPOINT_URL = "https://saihm.net/mcp" } startup_timeout_sec = 60
Grok Build also picks up an existing saihm entry from ~/.claude.json or a project's .mcp.json, so if you already added it for another client you may not need this step. Check it with grok mcp list, or grok mcp doctor saihm.
Add this to .vscode/mcp.json in a workspace, or to your user mcp.json (run MCP: Open User Configuration). VS Code uses servers here, not mcpServers:
{
"servers": { "saihm": { "type": "stdio", "command": "npx", "args": ["-y", "@saihm/mcp-server-pro"], "env": { "SAIHM_ENDPOINT_URL": "https://saihm.net/mcp" } } } }
Or add it to your user profile from a terminal (bash, zsh or Command Prompt):
code --add-mcp "{\"name\":\"saihm\",\"command\":\"npx\",\"args\":[\"-y\",\"@saihm/mcp-server-pro\"],\"env\":{\"SAIHM_ENDPOINT_URL\":\"https://saihm.net/mcp\"}}"
MCP: List Servers shows the server, and its Show Output action shows the log. If the tools don't appear the first time, run npx -y @saihm/mcp-server-pro --version in a terminal, then restart the server from MCP: List Servers. For the GitHub Copilot cloud agent, see Hosted agent environments.
If your company decides which MCP servers GitHub Copilot may run, an enterprise owner can allow SAIHM:
只显示了开头部分;其余内容请在仓库中阅读