LangChain's built-in memory lives in RAM — it vanishes on restart. REM is a drop-in BaseMemory backend that saves every turn to a persistent substrate with semantic search, entity graph, and overnight Dream Engine consolidation.
Free tier · No credit card · Works with LangChain Python and JS
Three things LangChain's default memory classes cannot do.
Chains, AgentExecutors, LangGraph nodes all read the same persistent store. Restarts, cold starts, and kernel deaths don't wipe state.
While your agent sleeps, REM consolidates: summarize, link, de-duplicate, score salience, detect contradictions. Recall gets better overnight, automatically.
The same namespace a LangChain agent writes to is queryable from CrewAI, AutoGen, Cursor, or raw curl. One memory layer, every framework.
No SDK dependency. The REM Labs REST API is the install — any HTTP client works.
The Python and JS SDKs are in private beta. The curl/requests pattern below is the production path today. Request SDK access in Discord to get early drops.
Sign up at remlabs.ai/console. Copy the sk-rem-... key and export it.
Every REM endpoint speaks JSON over HTTPS. Two calls prove the round-trip.
Subclass BaseMemory, forward load_memory_variables and save_context to the REST endpoints. 35 lines, zero magic.
Copy-paste these three shapes to cover 95% of LangChain memory use cases.
Drop-in replacement for ConversationBufferMemory. Works with any ConversationChain or AgentExecutor.
Expose REM as a first-class LangChain Tool so the agent decides when to remember.
Same REST calls. Use fetch, undici, or any HTTP client.
Everything LangChain's in-memory classes leave on the table.
One namespace per user, project, or crew. Survives restarts, deploys, zero-scale cold starts.
Vector + FTS5 fusion on every write. 94.6% on LongMemEval, median latency faster than a vector-only stack.
Dream Engine runs 9 strategies while your agent idles — summarize, link, dedupe, reweight salience. Recall improves without you shipping code.
The same store LangChain writes to is what CrewAI, AutoGen, Cursor, and your custom Zapier flows read from. One brain, many mouths.
Free tier, no credit card. Ship an agent that remembers across sessions in under a minute.