Both are open source memory options with comparable terms, so the choice comes down to which model of the problem you prefer — compare the descriptions below rather than the licence.
Temporal knowledge graph memory — facts with validity windows, not just embeddings.
A messages table and a summaries table. Boring, auditable, yours.
Start here. Move to a memory product when you can name the query it makes fast.
| Zep | Postgres (rolled by hand) | |
|---|---|---|
| Licence | Open source | Open source |
| Pricing | freemium | open source |
| Self-hostable | Yes | Yes |
| Languages | Python, TypeScript | Any language |
| Install | — | — |
| Keys required | ZEP_API_KEY | None |
Both are open source memory options with comparable terms, so the choice comes down to which model of the problem you prefer — compare the descriptions below rather than the licence. Zep: Temporal knowledge graph memory — facts with validity windows, not just embeddings. Postgres (rolled by hand): A messages table and a summaries table. Boring, auditable, yours.
Zep can run on your own infrastructure. Postgres (rolled by hand) can run on your own infrastructure.
Zep is open source (freemium). Postgres (rolled by hand) is open source (open source).
Every page here answers to Accept: text/markdown and returns the same content at roughly a tenth the tokens. No separate site, no toggle — same URL.
curl -s -H "Accept: text/markdown" https://newagent.build/compare/zep-vs-postgres-memory