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.

Required permissions

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

Here's how to assign the Cloud AI Companion 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 Cloud AI Companion 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 Cloud AI Companion 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.

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