Set up Gemini in Firebase

Before you start using Gemini in Firebase, you must enable it in the Firebase console. Gemini in Firebase is enabled on a per-project, per-user basis. Gemini in Firebase is included with Gemini Code Assist, which is available to try at no cost until November 8, 2024, limited to one user per billing account. Learn more at Set up Gemini Code Assist.

Required permissions

To enable and use features of Gemini in Firebase requires certain IAM roles and permissions.

Here's how to assign the Gemini for Google Cloud User role to a project member. Note that only project owners can edit IAM roles.

  1. From the Firebase console, select Project settings, then select Users and permissions.
  2. Find the row for the applicable project member.
  3. Click More options, then select Edit access.
  4. Expand Role(s), select Gemini for Google Cloud User, then click Done.
  5. Click Update roles to save the change. It may take a minute or two for the new role to apply to your user.

Set up Gemini in Firebase for a project

After ensuring that your account has required permissions, you can enable Gemini in Firebase for your project.

To enable Gemini in Firebase:

  1. As a project owner or editor, open the Firebase console, select a project, and click ✦Gemini in Firebase located in the upper-right console menu.

    The Gemini pane appears.

  2. Review the information that appears and click Get started.

  3. Optionally, enable Gemini in Firebase for other users in your project: From Project settings, select Users and permissions and assign additional users the Gemini for Google Cloud role.

You are now ready to accelerate your Firebase development with Gemini in Firebase. Learn more about interacting with Gemini in Firebase at Try Gemini in the Firebase console.

Turn off Gemini in Firebase

To turn off all Gemini for Google Cloud products including Gemini in Firebase and features that it supports, like AI assistance in Crashlytics, see Turn off the Gemini for Google Cloud API. Otherwise, you can limit access for specific users.

To limit access for specific users, you can remove the Gemini for Google Cloud user role from each user:

  • From the Firebase console, open Project settings, select Users and permissions and, for each user you want to update, remove the Gemini for Google Cloud role.

Troubleshoot Gemini in Firebase

If ✦Gemini in Firebase doesn't appear in the Firebase console, check the following:

  • Verify that the Gemini for Google Cloud API is enabled in the Google Cloud console.
  • Ensure that users to whom you want to give access have been assigned the Cloud AI companion user role in IAM.

Next steps