This page shows you how to set up the enterprise version of Gemini Code Assist on GitHub , a Gemini-powered agent that automatically summarizes pull requests and provides in-depth code reviews.
Before you begin
To set up the enterprise version of Gemini Code Assist on GitHub, make sure you do the following:
-
Have a GitHub organization or personal account.
-
Have one or more GitHub repositories that you want to enable Gemini Code Assist on GitHub on.
If you don't have such a repository, you can create a fork of our sample repository to use.
-
Ask your administrator to grant you the Service Usage Adminrole and the
geminicodeassistmanagement.scmConnectionAdminrole.- Alternatively, if you have the Adminor Ownerbasic roles , you have the necessary IAM permissions to complete the setup for the enterprise version.
-
Ensure that the Google Cloud project you use during setup is connected to a valid billing account.
Install Gemini Code Assist on GitHub
The following steps show you how to set up the enterprise version of Gemini Code Assist on GitHub.
-
In the Google Cloud console, go to the Gemini Code Assist Agents & Toolspage.
- If you haven't previously enabled the Developer Connect API, you see a caution banner that prompts you to enable the API. If this happens, click the Enablebutton associated with the banner, and click the Enablebutton in the dialog window that appears.
-
In the Agentssection, locate the Code Assist Source Code Managementcard, and click Enable.
The Enable Code Assist Source Code Managementpane opens.
-
In the Gemini Code Assist Management APIsection, click Enable.
-
In the Select a connectionsection, click the Connectiondrop-down.
-
In the drop-down, click Create new connection.
The Link Git repositories via Developer Connectpane opens.
-
In the Providerdrop-down, select the GitHub provider you are using.
-
In the Namefield, enter a name for your connection.
-
Click Continue.
The Request GitHub OAuth tokendialog window open.
-
After reading the disclaimer, click I understand and continue.
-
In the Install Gemini Code Assistpage, click the account you want to install the app in.
-
Choose whether to install the app for All repositoriesor Only select repositories.
-
Click Install.
-
Follow the GitHub steps to authenticate to GitHub.
Once access is confirmed, the dialog window closes and you return to the Link Git repositories via Developer Connectpane.
-
In the Link repositoriessection, click the Repositoriesdrop-down, select the repositories you want to link, and click Ok.
-
Click Link.
-
In the Select a connectiondrop-down, select the connection you created.
-
Click Done.
Gemini Code Assist is now active for all the pull requests within your selected repositories.
What's next
- Learn more about Gemini Code Assist in GitHub .
- Use Gemini Code Assist in GitHub .
- Learn how to customize Gemini Code Assist on GitHub behavior .

