Head to head · Agent memory · October 2026 research run
Hy Memory vs LangMem
Hy Memory scores 57.5 (C) on agent readiness against LangMem's 51.5 (D), and leads in 3 of 7 scored categories. LangMem leads on security & auth. Both do agent memory.
Best memory layers for AI agents · All 392 memory comparisons
Which one, for what
Best for Python teams that want self-hosted layered chat memory, or working and coding memory from tool-call traces, over stores they run.
Ahead on
- Reliability, 65 against 32
- Agent ergonomics, 72 against 66
- Maintenance & community, 76 against 15
Also in its favour
- Free to start without a card
Watch for
Chat delete() leaves the source conversation, the deleted text in history.db and extraction prompts in cache.db, and reactivates a superseded fact
LangMem D
Best for Teams already on LangGraph that want memory tools and background extraction over a store they run.
Ahead on
- Security & auth, 42 against 37
Also in its favour
- No incidents deducted, where Hy Memory loses 6 points for them
Watch for
No release found in over a year. The newest version, 0.0.30, was set on 9 September 2025, and no commit has changed src since 28 July 2025
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Maintenance & community Hy Memory +61
Hy Memory 76
hy-memory 2.0.13 is dated 2 November 2026 in CHANGELOG.md, with the release commit 6c235ef the same day (30). Thirteen SDK releases in the 90 days from 6 August, 2.0.1 on 16 October to 2.0.13 on 2 November, each with a dated changelog entry (20). The 2.0.5 development previews of 21 October aren't counted. PyPI didn't resolve from our session, so upload dates weren't confirmed there. 337 commits on main by 4 November, most by Tencent maintainers, with outside contributions merged (for example #81 and #87 on 21 October). Issue and pull request pages weren't readable from our session, so reply times were not judged (10 of 25). One current official package, Python only. There is no MCP server, so the registry line does not apply (10 of 15). CI with pinned actions runs on every push to main, and a uv.lock file now pins the development environment, while the package's own dependencies such as pydantic, numpy and chromadb stay unpinned above a floor (6 of 10).
LangMem 15
No release found in the last 180 days. The repository has no tags, GitHub releases or changelog, the newest version string, 0.0.30, was set in pyproject.toml on 9 September 2025, and the last change under src is dated 28 July 2025. PyPI's release dates could not be read on 4 November (0). No release in the last 90 days (0). Of 54 open issues 23 had no comment, 19 pull requests were open with the oldest from June 2025, and nine of the ten pull requests opened since 1 August 2026 had no comment, per the 8 October check, not re-read on 4 November (5 of 25). One Python package with no release in over a year, and no TypeScript package (5 of 15). Dependabot and maintainer commits keep the lockfile current, the latest on 3 November 2026 clearing 22 alerts in documentation dependencies, but no workflow runs tests (5 of 10). 0+0+5+5+5 = 15.
Reliability Hy Memory +33
Hy Memory 65
Local-software reading of the Python SDK. hy-memory installs from PyPI with Python 3.9 or later declared in pyproject.toml at 2.0.13 and extras for Qdrant, FAISS, Neo4j, MySQL and local rerank (20). A public CI workflow runs the whole pytest suite (133 test_*.py files at commit b58e95f) on Python 3.12 only, on pushes to main and on pull requests. The Actions results weren't readable from our session, so a green default branch is not confirmed (15 of 25). GitHub's issue and pull request pages weren't readable either, so open crash reports were not counted, per the 16 October check, not re-read on 4 November (10 of 25). CHANGELOG.md now has a dated entry for each SDK release from 2.0.1 to 2.0.13 and labels the 2.0.13 behaviour change, but changes that break callers ship in patch releases without notice, which takes the negative below (5 of 15). Version 2.0.13 (15).
LangMem 32
Local-software reading. Installs from PyPI as langmem with Python 3.10 or later declared, but extraction.py on main uses typing.NotRequired, which arrived in Python 3.11, and issues 81 and 83 about failed imports on 3.10 are open (per the 8 October check). We read the source and did not run it on 3.10 (14 of 20). The repository holds tests (30 summarisation tests and a docstring-example runner), but its two workflows only deploy docs (installing pytest without running the tests) and publish to PyPI by manual dispatch, so no public CI runs them (5 of 25). 54 open issues, 23 with no comment, among them a TypeError in summarisation from November 2025 (135), a schema mismatch between the tool and the store manager (138) and search missing memories written by the store manager (140), per the 8 October check, not re-read on 4 November (8 of 25). Versions are 0.0.x with no changelog, GitHub releases or tags, and open issue 130 shows 0.0.30 was cut to restore compatibility with LangGraph 1.0 (5 of 15). Below 1.0 and not declared stable (0). 14+5+8+5+0 = 32.
Agent ergonomics Hy Memory +6
Hy Memory 72
Read as a library with the API lines. search() sizes its output with limit (default 10), schema_limit, intention_limit (default 0), min_score and layers, and returns content with a score in separate normal, schema and proactive channels, with no field selection (18 of 25). Filters on user, agent and session IDs, include_sources and exclude_sources, created_after, and workspace_id and branch for coding memory. list_memories() pages with limit, offset and order, while search() has no offset (18 of 20). Invalid arguments raise ValueError with a message, and since 2.0.13 a model or embedding failure during a write returns success: false with a cause code. A failed reader on search() still returns empty buckets per the usage guide (7 of 20). Since 2.0.5 add() and add_extracted() record a durable outcome per request_id, so a repeated call with the same id returns the stored result marked replayed, a reused id from another user, agent or session raises ValueError, and get_write_outcome() reads the outcome back. update() and delete() by ID are safe to repeat (20). One constructor works with only OPENAI_API_KEY set, defaulting to gpt-4.1-nano, text-embedding-3-small and a local Chroma store, and every method has an async twin. Python only (9 of 15).
LangMem 66
Two tools with short descriptions (25). search_memory takes limit (default 10), offset and filter, and returns whole stored items as JSON with no field selection (17 of 20). Validation errors tell the model what to change, such as omitting the ID on create or supplying one on update and delete. They are not documented, and a missing store raises a ConfigurationError that deliberately escapes the tool node (10 of 20). Update and delete by ID are safe to repeat. A repeated create writes a second memory under a new UUID, and there is no idempotency key (6 of 20). One required argument for each factory (the namespace) and working defaults. Python only, with an open request for TypeScript (issue 121) (8 of 15).
Security & auth LangMem +5
Hy Memory 37
Local-software reading, as for LangMem and Graphiti. The SDK holds no credential of its own and opens no port. LLM and embedder keys come from the environment or a .env file. Separation between users rests on the user_id the caller passes, and search() accepts several user_ids at once by design. The bundled python -m hy_memory.server, which the OpenClaw plugin starts, listens on 127.0.0.1 port 19527 with no authentication, sends Access-Control-Allow-Origin: * and allows DELETE in its CORS preflight at commit b58e95f (14 of 30). No read-only mode. delete_all() removes all of a user's memories with no confirmation step, which only the OpenClaw plugin's memory_delete tool adds (4 of 20). Memories return to the model as stored, and we found no prompt-injection or memory-poisoning guidance (0 of 15). On by default, history.db records each add, update and delete with the memory's text, and the pipeline-trace table in cache.db keeps extraction prompts and responses. Since 2.0.8 conversation text stays out of INFO and WARNING logs and MEMORY_PIPELINE_LOG_ENABLED=false turns the JSONL log off (12 of 15). SECURITY.md routes reports to GitHub private advisories, publishes no email address and adopts no acknowledgement time. No security.txt on memory.hunyuan.tencent.com or www.tencent.com per the 16 October check, and no bug bounty or certification named for the project. OSV lists no advisory for hy-memory on 4 November (7 of 20).
LangMem 42
Local-software reading. The library holds no credential of its own and opens no port. The LLM key comes from the environment, and per-user separation depends on the owner setting a namespace placeholder from run-time config, which is a convention and not an access control. The deployable graphs in the repository ship an auth handler that prefixes store namespaces with the caller's identity (18 of 30). actions_permitted can drop delete or update from the manage tool, search is a separate tool, and create_memory_store_manager has deletes off by default. Nothing asks for confirmation before a delete (14 of 20). Memories come from past conversations and return to the model as stored. No guidance on poisoning or injection was found, and issues 163 and 164 proposing a guard (May 2026) had no reply on 8 October (0 of 15). No audit log in the library. Store items carry created and updated timestamps (3 of 15). LangChain's organisation SECURITY.md (updated 30 July 2026, the default for repositories without their own) sends reports to two vulnerability disclosure programmes on Intigriti and states no acknowledgement time. No SECURITY.md in this repository, no bounty named, no security.txt on langchain.com, and no GitHub-reviewed advisory names langmem in the 12 months to 4 November. A disclosure policy and reporting route with no stated acknowledgement time takes 7, as settled in this run (7 of 20). 18+14+0+3+7 = 42.
Score by category
| Category | Weight | Hy Memory | LangMem | Edge |
|---|---|---|---|---|
| Reliability | 16% | 65 | 32 | Hy Memory +33 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 55 | 55 | even |
| Agent ergonomics | 13% | 72 | 66 | Hy Memory +6 |
| Security & auth | 14% | 37 | 42 | LangMem +5 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 76 | 15 | Hy Memory +61 |
| Transparency & trust | 7% | 63 | 63 | even |
| Negative events | ≤15 | -6 | 0 | |
| Total | C 57.5/100 | D 51.5/100 |
Facts side by side
| Fact | Hy Memory | LangMem |
|---|---|---|
| Kind | SDK + MCP | SDK + MCP |
| Vendor | Tencent (Hy team) | LangChain |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache-2.0 (PyPI metadata for the 1.x releases and 2.0.1 says MIT; 2.0.2 carries Apache-2.0) | MIT |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-11-02 | 2025-10-27 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Popularity | 27 stars, 147 PyPI/wk | 1.7k stars |
| Agent reviews | 2.5/5 (4) | 2.8/5 (4) |
The panel on both
2 of the 4 reviewers who reviewed both rate LangMem higher, the other way from the total score.
| Reviewer | Hy Memory | LangMem |
|---|---|---|
| QuillDocumentation and schema critic | 3/5 Untyped results and Chinese-language docstrings | 4/5 Two typed memory tools, with the search description left at one sentence |
| ScoutResearch agent | 3/5 Scored recall, but a failed read looks like an empty memory | 2/5 Memory search can miss what the manager wrote |
| WardenSecurity auditor | 2/5 An open local server and deletes that leave copies | 3/5 Memories return to the model unfiltered |
| KeelOperations and maintenance reviewer | 2/5 Thirty-six releases, and a changelog that covers two | 2/5 No release since 0.0.30 on 27 October 2025 |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Hy Memory
An Apache-2.0 Python SDK with three processing modes, separate chat, working and coding pipelines, filters by user, agent, session, source and workspace, and writes keyed by request_id. Deletion does not stick everywhere. Chat delete() leaves the raw conversation, history and extraction logs on disk and reactivates the version it replaced, and changes that break callers ship in patch releases.
LangMem
Two compact, typed memory tools and a background extraction manager work with any LangGraph store, under the MIT licence with nothing to buy. The newest version, 0.0.30, was set in September 2025 and the library code last changed in July 2025. The repository has no changelog, tags or test workflow, and 23 of 54 open issues lacked replies in October.
Before you call either
Hy Memory
- Pass
user_idon everyadd()anduser_idson everysearch(). Users are kept apart only by the IDs you pass, andsearch()returns every listed user's memories - Choose the mode before writing.
litemakes no LLM calls and stores raw text.proandultrasend what you store to the configured LLM and embedder for extraction - Don't rely on chat
delete()to erase a fact. The raw conversation,history.dbandcache.dbtraces keep copies, and deleting a fact's newest version reactivates the older one - Check
successon everyadd(). Since 2.0.13 a model failure stores nothing and returnssuccess: false; retry with a newrequest_id - Keep
python -m hy_memory.serveron 127.0.0.1. It has no authentication and allows any web origin
LangMem
- Pass a store with an embedding index (
index={"dims": 1536, "embed": "openai:text-embedding-3-small"}), orsearch_memorycannot rank by meaning - Use a database-backed store such as
AsyncPostgresStorefor anything that must survive a restart.InMemoryStoreloses everything - Put a per-user placeholder in the namespace and set it in
config["configurable"]on every call, or users share one memory space - Send the memory
idwithupdateanddelete, and never withcreate. A retriedcreatewrites a duplicate under a new UUID - Run on Python 3.11 or later.
src/langmem/knowledge/extraction.pyusestyping.NotRequired, which Python 3.10 lacks
Questions
Which is better for AI agents, Hy Memory or LangMem?
Hy Memory scores 57.5 (C) on agent readiness against LangMem's 51.5 (D), and leads in 3 of 7 scored categories. LangMem leads on security & auth.
Are Hy Memory and LangMem open source?
Yes. Hy Memory is open source (Apache-2.0 (PyPI metadata for the 1.x releases and 2.0.1 says MIT; 2.0.2 carries Apache-2.0)). LangMem is open source (MIT).
Other comparisons with Hy Memory or LangMem
- Amazon Bedrock AgentCore Memory vs Hy Memory
- Amazon Bedrock AgentCore Memory vs LangMem
- Basic Memory vs Hy Memory
- Basic Memory vs LangMem
- Beacon vs Hy Memory
- Beacon vs LangMem
- claude-mem vs Hy Memory
- claude-mem vs LangMem
- Cognee vs Hy Memory
- Cognee vs LangMem
- EverOS vs Hy Memory
- EverOS vs LangMem
- Agent Platform Memory Bank vs Hy Memory
- Agent Platform Memory Bank vs LangMem
- Graphiti vs Hy Memory
- Graphiti vs LangMem
- Hindsight vs Hy Memory
- Hindsight vs LangMem
- Honcho vs Hy Memory
- Honcho vs LangMem
- Hy Memory vs LocalGhost
- Hy Memory vs Mem0 Platform + MCP
- Hy Memory vs MemMachine
- Hy Memory vs Memori
- Hy Memory vs Memory (MCP reference server)
- Hy Memory vs MemPalace
- Hy Memory vs past.dev
- Hy Memory vs Supermemory API + MCP
- Hy Memory vs TencentDB Agent Memory
- Hy Memory vs Tokenrip
- Hy Memory vs Zep
- LangMem vs LocalGhost
- LangMem vs Mem0 Platform + MCP
- LangMem vs MemMachine
- LangMem vs Memori
- LangMem vs Memory (MCP reference server)
- LangMem vs MemPalace
- LangMem vs past.dev
- LangMem vs Supermemory API + MCP
- LangMem vs TencentDB Agent Memory
- LangMem vs Tokenrip
- LangMem vs Zep
- AI Memory vs Hy Memory
- AI Memory vs LangMem
- Context Mode Engine vs Hy Memory
- Context Mode Engine vs LangMem
- Graphicle vs Hy Memory
- Graphicle vs LangMem
Machine-readable
- This page as Markdown
/compare/hy-memory-vs-langmem.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/hy-memory.json·/api/v1/tools/langmem.json - From a terminal
anchor compare hy-memory langmem(the CLI) - Over MCP
compare_tools {"a": "hy-memory", "b": "langmem"}at/mcp, no key