Skip to main content
Agno supports using Firestore as a database with the FirestoreDb class. You can get started with Firestore following their Get Started guide.

Usage

You need to provide a project_id parameter to the FirestoreDb class. Firestore will connect automatically using your Google Cloud credentials.
firestore_for_agent.py

Prerequisites

  1. Ensure your gcloud project is enabled with Firestore. Reference Firestore documentation
  2. Install dependencies: uv pip install openai google-cloud-firestore agno
  3. Make sure your gcloud project is set up and you have the necessary permissions to access Firestore

Params

Developer Resources