Memory for every model.
Give stateless LLMs a memory you can read, review and run on your own machine.
$ npx engramdpick a question, or click any neuron
Three quiet steps around every request.
Engram sits between your app and the model. It recalls before the request, steps aside while the model answers, and learns after the reply.
↑ response returned at 820 msEverything to the right of that line runs in the background. Your user is already reading the answer.
Only what matters reaches the model.
Each memory is scored against the new message. Anything weak stays out, and every retrieval is logged so you can see why a fact was used.
golden set · recall@5 0.969 · precision 0.745 · 1.8 injected per query
It remembers what lasts, and asks first.
After the reply, Engram pulls durable facts out of the conversation, rewrites relative dates as absolute ones, and checks them against what it already knows.
One memory, three ways in.
Proxy
Point any OpenAI-compatible client at Engram. Same request body, now with memory.
curl localhost:8000/v1/chat \ -H "X-Engram-Key: ek_…" \ -H "X-Engram-Provider: openai" \ -d '{"model": "gpt-4o-mini", "messages": […]}'
REST API
Add, search, edit and forget memories directly. Search returns the exact block the proxy would inject.
curl -X PATCH \ localhost:8000/memories/mem_8f2c \ -H "X-Engram-Key: ek_…" \ -d '{"status": "approved"}'
MCP
Seven memory tools for Claude, Codex and any MCP client, scoped to one project at a time.
# tools search_memories add_memory list_memories update_memory delete_memory capture_conversation get_retrieval_log
Yours to run.
Four services in one Docker Compose file. Bring your own provider key; Engram encrypts it and never falls back to one of its own.
# 1. configure cp .env.example .env # 2. start the stack docker compose up -d # 3. create a user (the key is shown once) curl -X POST localhost:8000/users \ -H "Content-Type: application/json" \ -d '{"external_id": "me"}'