Migration guide
Migrate from Mem0 to ZeroMemory
Move your Mem0 agent memory into ZeroMemory in minutes via MIF (Memory Interchange Format). One API call — embeddings, entity extraction, and semantic recall are handled for you.
Step 1 — Export from Mem0
from mem0 import MemoryClient records = MemoryClient().get_all(user_id="alice")
Step 2 — Map to MIF
def mem0_to_mif(rec):
return {
"@context": "https://mif.ainative.studio/context/v1",
"@type": "Memory",
"@id": f"urn:mif:memory:{rec['id']}",
"content": rec["memory"],
"conceptType": "semantic",
"created": rec.get("created_at"),
"properties": rec.get("metadata") or {},
}
docs = [mem0_to_mif(r) for r in records]Step 3 — Import into ZeroMemory
import requests
requests.post(
"https://api.ainative.studio/api/v1/public/memory/v2/import",
headers={"Authorization": f"Bearer {TOKEN}"},
json={"format": "mif-json", "namespace": "project:acme", "documents": docs},
)Then recall it: POST /api/v1/public/memory/v2/recall with your query and namespace.