Memory Storage
PraisonAI supports 22+ database backends for memory persistence. Choose the right one for your use case.Storage Categories
Conversation Stores
Store conversation history and chat context. Best for session continuity.PostgreSQL
Production-ready relational DB
MySQL
Popular relational DB
SQLite
Zero-config local storage
JSON
Simple file-based storage
Supabase
Managed Postgres
Neon
Serverless Postgres
State Stores
Store agent state, checkpoints, and runtime data. Best for complex workflows.Redis
High-speed caching
MongoDB
Document store
DynamoDB
AWS managed
Firestore
Google Cloud
Upstash
Serverless Redis
Dakera
Decay-weighted vector recall
Quick Setup
Choosing a Database
| Use Case | Recommended | Why |
|---|---|---|
| Local development | SQLite/JSON | Zero config |
| Production web app | PostgreSQL | Reliable, scalable |
| High-speed caching | Redis | Sub-ms latency |
| Serverless | Neon/Upstash | No server management |
| AWS infrastructure | DynamoDB | Native integration |
| Decay-weighted recall across sessions | Dakera | Importance-scored, time-decayed memory server |
Storage Backends
For training data, sessions, and general persistence, PraisonAI provides pluggable storage backends:| Backend | Dependencies | Best For |
|---|---|---|
| FileBackend | None | Development, debugging |
| SQLiteBackend | None | Production, concurrent access |
| RedisBackend | redis | High-speed caching, distributed |
FileMemory sanitises
user_id before using it as a directory name — values containing path separators, .., or other unsafe characters fall back to "default". This prevents accidental writes outside the configured memory directory.Related
Database Overview
Complete database reference
Session Resume
Continue conversations
Storage Backends
Pluggable storage backends
Dakera Memory
Self-hosted decay-weighted vector memory

