Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Persistent memory for AI agents: connects MCP clients to your Kemory memory vault
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
KEMORY_API_KEYค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"kemory": {
"command": "npx",
"args": [
"-y",
"kemory",
"mcp",
"serve"
],
"env": {
"KEMORY_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add kemory --env KEMORY_API_KEY='ใส่ค่าของคุณ' -- npx -y kemory mcp serveเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"kemory": {
"command": "npx",
"args": [
"-y",
"kemory",
"mcp",
"serve"
],
"env": {
"KEMORY_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"kemory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kemory",
"mcp",
"serve"
],
"env": {
"KEMORY_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub SeKondBrainAILabs ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: KEMORY_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.19.0) เข้า registry 11 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
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.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
The command-line client for Kemory, a persistent memory vault for AI agents. It signs you in, connects MCP clients such as Claude Code, Codex, Cursor and VS Code to your vault, and runs the MCP bridge they use.
You need a Kemory account; sign up at kemory.sekondbrain.ai.
npx -y kemory connect # Node.js 18+
uvx kemory connect # or with uv
Your browser opens to sign in. kemory then lists the AI clients on this machine, [ready] or [connected], and asks once: connect every ready client, choose some, or cancel. Claude Code and Grok Build get the Kemory plugin; Codex, Copilot CLI, Cursor, Gemini CLI, OpenCode and VS Code an MCP entry plus automatic memory; the others an MCP entry. Then the connection is checked. A summary lists what is left to do, such as which clients to restart.
kemory doctor.--dry-run shows what would change without changing anything. In scripts, name the clients instead: --host all, or --host claude-code, --host codex and so on (MCP clients lists them); kemory then asks nothing.
brew install sekondbrainailabs/s9n/kemory
npm install -g kemory uv tool install kemory
Builds exist for macOS (Apple silicon and Intel), Linux (arm64 and x64) and Windows (x64). They are attached to each GitHub release with checksums and build provenance (gh attestation verify --repo SeKondBrainAILabs/kemory-cli). kemory upgrade tells you whether a newer release exists and how to update the copy you installed.
| Command | What it does |
|---|---|
kemory login | Sign in through your browser (OAuth device flow), or --local with an API key |
kemory logout | Remove the cached sign-in for the selected environment |
kemory whoami | Show your account, active organisation and teams |
kemory mcp serve | The stdio MCP bridge an MCP client launches |
kemory hook session-start, hook capture | What a coding agent's hooks run: load your Kemory context when a session starts, save the session when it ends (Hooks) |
kemory connect | Sign in if needed, wire an MCP client and check the connection |
kemory connect copilot-cloud | Give GitHub Copilot's cloud agent automatic memory in the current repository (Copilot cloud agent) |
kemory mcp install | Write the kemory entry into MCP clients (--host all for every installed one) |
kemory doctor | Check sign-in, network, API and MCP clients; --fix wires or cleans them |
kemory orgs, kemory use | List your organisations and switch the active one |
kemory remember, recall, ls, show, forget | Store, search, read and delete memories |
kemory ask | Ask your vault a question and get an answer with its evidence |
kemory namespaces, kemory export | List namespaces, export the whole vault as JSON |
kemory stats | Recall usage and its token cost; stats memories for what is never recalled or rated down |
kemory keys | Create, rotate, approve, revoke, delete and list API keys for agents |
kemory upgrade, telemetry, completion | Check for a newer CLI, set your analytics preference, shell completion |
Every command accepts --output json for scripts and agents (stdout then carries only the JSON payload), --quiet, --no-color and --env .
kemory connect --host and kemory mcp install --host connect one client, and --host all connects every client installed on this machine.
For Claude Code and Grok Build they install the Kemory plugin through the client's own claude or grok command. Its hooks save each session to Kemory, and in Claude Code also load your memory when a session starts. Without that command, or for an environment other than prod, they write the MCP entry instead.
For Codex they also add hooks to ~/.codex/hooks.json that load your memory when a session starts and save the session as it goes (Hooks). Codex runs a new hook only after you approve it, so open Codex once and approve them with /hooks. Your other hooks in that file are left as they are.
For Cursor they add the same hooks to ~/.cursor/hooks.json, and for Gemini CLI to the hooks in ~/.gemini/settings.json. Both run them without asking, and your other hooks are left as they are.
For VS Code and the Copilot CLI they write ~/.copilot/hooks/kemory.json, which both run (in VS Code through the chat.useHooks setting, on by default). kemory owns that file and rewrites it on every connect.
For OpenCode they add the opencode-kemory plugin to the plugin list in opencode.json, which OpenCode installs from npm. It does the same: it adds your memory to the system prompt when a session starts and saves your prompts as the session goes. Connected to an environment other than the default, they write the plugin as ~/.config/opencode/plugins/kemory.js instead, which connecting again replaces, so keep your own plugins in other files.
For every other client they write an MCP entry. The entry only starts kemory mcp serve; no token or key is written into the client's config, and everything else in the file is left as it was.
--host | Client | Config file (macOS and Linux) |
|---|---|---|
claude-code | Claude Code | ~/.claude.json |
claude-desktop | Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json |
codex | OpenAI Codex | ~/.codex/config.toml, plus memory hooks in ~/.codex/hooks.json (or under $CODEX_HOME) |
cursor | Cursor | ~/.cursor/mcp.json, plus memory hooks in ~/.cursor/hooks.json |
vscode | VS Code (Copilot agent mode) | ~/Library/Application Support/Code/User/mcp.json, ~/.config/Code/User/mcp.json, plus memory hooks in ~/.copilot/hooks/kemory.json |
copilot-cli | GitHub Copilot CLI | ~/.copilot/mcp-config.json (or under $COPILOT_HOME), plus memory hooks in ~/.copilot/hooks/kemory.json |
copilot-jetbrains | GitHub Copilot in JetBrains IDEs | ~/.config/github-copilot/intellij/mcp.json (%LOCALAPPDATA%\github-copilot\intellij\mcp.json on Windows) |
junie | Junie, in JetBrains IDEs and the Junie CLI | ~/.junie/mcp/mcp.json |
gemini-cli | Gemini CLI | ~/.gemini/settings.json, with the memory hooks in the same file |
antigravity | Google Antigravity | ~/.gemini/config/mcp_config.json |
windsurf | Windsurf / Devin Desktop | ~/.config/devin/mcp_config.json, or ~/.codeium/windsurf/mcp_config.json for older installs |
cline | Cline | the VS Code extension's cline_mcp_settings.json, or ~/.cline/data/settings/cline_mcp_settings.json |
kiro | Kiro | ~/.kiro/settings/mcp.json |
grok | Grok CLI | ~/.grok/config.toml |
continue | Continue (discontinued in 2026; kept working where it is still installed) | ~/.continue/mcpServers/kemory.json |
droid | Factory Droid | ~/.factory/mcp.json, plus memory hooks in ~/.factory/hooks.json (or the hooks in ~/.factory/settings.json when you keep yours there) |
zed | Zed | ~/.config/zed/settings.json (%APPDATA%\Zed\settings.json on Windows), under context_servers; your comments in the file are kept |
warp | Warp | ~/.warp/.mcp.json |
opencode | OpenCode | ~/.config/opencode/opencode.json, plus opencode-kemory in its plugin list |
On Windows the files under Library/Application Support and .config live in %APPDATA% instead, except OpenCode's, which stay in ~\.config\opencode. Grok also reads ~/.claude.json, so the claude-code entry reaches it too.
Each client should reach Kemory one way. Two ways give it every Kemory tool twice, which costs context in every session.
| Client | Connect it with |
|---|---|
| claude.ai, Claude Desktop and Claude mobile | The claude.ai connector, added from the Kemory dashboard |
| Claude Code and Grok Build | The Kemory plugin, which kemory connect installs |
| Everything else in the table above | kemory connect --host |
connect and mcp install write nothing for a client that already has Kemory: Claude Code or Grok Build with the Kemory plugin enabled, or Claude Desktop when your account has a claude.ai connector in use. kemory doctor reports a kemory entry that duplicates either one, and kemory doctor --fix removes it.
Claude Desktop rewrites its config file from memory while it runs, which drops an entry added or removed in the meantime. When its config has to change while it is open, connect, mcp install and doctor --fix offer to quit it, make the change and open it again (doctor --fix --yes does so without asking). Run from the terminal inside the Claude app, which would close with it, they offer to open Terminal and continue there instead (macOS).
GitHub Copilot's cloud agent works in a sandbox where no one signs in, so it reaches Kemory with an API key. Run kemory connect copilot-cloud in the repository it works on, with gh signed in. It:
.github/hooks/kemory.json, the hooks that load your memory when a session starts and save the session (commit and push it);KEMORY_API_KEY (for the hooks) and COPILOT_MCP_KEMORY_API_KEY (for the MCP server);Without gh it prints the key once, to add as both secrets yourself. The hooks also take KEMORY_API_KEY anywhere else no one signs in.
Scripts and agents can act on why a command failed:
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Failure that fits no category below |
| 2 | Invalid invocation |
| 3 | Not signed in, or the sign-in was rejected — run kemory login |
| 4 | Kemory could not be reached; nothing ran on the server |
| 5 | Signed in but not allowed (403) |
| 6 | Not found (404) |
| 7 | Conflict with existing state (409) |
| 8 | Rate limited (429) |
| 9 | Kemory is up but temporarily unavailable (503) |
| Variable | Effect |
|---|---|
KEMORY_ENV | Environment to use: prod (default), india, local, or one from the environments file |
KEMORY_URL | Use this Kemory API host instead of the environment's |
KEMORY_OIDC_ISSUER, KEMORY_CLI_CLIENT_ID | Identity provider and client for self-hosted Kemory |
KEMORY_API_KEY | mcp serve authenticates with this key instead of your sign-in |
KEMORY_HTTP_TIMEOUT | Seconds mcp serve waits for Kemory (default 120) |
KEMORY_OUTPUT | text or json, like --output |
NO_COLOR | Disable colour |
| KEMORY_ACCESSIBLE=1 | Plain numbered p
ตัดมาแค่ช่วงต้น อ่านต่อใน repo