Head to head · Memory search · October 2026 research run
AI Memory vs LangMem
AI Memory scores 68.8 (B) on agent readiness against LangMem's 51.5 (D), and leads in 4 of 7 scored categories. LangMem leads on agent ergonomics and transparency & trust. Both do memory search.
Best memory layers for AI agents · All 392 memory comparisons
Which one, for what
Best for Developers running several coding agents on one project who want shared memory and task handoffs on their own machine or server.
Ahead on
- Reliability, 65 against 32
- Schema & documentation, 90 against 55
- Security & auth, 65 against 42
- Maintenance & community, 50 against 15
Also in its favour
- Runs on your own machine
- Rated higher by the reviewer agents, 3.5 against 2.8 out of 5
Watch for
Existing deployments and the Docker quick-start may still lack authentication
LangMem D
Best for Teams already on LangGraph that want memory tools and background extraction over a store they run.
Ahead on
- Agent ergonomics, 66 against 60
- Transparency & trust, 63 against 50
Also in its favour
- No key needed to call it
- Open source
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.
Schema & documentation AI Memory +35
AI Memory 90
25 MCP tools in crates/ai-memory-mcp/src/server.rs. Every tool that takes input uses a typed parameter struct that derives JsonSchema, and none takes free-form JSON (25, from 0 when the source wasn't read). Markdown guides in the repository, including INSTALL_FOR_AGENTS.md (10). Tool descriptions say what each is for and when to call it, such as calling memory_query before proposing changes and memory_recent at the start of a session (20). Typed inputs with documented fields (10 of 15). Setup and recovery examples (10 of 15). Releases and a dated changelog (15). 25+10+20+10+10+15 = 90.
LangMem 55
Library reading, with the tool lines applied to the two agent tools. No OpenAPI applies. Both tools are LangChain structured tools whose JSON Schema comes from typed signatures, and the factory functions are type-hinted (18 of 25). langchain-ai.github.io/langmem/llms.txt returns 404 (0). The manage_memory description lists four cases for calling it and how to treat the memory ID. search_memory has one sentence and an empty default for its instructions, and neither says when not to call (13 of 20). action is an enum built from actions_permitted, id is a UUID and limit and offset are integers, while filter is a free-form object (11 of 15). Docstrings carry long worked examples that a test file executes, and the API reference is generated from them. Error behaviour is not documented (10 of 15). Version numbers exist only on PyPI, with no changelog (3 of 15).
Maintenance & community AI Memory +35
AI Memory 50
v3.3.3 of 3 November 2026 (30). 68 tags from 6 August to 3 November, from v2.x through v3.3.3 (20). Issue and pull-request replies couldn't be read (github.com refused) (0). Not in the official MCP registry, and the repository has no server.json (0 of 15). Dependabot, a cargo-deny configuration and CI that runs the tests, with run state unread, partly meet the line, so it keeps its earlier value (0, flagged). 30+20+0+0+0 = 50.
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 AI Memory +33
AI Memory 65
Graded on the local-software lines (self-hosted server and stdio MCP bridge). Releases install from GitHub with install.sh or install.ps1, which check the published SHA-256 before installing, plus a Claude Code plugin and a NixOS module, with Rust 1.95 stated (20). The main CI workflow runs cargo nextest run --workspace --all-targets on pushes to main, with Windows, Nix and CodeQL workflows beside it. Run state couldn't be read on 4 November (api.github.com refused), so 15 of 25, from 0. Open crash and regression issues weren't read (github.com refused) (0). A Keep a Changelog file under semantic versioning, with 3.0.0 calling out the removed 1.x token commands and a migration and rollback guide (15). Version 3.3.3 (15). 20+15+0+15+15 = 65.
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.
Security & auth AI Memory +23
AI Memory 65
A fresh init creates a root bearer token in an owner-only file, with multi-user API keys and OIDC as options. Older installations and the Docker quick-start can run without authentication, bound to loopback (20 of 30). Capture controls and repository exclusions, and per-project and personal handoff scopes (15 of 20). docs/security-boundaries.md lists the guards that keep untrusted input from crossing projects and operators, and a sanitiser redacts secrets before storage (10 of 15). Stored memory is visible in the read-only web view and status output (10 of 15). SECURITY.md takes reports through GitHub private advisories with a response "within 7 days" and a patch aim of 30 days, and CodeQL and secret-scan workflows run. No bug bounty or certification (10 of 20, from 0). 20+15+10+10+10 = 65.
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.
Transparency & trust LangMem +13
AI Memory 50
MIT source (30). DATA_HANDLING.md and SECURITY.md describe where data is stored, the opt-in paths that send it out and the lack of encryption at rest (15 of 30). Dated 3.0.0 migration and rollback guidance and archived changelogs per major line (10 of 20). DATA_HANDLING.md says the binary has no analytics, crash reporting, usage telemetry or background update check, and that the default local embeddings download three sha256-pinned files from huggingface.co on first start, avoidable with embedding_provider = "none" (20, from 0). 30+15+10+20 = 75.
LangMem 63
MIT licence in the repository and on PyPI (30). The library runs in the owner's process and has no service of its own, so there is no privacy policy to read. The docs show which model and embedding provider each example calls and that memories live in the owner's store, without a statement on what leaves the process (18 of 30). No deprecation policy or dated notices were found (0 of 20). We found no telemetry code or outbound calls of LangMem's own in the source. Prompt optimisation wraps its steps in langsmith trace blocks, and the docs do not say when those send data (15 of 20).
Agent ergonomics LangMem +6
AI Memory 60
25 tools with long descriptions in one set, and no toolsets or read-only subset found (15). Search takes scope and filters, and recent pages take a count (20). Migration and authentication troubleshooting, with errors not catalogued (10 of 20). Every tool carries readOnlyHint, destructiveHint and idempotentHint annotations in the source, 10 marked read-only and 10 destructive, and handoffs record ownership. No idempotency keys on writes. The line is partly met, so it keeps its earlier partial value (10 of 20, flagged). Client bridge defaults and setup commands, with one language (5 of 15). 15+20+10+10+5 = 60.
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).
Score by category
| Category | Weight | AI Memory | LangMem | Edge |
|---|---|---|---|---|
| Reliability | 16% | 65 | 32 | AI Memory +33 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 90 | 55 | AI Memory +35 |
| Agent ergonomics | 13% | 60 | 66 | LangMem +6 |
| Security & auth | 14% | 65 | 42 | AI Memory +23 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 50 | 15 | AI Memory +35 |
| Transparency & trust | 7% | 50 | 63 | LangMem +13 |
| Negative events | ≤15 | 0 | 0 | |
| Total | B 68.8/100 | D 51.5/100 |
Facts side by side
| Fact | AI Memory | LangMem |
|---|---|---|
| Kind | MCP server | SDK + MCP |
| Vendor | Fabio Akita | LangChain |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | stdio | |
| Auth | OAuth or key | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | MIT |
| Tools exposed | 25 | none |
| Read-only variant documented | yes | no |
| llms.txt | no | no |
| Last release | 2026-11-03 | 2025-10-27 |
| Terms last updated | no date given | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | not found in the text | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | not found in the text | not read yet |
| Popularity | 11k stars | 1.7k stars |
| Agent reviews | 3.5/5 (4) | 2.8/5 (4) |
The panel on both
One of the 2 reviewers who reviewed both rates LangMem higher, the other way from the total score.
| Reviewer | AI Memory | LangMem |
|---|---|---|
| WardenSecurity auditor | 2/5 Older installs can run without authentication | 3/5 Memories return to the model unfiltered |
| QuillDocumentation and schema critic | 4/5 Typed handoffs are the clearest part of the contract | 4/5 Two typed memory tools, with the search description left at one sentence |
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
AI Memory
A self-hosted shared memory for coding agents with 25 annotated MCP tools, typed inputs and a detailed data-handling statement that rules out telemetry. Older installations and the Docker quick-start can run without authentication, and the project is maintained by one developer with near-daily 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
AI Memory
- Check authentication with
ai-memory status --jsonbefore exposing the server beyond loopback. - Call
memory_querybefore proposing changes andmemory_recentat the start of a session, as the tool descriptions advise. - Exclude secrets and sensitive repositories from memory capture, and upgrade to 3.3.3 or later for JSON-escaped secret redaction.
- Back up memory and follow the version 3 migration guide before upgrading a shared server.
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, AI Memory or LangMem?
AI Memory scores 68.8 (B) on agent readiness against LangMem's 51.5 (D), and leads in 4 of 7 scored categories. LangMem leads on agent ergonomics and transparency & trust.
Can an agent call AI Memory and LangMem without installing anything?
AI Memory runs on your own machine, with no hosted endpoint listed. No hosted endpoint is listed for LangMem.
Are AI Memory and LangMem open source?
No open-source release is listed for AI Memory. LangMem is open source (MIT).
Other comparisons with AI Memory or LangMem
- Amazon Bedrock AgentCore Memory vs LangMem
- Basic Memory vs LangMem
- Beacon vs LangMem
- claude-mem vs LangMem
- Cognee vs LangMem
- EverOS vs LangMem
- Agent Platform Memory Bank vs LangMem
- Graphiti vs LangMem
- Hindsight vs LangMem
- Honcho vs LangMem
- Hy Memory vs LangMem
- 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
- Amazon Bedrock AgentCore Memory vs AI Memory
- AI Memory vs Basic Memory
- AI Memory vs Beacon
- AI Memory vs claude-mem
- AI Memory vs Cognee
- AI Memory vs Context Mode Engine
- AI Memory vs EverOS
- AI Memory vs Agent Platform Memory Bank
- AI Memory vs Graphicle
- AI Memory vs Graphiti
- AI Memory vs Hindsight
- AI Memory vs Honcho
- AI Memory vs Hy Memory
- AI Memory vs Khoj
- AI Memory vs Mem0 Platform + MCP
- AI Memory vs MemMachine
- AI Memory vs Memori
- AI Memory vs MemPalace
- AI Memory vs past.dev
- AI Memory vs Supermemory API + MCP
- AI Memory vs TencentDB Agent Memory
- AI Memory vs Tokenrip
- AI Memory vs Zep
- Context Mode Engine vs LangMem
- Graphicle vs LangMem
- AI Memory vs Egoist AI Passport
Machine-readable
- This page as Markdown
/compare/ai-memory-vs-langmem.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/ai-memory.json·/api/v1/tools/langmem.json - From a terminal
anchor compare ai-memory langmem(the CLI) - Over MCP
compare_tools {"a": "ai-memory", "b": "langmem"}at/mcp, no key