For enhanced flexibility in data persistence, consider using the Cloud Client directly instead of Chainlit’s built-in UI for storing data in Chainlit Cloud.

Before using the Cloud package, make sure to activate Cloud Mode for your Chainlit Application.

Initialize the client with your project API key:

Code Example
from import ChainlitCloudClient

chainlit_client = ChainlitCloudClient(api_key="your_api_key_here")