· Memory/ Head to head

Zep vs Postgres (rolled by hand)

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.

Open source · freemium · can be self-hosted · SDKs for Python and TypeScript

Postgres (rolled by hand)

A messages table and a summaries table. Boring, auditable, yours.

Open source · can be self-hosted

Start here. Move to a memory product when you can name the query it makes fast.

· Side by side/ 3 of 6 differ
ZepPostgres (rolled by hand)
LicenceOpen sourceOpen source
Pricingfreemiumopen source
Self-hostableYesYes
LanguagesPython, TypeScriptAny language
Install
Keys requiredZEP_API_KEYNone
· Common questions/ FAQ

What is the difference between Zep and Postgres (rolled by hand)?

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.

Can Zep and Postgres (rolled by hand) be self-hosted?

Zep can run on your own infrastructure. Postgres (rolled by hand) can run on your own infrastructure.

Are Zep and Postgres (rolled by hand) open source?

Zep is open source (freemium). Postgres (rolled by hand) is open source (open source).

Build a stack with ZepAll memory options
· For agents/ This page, machine-readable

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