LLM Memory Management with Motörhead
Motörhead was an open-source memory server for LLM chatbots. It's now deprecated; here's what it did and how LangChain handles chat memory today.
LLMs are stateless. Each request starts afresh, so a chatbot only "remembers" a conversation because the app sends the earlier messages back with every new one. That works until the history outgrows the context window or the user comes back a week later. Memory management is how an app decides what to keep, what to summarize, and where to store it.
What Motörhead Did
Motörhead was an open-source memory server for LLM apps, built by Metal and backed by Redis. It exposed three simple endpoints per session: store messages, read them back, and delete them. When a session reached its maximum window size, Motörhead summarized the older half of the messages and kept the summary, updating it incrementally as the conversation grew. It also offered vector search over stored messages, and LangChain shipped a MotorheadMemory class to plug it into chains.

The project is now deprecated, and its README says support is no longer maintained. I wouldn't start anything new on it.
Short-Term and Long-Term Memory in LangChain Today
LangChain now splits memory into two kinds, both handled by LangGraph's persistence layer:
| Short-term memory | Long-term memory | |
|---|---|---|
| What it holds | The current conversation's messages and state | Facts and preferences that outlive one conversation |
| Scope | One thread | Across threads, organized by namespace |
| LangGraph component | Checkpointer | Store |
| Production backends | Postgres or SQLite | Postgres, Redis, MongoDB and others |
Short-term memory replaces what Motörhead's windowing did: the checkpointer saves each thread, and you trim or summarize old messages when the history gets long. Long-term memory covers the "remember this user next time" case, with optional semantic search over stored items. LangChain's memory guide covers both, and the in-memory versions are for testing only; both lose everything on restart.
If you already run Postgres for your app, it can hold the checkpoints, the long-term store and your document vectors. I used Postgres with pgvector for documents in my LangChain examples app.
Where to Run It
Postgres is one click on Railway, or you can run it yourself on a DigitalOcean droplet. My LangChain Apps template deploys a Streamlit app alongside Postgres 18 with pgvector, if you want a working starting point.