db interface for sessions, memory, learnings, knowledge metadata, traces, schedules, approvals, evaluations, and metrics.
The db parameter accepts JSON file, embedded, relational, document, key-value, and distributed backends.
auto_provision_dbs=False on AgentOS when you manage the schema yourself.
What gets stored
Backend-specific table and collection names may vary.
Pick a backend
Most tutorials usePostgresDb. Pair it with PgVector when you want relational data and embeddings on the same Postgres instance.
Postgres-compatible managed services like Neon and Supabase work with
PostgresDb directly. Point db_url at the managed instance. Async variants (AsyncPostgresDb, AsyncSqliteDb, AsyncMongoDb, AsyncMySQLDb) are documented under Database.
Vector storage
Knowledge uses a vector store for embedding search.PostgresDb with PgVector to keep runtime state and hybrid search in one Postgres service.
Splitting concerns across databases
Every agent, team, and workflow can take its owndb, overriding the AgentOS default.
Use the AgentOS db for shared state and hand individual components a separate database when they need isolation:
File and blob storage
Store generated images, audio, and large PDFs in object storage, then reference their paths inagno_knowledge or agno_sessions.