Are there any tutorials & documentation for integrating apps from AI Studio into Google Firebase?

I have been looking for tutorials or documentation on integrating apps from Google AI Studio with Google Firebase/Firestore, including both user authentication (sign-up and sign-in) and storing user data in Firestore. So far, I have not found any resources on this, which is surprising given that such integration seems like it should be straightforward for Google, yet I have not encountered it.

UPDATE 2025-11-30: I can now successfully add Firebase Authentication using the email/password sign-in method to any app I build in Google AI Studio. It’s not exactly rocket science, but it does involve several steps and required thoroughly studying the documentation. The apps are deployed using Google AI Studio’s built-in Cloud Run service, so there was no need to set up any backend, aside from Firebase, of course.

Hey Paul, you can check the official Firebase documentation, it is pretty lean and clean cut. It is also AI friendly, meaning you can copy doc links for specific topics and feed your AI partner, eg. Gemini 2.5 pro, or an AI enabled IDE like Cursor to set up Firebase correctly for your project. You can share screenshots of what you see on Firebase and the AI will guide you step by step.

Hope this helps move with your project <3

1 Like

Thanks for the info. I looked it over but couldn’t find any useful tips on integrating it with the apps I built in Google AI Studio. I tried several things based on the docs, but I can’t even get Google account authentication to work.

It would be great if Google offered a clear, step-by-step guide on linking Firebase from within AI Studio.

I understand the frustration. I believe AI studio helps you Prototype, but you will need to set your prototype on a cloud service (backend), you then link your forebase automatically with your existing project id from gcp.

I have already added the app I built with Google AI Studio to a Firebase project folder as a web app.

Now, I need guidance on which libraries to import and the necessary code to establish authentication.

The AI-assistant struggles with this, producing non-functional code and importing libraries from CDNs that throw errors.

It would be incredibly helpful if Google could provide example instructions on the following:

  • Which libraries to add to get Firebase connections working from within my app
  • How to get authentication by Firebase working (what code to add)

The current Google AI Studio build environment presents significant challenges for seamless Firebase integration. In repeated implementation attempts, Firestore database connectivity consistently fails—most likely due to the environment’s limited access to required environment variables (.env). Also Firebase Authentication, service worker implementation fails, highlighting architectural gaps in the integration support provided by AI Studio.

Furthermore, the environment often enters persistent auto error-correction loops: it repeatedly overwrites previously fixed files, ultimately leading to full application crashes and unrecoverable preview errors. This behavior severely reduces development efficiency and productivity, making the developer experience frustrating and resource-intensive.

Despite thorough research and engagement with the community forums, there appears to be a persistent lack of clear, authoritative guidance or timely responses from Google representatives on these issues.It is critical for Google to clarify whether AI Studio is intended purely for prototype and mock-data scenarios, or if it is meant to support production-grade app development. If the latter, comprehensive integration documentation and rapid stability improvements are urgently needed to retain developer trust and prevent erosion of goodwill within the community.

Update: I can now successfully add Firebase Authentication using the email/password sign-in method to any app I build in Google AI Studio. It’s not exactly rocket science, but it does involve several steps and required thoroughly studying the documentation.

The apps are deployed using Google AI Studio’s built-in Cloud Run service, so there was no need to set up any backend, aside from Firebase, of course.

1 Like