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 compared with PsyCoMem
LangMemPsyCoMem
What it isAn open-source Python libraryA clinical memory service with an HTTP API
What is rememberedSemantic facts, episodic examples and procedural instructionsBeliefs, patterns and coping, organised the way clinicians think
Change over timeNew information is reconciled with earlier memories, which may be merged or invalidatedKeeps history; marks what changed and when, as current, changed or unconfirmed
Links to sourceNot described in public docsEvery item links to the words, session or score it came from
UncertaintyNot described in public docsLabels unconfirmed change; answers “not enough evidence” instead of guessing
QuestionnairesNot described in public docsPHQ-9 and GAD-7 read as reliable change
HostingWherever you run your agent and its storeEU on Mena infrastructure, or your own cloud; self-hosted open-weight models
LanguagesNot described in public docsPortuguese, 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.

  1. LangMem on GitHub
  2. LangMem conceptual guide

Early access

Give your agents a memory worth trusting.

We're onboarding a small group of mental health AI teams. Tell us what you're building.