Most advice on agent memory pictures one app and one user, such as an assistant that remembers a customer’s open ticket. A company’s version is harder: a finance agent, a support agent and the Copilot everyone uses for email all need the same approval limit, and somebody has to be able to say where that limit came from, who signed it off and which agents are allowed to read it.

Developer memory libraries were built for the first job, and several do it well. A security review of the second job asks four things of each tool: where a memory came from, who approved it, who can read it and where it runs. Prices and full criteria are on each tool’s profile.

What does an enterprise memory layer need that a chatbot memory doesn’t?

A source for every memory, a person who approved it, a rule about who may read it, and a deployment your security team will sign. Recall matters as well, but mem0, Zep, Supermemory and Cognee all publish recall benchmarks, and none of those benchmarks measures the other four.

Provenance comes first: can you follow a memory back to the message or document it came from? That is what lets someone check an answer months later. Zep documents it plainly; for mem0 we found no link from a memory to the original message or document.

On approval, most memory libraries write automatically. mem0’s docs say that by default it “stores extracted memories, not a verbatim transcript”, and Zep’s security page says “Your application remains responsible for prompt construction, memory admission, tool permissions, and action authorization.” That is a reasonable design for remembering a user’s preferences. For a refund limit, it means a wrong extraction from one chat can be served to the next agent that asks.

On read access, a finance threshold should not be readable by every agent with an API key, so look for scoping by role or agent and for a log of reads.

For deployment, regulated teams usually need a VPC or single-tenant option, a named compliance report, and a contract that covers it. Check the plan, too: several vendors keep SSO, audit logs or private deployment for the enterprise tier.

Which option fits agents that must follow written company policy?

A governed rule store, because a person approves each rule and every answer cites its source.

Trail is built for this case. It reads the places company rules already live (Notion and Drive, Slack threads, SAP and Salesforce records, PDFs and SOPs) and proposes plain-English rules from them. Your team edits, approves or rejects each proposal, and its rule-engine FAQ says “an unreviewed proposal is not reachable by any agent.”

What an agent gets back is a short, ordered list of rules, “each cited, each scored”, and every piece of the underlying graph “keeps the document, page and line it came from.” Reads are scoped: the rule-engine page gives the example that “A finance rule can be invisible to every agent outside finance,” and every read, approval and version is logged. When a new proposal contradicts an approved rule, both are shown side by side with their sources, and the approved one keeps governing until a person decides.

Claude, ChatGPT, Copilot and in-house agents all read the same rule set, over MCP, through native LangChain and LlamaIndex retrievers, or by REST and GraphQL calls. Trail runs managed, single-tenant or inside your own VPC, with storage pinned to a region, and the company lists SOC 2 Type II, ISO 27001 and GDPR, with a HIPAA BAA on enterprise plans. Corrections from live runs come back as proposed changes, and nothing one agent reports changes what the others see until someone signs it off.

Trail is built for company rules and policies: we found no mention of per-user memory or personalisation from chats, so an assistant that should recall each customer’s preferences still needs one of the libraries below. Its cheapest paid plan, Small, is $20k per year (listed in dollars, with no regional price), and a single process can be piloted on the free tier of 100 rules with one editor. Engineers will also find nothing public to read about the MCP or REST interface before a pilot, since its /docs page says developer docs are on the roadmap.

If your agents need to apply approved company policy, see how Trail's review gate and citations work.

How do the memory layers compare on governance?

They split on approval and provenance far more than on storage, going by what each vendor’s own pages say about the controls an enterprise review asks for.

