Memory you can read.
Language models forget everything between requests. Engram gives them a long-term memory that lives in your Postgres, that you can inspect line by line, and that only learns what you approve.
What Engram will and won't do.
- 01
Every retrieval is logged.
The query, the memory snapshots, their scores, and how many reached the prompt. You can always see why a fact was used.
GET /logs/{id} - 02
Nothing is recalled until you approve it.
Extracted facts wait in the review queue. Updates arrive as revisions, and earlier versions stay restorable.
PATCH /memories/{id} {"status": "approved"} - 03
Weak matches stay out.
A few facts close to the best match, at the top of the system prompt. Everything else is skipped.
RETRIEVAL_THRESHOLD=0.3 - 04
Your keys, your database, your machine.
MIT licensed. Embeddings run locally, and provider keys are your own, encrypted at rest.
docker compose up -d
Four services, one compose file.
# NAME IMAGE PORT api engram-api 8000 # FastAPI proxy + REST postgres pgvector/pgvector:pg16 5432 # memories + vectors mcp engram-mcp 3000 # MCP server (engramd) dashboard engram-dashboard 3001 # Next.js console 4 services running