Schema-grounded
agent-first
memory engine

Let agents read and write in natural language while xmemory turns facts, relationships, and workflow state into validated, queryable memory.

Get started

Why xmemory is different

The problem

Text-based memory, vector RAG, and Graph RAG can retrieve context, but knowledge is still inferred from text and correctness is undefined.

The idea

Schema is the programming language that turns messy recall into reliable memory, giving agents an explicit, short feedback loop at write time.

The solution

xmemory gives agents a simple text interface while isolating the hard work of correctness: explicit records, conflicts, and duplicates.

Read more

Key use cases

Three places where agent memory stops being a prompt trick and starts becoming product infrastructure.

User retention and personalisation

Build long-lasting agent relationships with compact user profiles that capture specific facts over time. xmemory keeps recall precise and fast.

See demo

Working memory for agents

Give agents reliable state for execution plans, task progress, long research findings, and accumulated tool knowledge across multi-agent and long-running workflows.

Governed agentic workflows

Bring observability and governance to regulated environments with schema-backed RBAC, lineage, debugging, and testing for every memory read and write.

Measurements

Measured against real memory failure modes

We evaluate whether systems can store, update, deduplicate, and retrieve facts and relationships reliably, not just whether they can recall similar text.*

xmemory97.10%
Mem0 (no graph)87.24%
Cognee86.18%
Mem0 (graph)86.07%
Supermemory80.49%
Zep80.16%

* Read more about measurement methodology and open benchmarks in our white paper.

Token consumption

Lower token use than text-based memory by optimising reads.

2x+ fewer tokens

Assuming 10 reads per write,
10 write tokens per 5 read tokens for xmemory,
and 5 write tokens per 12 read tokens for typical text-based storage architecture.

Integrate into your stack

Quickstart

Dear , please read the integration documentation and integrate xmemory into my project.

I want to use xmemory whenever they need to store information related to their context, execution steps, or tool usage. They should create memory schemas dynamically when needed for a task, or use schemas that I will explicitly define.

Our blog

View all posts →

Resources

Preview of the xmemory white paper
xmemory white paper

From Unstructured Recall to Schema-Grounded Memory

Read
Featuring xmemoryPreview of the Bessemer Venture Partners article AI Infrastructure Roadmap: Five frontiers for 2026
Bessemer Venture Partners

AI Infrastructure Roadmap: Five frontiers for 2026

Read
Featuring xmemoryPreview of the Andreessen Horowitz article Why We Need Continual Learning
Andreessen Horowitz

Why We Need Continual Learning

Read

FAQ

How is xmemory different from MCP over Postgres?

xmemory is not just a database exposed through MCP. It is a schema-based memory layer that lets agents read and write in natural language while xmemory owns the state-of-the-art harness that is otherwise fragile and spread across prompts, wrappers, and workflow code:

  • Schema extraction and mapping
  • Validation and type enforcement
  • Deduplication and stateful updates
  • Relations and queryable state
  • Provenance and observability
  • Schema creation and evolution
  • Async write queues to unlock agentic workflows while keeping latency low

MCP can expose tools. xmemory is meant to make the memory behavior itself agent-native and reliable. For the deeper architectural argument, seeShould Agents Adapt to Systems - or Should Systems Adapt to Agents?.

What if I don’t have a schema yet?

You do not need to hand-design a perfect schema first. Schema is a control dial, not a gate:

  • You can start with loose schemas, then move toward normalized, structured data as you learn more about the use case.
  • xmemory can infer a useful starting schema from historic data or a simple workflow description, so it can deliver value from day one.
  • The system can analyze reads and suggest schema evolution, helping memory get better and better over time.

SeeHow xmemory worksfor the full flow.

Why not just use text memory or vector memory?

Text and vector memory are useful for recall, but reliable AI systems need short, explicit feedback loops. Agents need a programming language that tells them whether an update is correct, which data is present, and how it is represented without relying on adjacent context. That language is schema. It enforces correctness, reduces knowledge inference at read time, and prevents bloating, drift, and corruption, especially in long-running workflows or personalisation over longer periods. For the fuller argument, readSchema as the Core of Reliability in AI Memory.

What is the place for xmemory in my stack?

xmemory is external storage that agents use like a database or file store to save and retrieve context. Agents can create memory instances themselves, define schemas for a task on the fly, or use fixed instances for longer-lived context. It can reliably replace an agentic system of record, or run as a sidecar validation engine with periodic sync to the system of record, so people can review updates before they merge. The simple rule is: whenever agents need to save and retrieve text information, that layer can be xmemory. You can jump straight to theintegration guidesinHow xmemory works.

Try it out

Tell us about your workflow and we’ll help you choose the right integration path.