Set up Gemini Code Assist on GitHub Stay organized with collections Save and categorize content based on your preferences.
Page Summary
Gemini Code Assist on GitHub is a Gemini-powered agent that summarizes pull requests and provides code reviews.
You need a GitHub account and one or more repositories to set up Gemini Code Assist on GitHub.
Setting up Gemini Code Assist on GitHub involves installing the app and selecting repositories, with different steps for consumer and enterprise versions.
For the enterprise version, specific IAM roles may be required for setup within Google Cloud.
This page shows you how to set upGemini Code Assist on GitHub,a Gemini-powered agent that automatically summarizes pullrequests and provides in-depth code reviews.
Before you begin
To set up Gemini Code Assist on GitHub, make sure youdo the following:
Have a GitHub organization or personal account.
Note: The consumer version of Gemini Code Assist onGitHub doesn't support organizations that enable privateconnectivity.Have one or more GitHub repositories that you want to enableGemini Code Assist on GitHub on.
- If you don't have such a repository, you can create a fork ofour sample repositoryto use.
If you are setting up theenterprise version ofGemini Code Assist on GitHub, you must haveappropriate IAM roles in order to complete the setup withinGoogle Cloud.
Ask your administrator tograntyou theService Usage Admin roleand the
Important: Thegeminicodeassistmanagement.scmConnectionAdminrole.geminicodeassistmanagement.scmConnectionAdminrolecan't be granted using the Google Cloud console. Use the Google Cloud CLIinstead.Alternatively, if you have theAdmin orOwner basic roles,you have the necessary IAM permissions to complete thesetup for the enterprise version.
If you are setting up theenterprise version ofGemini Code Assist on GitHub, the Google Cloudproject you use during setup must be connected to a valid billing account.
Install Gemini Code Assist on GitHub
The following steps show you how to set up Gemini Code Assiston GitHub. Click the relevant tab for the version you want to set up,either theconsumer version or enterprise version.
Consumer
Go to theGemini Code Assistapp page.
Sign in to your GitHub account if you haven't already.
ClickInstall.
A prompt to install the Gemini Code Assist app for a useror organization is displayed.
When prompted to install the Gemini Code Assist app for auser or organization, select the organization you intend to use it on.
After you've installed the Gemini Code Assist app foryour GitHub organization, you're prompted to select therepositories to enable the Code Review integration.
You're redirected to the Admin Console for theGemini Code Assist app.
Login with your GitHub account.
Select a GitHub organization or personal account from thedrop-down menu.
Review and accept the Google Terms of Service, Generative AI ProhibitedUse Policy and Privacy Policy, and then clickComplete setup.
Gemini Code Assist is added to the pull requests withinyour selected repositories.
After creation, Gemini Code Assist provides suggestions toyour code review every time the pull request author or other human reviewersadd comments with the/gemini tag on the pull request.
Gemini Code Assist is now active for all the pullrequests within your selected repositories.
Enterprise
Preview
This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms for Google Cloud. Pre-GA features are available "as is" and might have limited support. For more information, see theGoogle Cloud launch stage descriptions.
In the Google Cloud console, go to the Gemini Code AssistAgents & Tools page.
- If you haven't previously enabled the Developer Connect API,you see a caution banner that prompts you to enable the API. If thishappens, click theEnable button associated with the banner, andclick theEnable button in the dialog window that appears.
In theAgents section, locate theCode Assist Source Code Management card, and clickEnable.
TheEnable Code Assist Source Code Management pane opens.
In theGemini Code Assist Management API section, clickEnable.
In theSelect a connection section, click theConnectiondrop-down.
In the drop-down, clickCreate new connection.
TheLink Git repositories via Developer Connect pane opens.
Note: Gemini Code Assist on GitHub creates theDeveloper Connect connection inus-east1and doesn't supportusing existing connections you might have for other features, such ascode customization.In theProvider drop-down, select the GitHub provider youare using.
In theName field, enter a name for your connection.
ClickContinue.
TheRequest GitHub OAuth token dialog window open.
After reading the disclaimer, clickI understand and continue.
In theInstall Gemini Code Assist page, click the account you want toinstall the app in.
Choose whether to install the app forAll repositories orOnly select repositories.
ClickInstall.
Follow the GitHub steps to authenticate to GitHub.
Once access is confirmed, the dialog window closes and you return to theLink Git repositories via Developer Connect pane.
In theLink repositories section, click theRepositoriesdrop-down, select the repositories you want to link, and clickOk.
Note: If you create a new GitHub repository in the future andwant to add it to the linked repositories in your connection, you mustuse Developer Connectto do so.ClickLink.
In theSelect a connection drop-down, select the connection youcreated.
ClickDone.
Gemini Code Assist is now active for all the pullrequests within your selected repositories.
What's next
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-02 UTC.