Skip to main content
Example showing how to use AgentOS with a Firestore database
firestore.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Authenticate with Google Cloud

Sign in with Application Default Credentials:
5

Set the Firestore project

Replace PROJECT_ID = "agno-os-test" in the code with a GCP project ID that has Firestore enabled.
6

Run the example

Save the code above as firestore.py, then run:
Full source: cookbook/05_agent_os/dbs/firestore.py