Compare
PsyCoMem vs LangMem
LangMem is LangChain's open-source Python library for giving agents semantic, episodic and procedural memory. PsyCoMem is a clinical memory service for mental health AI: memory organised around beliefs, patterns and coping, every item linked to its evidence, change marked with a status, and abstention without evidence. Choose LangMem to build memory into a LangGraph agent yourself; PsyCoMem when users share their mental health.
By the Mena team · Updated
What LangMem is
“LangMem helps agents learn and adapt from their interactions over time”
Where LangMem is strong
- Clear model of memory types: semantic facts, episodic examples and procedural instructions.
- MIT-licensed library that works with any storage backend.
- Fits natively into LangGraph.
PsyCoMem vs LangMem: side by side
| LangMem | PsyCoMem | |
|---|---|---|
| What it is | An open-source Python library | A clinical memory service with an HTTP API |
| What is remembered | Semantic facts, episodic examples and procedural instructions | Beliefs, patterns and coping, organised the way clinicians think |
| Change over time | New information is reconciled with earlier memories, which may be merged or invalidated | Keeps history; marks what changed and when, as current, changed or unconfirmed |
| Links to source | Not described in public docs | Every item links to the words, session or score it came from |
| Uncertainty | Not described in public docs | Labels unconfirmed change; answers “not enough evidence” instead of guessing |
| Questionnaires | Not described in public docs | PHQ-9 and GAD-7 read as reliable change |
| Hosting | Wherever you run your agent and its store | EU on Mena infrastructure, or your own cloud; self-hosted open-weight models |
| Languages | Not described in public docs | Portuguese, English and Spanish |
“Not described in public docs” means we couldn't find it on LangMem's own pages, not that it doesn't exist.
Which should you choose?
Choose LangMem if
- You build on LangGraph and want memory as code you control.
- You want to design your own memory schema and storage.
- You need procedural memory that changes how the agent behaves.
Choose PsyCoMem if
- Your users share their mental health with your agent.
- You need every remembered item to point to its evidence, for clinicians or reviewers.
- You need change over time with a status, and honest abstention when evidence is missing.
- You need EU hosting or your own cloud, with no personal data sent to third-party AI providers.
- Your users speak Portuguese or Spanish as well as English.
Questions
Can a LangGraph agent use PsyCoMem?
Yes. PsyCoMem is reached over an HTTP API, with an SDK and an MCP server in early access, so a LangGraph agent can call it as a tool.
Why use a service instead of a memory library for mental health?
A library gives you building blocks. PsyCoMem gives you clinical guarantees out of the box: sources on every item, change with a status, abstention without evidence, and hosting designed for special category data.
Sources
LangMem is described only from its own public pages, checked on 2 December 2026. Tell us if something has changed: support@mena-ai.pt.