1. Store Agent Memory
POST /v1/memories// Store response will appear here...
2. Recall Semantic Context
POST /v1/context// Recalled memory context will appear here...
Generated SDK Execution (2 Lines of Code)
Python / TypeScript# 1. Install official SDK
# pip install memorybrain
from memorybrain import MemoryBrain
mb = MemoryBrain(api_key="mb_live_...")
# Store memory
mb.store(user_id="user_dev_491", content="User prefers async Python with FastAPI, deploys to Google Cloud Run.")
# Sub-25ms Recall
ctx = mb.recall(user_id="user_dev_491", query="What framework and cloud region does this user deploy to?")
print(ctx["context"])