Database Persistence
PraisonAI Agents supports automatic conversation persistence with multiple database backends.Quick Start
Installation
Supported Backends
| Category | Backends |
|---|---|
| Conversation | PostgreSQL, MySQL, SQLite, SingleStore, Supabase, SurrealDB |
| Knowledge/Vector | Qdrant, ChromaDB, Pinecone, Weaviate, LanceDB, Milvus, PGVector, Redis |
| State | Redis, MongoDB, DynamoDB, Firestore, Upstash, Memory |
Docker Setup (Local Development)
Usage Examples
PostgreSQL
SQLite (Zero Config)
Session Resume
When you use the samesession_id, the agent automatically loads previous conversation history:
Best Practices
- Use consistent session_ids - Same session_id = same conversation thread
- Use environment variables - Don’t hardcode credentials
Default Session ID
If you don’t provide asession_id, PraisonAI generates one automatically based on the current hour (UTC):

