Mem0
Mem0 is a self-improving memory layer for LLM applications, enabling personalized AI experiences. Use it with Respan to add memory to your AI product and route LLM calls through the Respan gateway for full observability over every memory add, search, and generation.
Set up Respan
Create an account at platform.respan.ai and grab an API key. For gateway, also add credits or a provider key.
Run npx @respan/cli setup to set up with your coding agent.
Gateway
Mem0 doesn’t expose its own SDK-level tracing instrumentor; route all calls through the Respan gateway to get full observability automatically.
Setup
Add memory with the OpenAI SDK
Use the OpenAI SDK pointed at the Respan gateway and pass mem0_params via extra_body to add or search memories alongside the LLM call.
Search memories
Pass search_memories to retrieve relevant memories before generation.