Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Memory interface for coding agents — stable memory_* tools over Hindsight, mem0, or Cognee.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
MEMORY_PROVIDER, PM_STACK_ROOTต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"openmem": {
"command": "npx",
"args": [
"-y",
"@bcmyguest/openmem"
],
"env": {
"MEMORY_PROVIDER": "ใส่ค่าของคุณ",
"PM_STACK_ROOT": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add openmem --env MEMORY_PROVIDER='ใส่ค่าของคุณ' --env PM_STACK_ROOT='ใส่ค่าของคุณ' -- npx -y @bcmyguest/openmemเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"openmem": {
"command": "npx",
"args": [
"-y",
"@bcmyguest/openmem"
],
"env": {
"MEMORY_PROVIDER": "ใส่ค่าของคุณ",
"PM_STACK_ROOT": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"openmem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@bcmyguest/openmem"
],
"env": {
"MEMORY_PROVIDER": "ใส่ค่าของคุณ",
"PM_STACK_ROOT": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
MEMORY_PROVIDER envPM_STACK_ROOT envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub bcmyguest ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.6.3) เข้า registry 9 วันที่ผ่านมา
โปรแกรมที่รองรับ 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
[!CAUTION]
Context management is leaving OpenMem. Smart compaction, the LiteLLM context proxy, and the OpenCode trim plugin in this repo are deprecated here and moving to [Smarter Compact](https://github.com/bcmyguest/smarter-compact) (docs,
npm install -g smarter-compact). Use OpenMem for memory (providers, indexer,memory_*MCP). Existing OpenMem stacks can still enable the composecontext-proxyprofile; new context work belongs in Smarter Compact.
OpenMem. Pluggable memory providers (Hindsight, mem0, Cognee) and one setup wizard for coding-agent memory — retain, recall, and index your sources.
A. Memory: your sources become memory any agent can query.
B. Context management *(deprecated in OpenMem — use Smarter Compact instead)*: long sessions stay under the limit; nothing is summarized away.
Benchmarks (context — deprecated here): In seed-matched ContextBench log tasks on Haiku 5.5, smart compaction scored 0.469 higher than keep-everything (95% bootstrap interval 0.339–0.578; eight pairs). Methods and charts still live in this repo (redirect · evidence plan); ongoing product docs and install are on Smarter Compact.
Docs: bcmyguest.github.io/openmem/
MCP: npx -y -p @bcmyguest/openmem openmem-mcp (after the wizard — it needs a running provider)
Start here: Concepts · Quickstart · Compatibility · Development (clone, tests, prek)
| Step | Command |
|---|---|
| 1. Wizard | npx @bcmyguest/openmem setup |
| 2. Check | npx @bcmyguest/openmem doctor |
| 3. Coding agents | npx @bcmyguest/openmem install-coding-agent --yes |
From a git clone: Development guide (npm install, npm run setup, tests, prek).
Needs (wizard): Docker Compose v2, Node ≥ 24, and an LLM route for Hindsight — see Quickstart.
Later: npx @bcmyguest/openmem up / down / switch --yes / doctor.
Wizard dry-run (what first setup plans — no writes):
Full guide: Quickstart · Concepts · Architecture
The two diagrams at the top show memory (A) and context management (B; deprecated in OpenMem, see Smarter Compact).
Same diagrams as Mermaid
flowchart LR
S[" Sources Git repos: docs, code outlines Obsidian vaults · notes · papers · bookmarks RSS · OpenAlex feeds"] -->|index| I[" OpenMem indexer polls repos, watches folders"] I -->|retain| P[(" Memory provider one active, swappable Hindsight (default) · mem0 · Cognee · …")] P <--> M[" OpenMem MCP memory_recall · memory_add memory_search · memory_reflect memory_pages_* + export/import, status…"] M <-->|tools| A[" Coding agents Claude Code · Codex · Cursor · OpenCode"] A -.->|"session hooks: recall at start · retain at stop"| M classDef om fill:#e8eaf9,stroke:#4651a6,color:#1b1d2a class I,M om
flowchart LR
A[" Coding agent Claude Code · Codex · OpenCode 1"] -->|requests| X[" Context proxy LiteLLM pre-call hook trims at 125k tokens (Haiku 95k) · no LLM call"] X -->|trimmed request| API[" Model API Anthropic · ChatGPT (Codex)"] X -->|every turn| S[(" Session store SQLite · every turn, verbatim")] S -->|"MCP: smart_compact_search · smart_compact_sql"| A O[" OpenCode 2 native plugin, no proxy"] -.->|same store| S classDef om fill:#e8eaf9,stroke:#4651a6,color:#1b1d2a class X,S om
Native compaction replaces history with an LLM summary, so exact values can be lost; smart compaction keeps every turn verbatim and searchable. Context trimming in OpenMem is deprecated — use Smarter Compact (smarter-compact enable). Legacy stack path: context proxy redirect. See architecture for memory runtime paths and provider-specific behavior.
memory_* plus optional native/NotebookLM servers: MCP setup.memory_export / memory_import speak PMM: Portable memory.npx @bcmyguest/openmem switch does not migrate data by itself; export/import (or re-index) moves content.Compose runs the shared indexer and the services required by the selected provider. Hindsight uses litellm and hindsight (127.0.0.1:8888); mem0 and Cognee use their own APIs and do not include LiteLLM by default. LiteLLM can also be added for memory_reflect synthesis on mem0/Cognee, or to host the optional context proxy's pre-call hook. See Architecture for runtime paths.
OpenMem is not affiliated with these projects; they shape the problem or the pattern.
| [OpenFeature](https://openfeature.dev/) | Inspiration for a vendor-agnostic interface + pluggable providers (there: feature flags; here: coding-agent memory). |
| [mise](https://mise.jdx.dev/) / [asdf](https://asdf-vm.com/) | One CLI over many backends; declarative config and tasks without replacing each tool’s own settings. |
| [LiteLLM](https://github.com/BerriAI/litellm) | Model proxy used on Hindsight stacks; its pre-call hook hosts the context proxy. |
| [Hindsight coding agents](https://www.npmjs.com/package/@vectorize-io/hindsight-coding-agents) | Reference implementation for knowledge pages, initiative capture and ingest status; OpenMem's hooks replace it in openmem mode. |
| [Mainplane](https://github.com/mainplane-ai/mainplane) | Inspiration for smart compaction: continue in a fresh context with a pointer to the saved transcript and retrieve as you go, instead of an LLM summary. |
| [Letta](https://www.letta.com/) / [MemGPT](https://arxiv.org/abs/2310.08560) | Inspiration for smart compaction: evicted turns kept verbatim in searchable recall storage the agent pages back with tools, and file-style search over the transcript (74.0% on LoCoMo). OpenMem does this in a proxy and an MCP server, so no Letta server is needed. |
| [rtk](https://github.com/rtk-ai/rtk) | Compresses shell command output before the agent sees it; install-coding-agent runs rtk init when it is installed. Inspired the context proxy's compression of large tool results (reimplemented, not bundled). |
| [opencode-clm](https://github.com/bcmyguest/opencode-clm) | OpenCode plugin for Context Language Models: the model edits a file mirror of its own context. Same goal as smart compaction, with the model doing the trimming (comparison). |
| [Meridian](https://github.com/rynfar/meridian) | Bridges a Claude subscription to an Anthropic-compatible API; optional Hindsight model backend (guide). |
| [OpenCode](https://opencode.ai/) / [Claude Code hooks](https://code.claude.com/docs/en/hooks) / [Codex hooks](https://developers.openai.com/codex/hooks) | The agent hook and plugin APIs OpenMem translates between (compatibility). |
Research notes and benchmark results for the context proxy: Context research.
More setup analogues: Pluggable memory providers.
Formerly personal-memory. Use the
openmemCLI and MCP server name; installers drop the oldpersonal-memoryMCP entry.
Papers and preprints cited in our context-management work (full list):
| Reference | Link |
|---|---|
| MemGPT (Packer et al., 2023) | arXiv:2310.08560 |
| LoCoMo (An et al., 2024) | arXiv:2402.17753 |
| LongMemEval (Wu et al., 2024) | arXiv:2410.10813 |
| MemoryAgentBench (2025) | [arXiv:2507.052
ตัดมาแค่ช่วงต้น อ่านต่อใน repo