Skip to the collection

agent-native · Memory & State

MemMachine

Listed on The Agent-Native Index

Universal memory layer for AI Agents. Scalable, extensible, and interoperable memory storage and retrieval for next-generation autonomous systems

What it does

MemMachine is a long-term memory layer for AI agents that explicitly composes three memory types as separate, interoperable subsystems:

  1. Episodic memory — graph-backed conversational context (who said what, in what order, with what relationships).
  2. Profile memory — SQL-backed user / agent facts (durable, queryable, deduplicated).
  3. Working memory — short-term scratchpad scoped to the current run.

This three-layer model is the differentiator from one-bucket memory layers: episodic graph traversal answers “what happened in the conversation?”, profile SQL answers “what do we know about this user?”, and working memory is the running scratchpad that flushes to the other two on a schedule. The library is framework-agnostic but ships first-class adapters for LangChain and CrewAI.


Agent-facing interfaces

How agents onboard

pip install memmachine
# then:
from memmachine import Memory
m = Memory()
m.add(messages, agent_id=...)
context = m.recall(query, agent_id=...)

See the full onboarding section in the dossier.

Protocol surface

Interface Detail
Python SDK pip install memmachine
LangChain adapter In-tree
CrewAI adapter In-tree
REST API For non-Python agents