Chainlit home page
Search...
⌘K
Github
Join Discord
Join Discord
Search...
Navigation
Data Persistence
Overview
Documentation
Examples
API Reference
Chainlit Help
Get Started
Overview
Installation
In Pure Python
Integrations
Deploy
Overview
Platforms
Basic Concepts
Chat Life Cycle
Starters
Message
Step
User Session
Element
Action
Command
Advanced Features
Streaming
MCP Servers
Ask User
Multi-Modality
Chat Profiles
Chat Settings
Testing & Debugging
Data Persistence
Overview
Chat History
Human Feedback
Open Source Data Layers
Tags & Metadata
Authentication
Overview
Password
Header
OAuth
Customisation
Overview
Translation
Avatars
Logo and Favicon
Theme
JS
CSS
Backend
Config
Environment Variables
Command Line Options
Guides
Async / Sync
Migrate to Chainlit v2.0.0
On this page
Enable Data Persistence
Data Persistence
Overview
By default, your Chainlit app does not persist the chats and elements it generates. However, the ability to store and utilize this data can be a crucial part of your project or organization.
Enable Data Persistence
To enable data persistence in your Chainlit app, you have several options:
Open Source Data Layer
Use the official Chainlit data layer, leverage a community data layer or build your own.
Was this page helpful?
Yes
No
Suggest edits
Raise issue
Testing & Debugging
Chat History
Assistant
Responses are generated using AI and may contain mistakes.