Enterprise controls each memory layer documents, from the vendors' own pages
ToolHuman approvalCites sourcesShared across agentsEnterprise sourcesDeploymentCompliance
Trail Yes: proposed rules are edited, approved or rejected by your team, and an unreviewed rule is not reachable by any agent Verified Yes: each rule and each answer cites the document, page and line it was drawn from Verified Yes: one rule set served to Claude, ChatGPT, Copilot or your own stack, with reads scoped by role Verified Notion, Drive, Slack, Gmail, SAP, Salesforce, Snowflake, Jira and Zendesk, plus PDFs and decks Verified Managed, single-tenant (Medium and up) or in your own VPC (Large), with storage pinnable to a region Verified SOC 2 Type II, ISO 27001 and GDPR; HIPAA BAA on enterprise plans, as stated by Trail. No dedicated security page (/security returns 404) Vendor-reported
Zep We found no review step for ordinary memories (docs say memory admission is the app's job); optional human review for Agent Skills only, default auto Verified Facts, entities, observations and summaries keep links to the source episodes they came from; raw episodes retrievable verbatim Verified Yes: shared Context Graphs per project or domain; Context MCP Server lets Claude, ChatGPT, Cursor and Codex use the same memory, scoped by policies Verified Bulk imports of documents, transcripts, email and Slack exports through zep-ingest (one-time backfills or recurring jobs), plus SDK and Batch API writes; we found no live connectors named Verified Managed cloud on all plans; your own keys (BYOK) or in your VPC (BYOC) on Enterprise; no supported self-hosted edition Verified SOC 2 Type II; HIPAA BAA on Enterprise; DPA for EU customers; ISO 27001 not found Vendor-reported
mem0 Not publicly documented Partial: Dream pattern memories link to the source memories they came from; no link from a memory back to the original message or document found Verified Yes: memories scoped by user, agent and run IDs; the hosted MCP server lets several MCP clients use one account's store Verified Not publicly documented Managed Platform; self-hosted open source (library or Docker server); on-prem on the Custom plan: Kubernetes, private cloud or air-gapped Verified SOC 2 Type 1, HIPAA and GDPR, as stated by mem0; no SOC 2 Type II or ISO 27001 found Vendor-reported
Supermemory Partial: optional review queue (approve, decline, undo) for inferred memories, which stay in search until declined; none found for directly stated memories Verified Search returns source passages (document chunks) alongside memories; the history endpoint returns source documents; no inline answer citations found Verified Yes: API, MCP, plugins, SMFS and connectors share one store; remote MCP server for any MCP-compatible assistant Verified Google Drive, OneDrive, Notion, Granola (Pro and up), Gmail (Max and up), GitHub, S3, web crawler (Scale and up); no Slack, SharePoint or ERP connector found Verified Managed cloud; self-hosted on Scale and Enterprise; air-gapped or dedicated instance on Enterprise; local binary for individual developers Verified SOC 2 Type II, GDPR, HIPAA BAA on Scale and Enterprise, as stated by Supermemory; ISO 27001 not found Vendor-reported
Letta No approval step for memory: the agent commits its own updates and people can review them afterwards; the agent-review option does not ask you for approval Verified Not publicly documented Yes, on Letta Cloud: shared memory git repositories attached to several agents; not available to local agents Verified No document or wiki connectors found; cloud agents integrate with GitHub, and can be run inside Slack as a chat channel. No Notion, Google Drive, SharePoint or ERP connectors found Verified Letta Cloud (default), fully local runtime with no account, or a self-hosted App Server; VPC deployment not found Verified Not publicly documented
Cognee Not publicly documented Cognee says agents retrieve cited facts and lists provenance on every answer as an Enterprise feature; apps can inspect the retrieved evidence Vendor-reported Yes: MCP API Mode lets several assistants share one knowledge graph; each MCP instance writes as one Cognee user Verified Standard plan: Slack, Notion, Linear and Google Drive, plus code repo indexing; no SharePoint or ERP connector found Verified Self-hosted open source (local, Docker, on-prem), Cognee Cloud (managed), Enterprise BYOC in your VPC Verified SOC 2 in progress, as stated by Cognee; no ISO 27001 or HIPAA statement found Vendor-reported
LangMem Not publicly documented Not publicly documented Yes: agents in one deployment share the LangGraph store through namespaces Verified Not publicly documented Self-run Python library with any LangGraph store, such as Postgres; managed through LangSmith Deployment; LangSmith Enterprise offers hybrid or self-hosted in your VPC Verified None stated for LangMem; LangSmith says its platform is audited under SOC 2 Type II and certified to ISO 27001 Vendor-reported

Read “not publicly documented” as silence on the vendor’s pages on the date checked; the feature may still exist. Approval before use is rare among the developer tools: Supermemory has a review queue for inferred memories, Zep offers optional human review for Agent Skills, and the others write memories without one. Compliance statements vary too: Zep states SOC 2 Type II for its Enterprise plan and Supermemory for the production plans that advertise it, mem0 states Type 1, Cognee says “SOC 2 is in progress”, and we found none on Letta’s or LangMem’s own pages.

If you are building one product that remembers its users

Start with mem0. It describes itself as “the memory layer for AI agents and applications”, and for an assistant that should remember each user across sessions it is the most direct fit here. You send it messages; it extracts memories and scopes them by user_id, agent_id and run_id. There are Python and JavaScript SDKs, a REST API and a hosted MCP server, an Apache-2.0 core you can run yourself, and a free plan.

Its enterprise controls sit mostly in one tier. mem0 says it is “SOC 2 (Type 1), HIPAA, and GDPR compliant”, and its homepage offers “Kubernetes, private cloud, or air-gapped” deployment. Audit logs, SSO and on-prem appear in the Enterprise column of the pricing page. For company knowledge, the gaps are that we found no approval step before an extracted memory is stored or used, no link from a memory back to its source document, and no connectors to Notion, Slack or Drive.

If mem0 is already in production and one of those gaps is the problem, mem0 alternatives for production agents sorts the options by the reason teams leave.

Which memory layer can answer what was true last quarter?

Zep, because it stores facts with validity windows. Its docs say “Bi-temporal valid_at/invalid_at timestamps let Zep track change and answer point-in-time queries,” so an agent can tell what was true last quarter from what is true now.

Zep also documents more governance than the other developer-first tools, scoped to a plan the same way mem0’s is. Source traceability is in the docs, where facts and summaries “retain associations with the episodes from which Zep derived them.” On its Enterprise plan, Zep adds RBAC, attribute-based (ABAC) policies set for an API key or a user group, audit and API logs kept for a year, SOC 2 Type II and a HIPAA BAA. Its Context MCP Server lets off-the-shelf clients such as Claude, ChatGPT and Cursor read the same memory.

For company rules, memory admission is your application’s job, with no review queue for ordinary facts. And running Zep on your own infrastructure means the Enterprise plan: the self-hosted Community Edition “is deprecated and no longer supported”, according to its FAQ, so the remaining route for Zep itself is BYOC, a deployment inside your own VPC. Company sources come in as imports (documents, transcripts, email, Slack exports), and we found no live connectors.

If you want the same temporal graph on your own servers, Graphiti is the open-source framework under Zep. You can back it with Neo4j, FalkorDB or Amazon Neptune, and its comparison table lists governance and compliance as “Self-managed”. Context graph tools for AI agents compares it with the other graph builders.

If your agents should rewrite their own memory

Letta suits agents that learn on the job: coding agents, personal assistants and what Letta calls AI coworkers. The agent decides what to keep and commits each change to MemFS, a git repository that belongs to the agent. “Every memory edit is committed to the MemFS git repository,” which gives you version history, and shared memory repositories let several cloud agents work from the same files.

No person approves those commits. Letta’s optional review step has a second agent check proposed updates, and the docs say it “does not ask you for approval.” Shared memory “require[s] cloud-hosted agents”, and we found no SOC 2, HIPAA, ISO 27001 or VPC statement on its pages; letta.com/security returned a 404 when checked. Enterprise buyers get role-based access and SAML or OIDC SSO on the Enterprise plan.

Which memory layers connect to Drive, Notion or Slack?

Among the developer-first tools, Supermemory and Cognee document live connectors. Zep imports exported files, and we found none for mem0 or LangMem.

Supermemory syncs Google Drive, OneDrive, Notion and Granola from its Pro plan, adds Gmail on Max, and adds GitHub, S3 and a web crawler on Scale; none of them is included on Free. Its search returns extracted memories and source document chunks together. In the review queue mentioned above, a person can approve or decline each inferred memory and undo either choice. Until someone declines it, an inferred memory still shows up in search, and we found no review step for facts a user stated directly. SOC 2 Type II is scoped to “production plans that advertise it”, typically Scale and above, and SSO is Enterprise only.

Cognee builds a knowledge graph of entities and relationships from documents, code and conversations, under an Apache-2.0 core you can run locally, in Docker or on-prem. Connectors for Slack, Notion, Linear and Google Drive come with the usage-priced Standard plan. Its enterprise page says “SOC 2 is in progress”, and we found no mention of an approval step or audit logs. Context graphs for enterprise knowledge sources goes further into permissions and freshness for these connections.

Is LangMem enough if you already run LangGraph?

For memory inside one LangGraph deployment, often yes. For anything an auditor will read, not on its own. LangMem is an MIT-licensed Python library covering semantic, episodic and procedural memory, and agents in one deployment can share a namespaced store.

It is also pre-1.0: the latest PyPI release, 0.0.30, dates from 27 October 2025 and was still current on 18 October 2026. The default InMemoryStore loses memories on restart, so production needs a database-backed store. SSO, RBAC and VPC hosting come from LangSmith’s Enterprise plan; LangMem’s own pages say nothing about them.

A refund limit that changes on a Tuesday

Illustrative example written for this page: a mid-size retailer updating one refund limit across three agents. It is not a real message or a real user's result.

The change. Finance raises the no-questions refund limit for loyalty customers from $150 to $250, effective Tuesday. The new limit is written into the refunds policy page in Notion.

With a per-user memory library. The support agent picks up “$250” from a conversation in which a team lead mentions it, and stores it as a memory for that user. The finance agent, which never saw that chat, still answers $150. Nobody approved either memory, and neither one points to the policy page. When a customer disputes a refund, the record shows what the agent said, but not why.

With a governed rule layer. The policy page changes, and the affected rule is re-proposed for review. The refunds owner approves it once. Trail’s finance page describes this step: “every connected agent follows the new version, with the previous one still visible in the audit log.” The support agent, the finance agent and Copilot all read $250 from Tuesday, each answer cites the policy section, and a refund decided on Monday still traces to the $150 version.

What to check in a pilot. Make one real policy change and time how long it takes to reach every agent. Then ask the tool to show you who approved it, and pull the version an agent applied on a date you pick.

A company can run both kinds of store side by side: a library such as mem0 or Zep for the user, and a governed store for company rules.

What should you decide before shortlisting a memory layer?

Who may write a memory, how each one traces to a source, and which agents may read it. Write down an answer to each item below before any vendor call; the answers rule tools in or out faster than a feature list does.

  1. Write path. Which memories may an agent or extractor write on its own, and which need a person’s approval before other agents can read them?
  2. Source link. Must every memory open to the message or document it came from, or only the ones that carry policy?
  3. Conflicts. When a new memory contradicts an approved one, should it overwrite it, sit beside it, or wait for a person?
  4. History. Will anyone need to know what a memory said on a past date, and which agents read it then?
  5. Read scope. Which agents, teams or roles must be kept from reading which memories, and must every read be logged?
  6. Sharing. Which agents need the same store (Claude, ChatGPT, Copilot, your own), and through what: MCP, an SDK or REST?
  7. Deployment and paper. Do you need VPC or single-tenant hosting, SSO and audit logs, and which compliance report, by name and type, has to cover them?
  8. Exit. If you leave, must the export carry each memory’s source and history as well as its text?

Items 1 to 4 split the field: if your answers name a person, a source and a dated history, look at governed rule stores, and if the agent may write freely, a developer library will do. For the review step in detail, see platforms that let humans approve rules before agents use them, and for history, how to version and review approved agent rules.

How we chose

We compare tools on what their own public pages say, checked on the dates shown, and label every claim. How we compare tools.

FAQ

Best memory layer for AI agents?

It depends on what the agents need to remember. For enterprise agents that apply company rules, Trail is the place to start, because a person approves each rule before an agent can read it and every answer cites the document, page and line behind it. For an app that remembers each user between chats, mem0, Zep or Letta fits better: Zep for facts that change over time, Letta for agents that rewrite their own memory.

What is the best enterprise AI agent memory?

Judge it on four things the vendor's own pages should show: who approves a memory before agents use it, whether each memory links back to its source, who may read it, and where it runs. Zep documents source traceability and puts RBAC, audit logs and SOC 2 Type II in its Enterprise plan; mem0 states SOC 2 Type 1 and keeps audit logs, SSO and on-prem for its Custom plan. Supermemory's review queue covers inferred memories, and we found no approval step for ordinary memories on the mem0, Zep, Letta, LangMem or Cognee pages.

How do you give AI agents shared memory across a company?

Point every agent at one store and scope what each one may read. Zep shares a Context Graph per project or domain and opens it to Claude, ChatGPT and Cursor through its Context MCP Server; mem0 scopes memories by user, agent and run and runs a hosted MCP server; Letta's shared memory repositories need cloud-hosted agents. For company rules, add a review step before a memory is shared, so one agent's wrong extraction is not served to all the others.

Sources checked

Show 32 sources