An embedded database runs in the same process as your application, or as a single local file or directory, instead of as a separate server. For AI agents that means no signup, no instance to deploy and fast local access to the data an agent needs between steps and across sessions. This page lists open-source embedded options in three groups: graph, SQL and vector. Licences, versions and dates were checked against project sites, GitHub, PyPI and npm on 22 November 2026, and they change quickly.
Graph Databases
5 entriesEmbedded graph engines suit agent memory and knowledge that is mostly relationships: who owns what, what depends on what, what supersedes what. Licences, versions and dates are from the project sites, GitHub and PyPI on 22 November 2026.
Relational and SQL Databases
5 entriesEmbedded SQL engines give an agent a single-file store with transactions and a language models already know well.
Vector and Retrieval Stores
5 entriesEmbedded stores for embeddings and search, for agent memory by meaning rather than by key.
How to Choose
6 situationsRules of thumb based on what each project describes. Test the one you pick against your own data and concurrency needs.
| If your agent needs | Start with | Why |
|---|---|---|
| Memory made of connected facts | Relate, LadybugDB | Embedded graph engines that speak Cypher; Relate adds an MCP server and an agent skill. |
| A simple, proven local store | SQLite | A self-contained SQL engine in the public domain, built into most devices. |
| Postgres features in the browser or in-process | PGlite | A WASM Postgres under 3 MB gzipped, with pgvector as an extension. |
| Analysis of files and tables | DuckDB | An analytical database that runs in-process. |
| Memory by meaning (embeddings) | LanceDB, Chroma, sqlite-vec | Embedded stores for vectors; sqlite-vec adds vector search to SQLite and is still an alpha release. |
| A local copy of a server you may scale up | Milvus Lite, Qdrant local mode | Run the same API locally for development and testing, then move to a server. |
Related Pages
5 entriesRelated directories on this site.