This document describes how to enable Gemini Code Assist tools. Google Cloud administrators should complete these steps to enable tools for developers in their IDEs.
For more information about tools, read the Gemini Code Assist tools overview. To configure tools for use in your IDE, see Configure Gemini Code Assist tools.
Before you begin
- Set up Gemini Code Assist.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Developer Connect API.
Developer Connect is used to create connections between user accounts and Gemini Code Assist tool services.
Required roles
To get the permissions that
you need to enable Gemini Code Assist tools,
ask your administrator to grant you the
Gemini Code Assist Tools Admin (roles/cloudaicompanion.codeToolsAdmin
) IAM role on the Google Cloud project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
Enable tools
In the Google Cloud console, go to the Gemini Code Assist Tools page.
Locate the tool you want to enable and then click Enable. The tool details page opens.
In the Configuration section, select a region to create your Developer Connect account connector in for the tool. The available regions are listed in Developer Connect locations.
Click Enable.
The tool is enabled.
You are prompted to connect to your account to use the tool in the IDE. If you want to use the tool in the IDE, then click Connect and follow the instructions to connect your account. You can skip the connection step if you don't want to use the tool.
Grant your developers the Gemini Code Assist Tools User (
roles/cloudaicompanion.codeToolsUser
) role on the Google Cloud project.The tool is available to developers in their IDEs. Users can authenticate to enabled Gemini Code Assist tools by prompting the tool in the Gemini Code Assist chat with
@TOOL_NAME
. Where TOOL_NAME is the name of the Gemini Code Assist tool.