NEW

Open source memory layer for AI

Memory for AI Agents

Store, recall, and synthesize context across conversations.
Give your AI persistent memory in a few lines of code.

MemLib Dashboard

Cost Control

LLM calls only when needed — optimized token usage.

Provider Agnostic

Any LLM, any Postgres. Swap without code changes.

Secure by Design

Your data, your database. Nothing leaves your infra.

Fully Customizable

Override prompts, templates, and system instructions.

Bring Your Own Stack

Use any LLM provider and any Postgres-compatible database. No vendor lock-in — swap providers without changing a line of code.

Google Gemini
Supabase
Anthropic
Fly.io

FAQs

Common questions about MemLib. Can't find your answer? Open an issue.

Give your AI persistent memory.

Open source. Self-hosted. Ready in minutes.