Troubleshoot access to Gemini Code Assist features

This document shows you how to resolve issues with accessing Gemini Code Assist features.

Depending on the Google Cloud project and organization settings that your administrator configured, you might need to take additional steps to access Gemini Code Assist features in the Google Cloud console and supported IDEs, such as enabling required APIs and assigning yourself a Gemini Code Assist license.

Disabled Gemini for Google Cloud API

The following error occurs when you are attempting to use a Gemini Code Assist feature, such as a quick prompt in the Google Cloud console or code completion in a supported IDE:

Prompt showing API is not enabled.

This error occurs if the Gemini for Google Cloud API isn't enabled.

If you have permissions to enable the Gemini for Google Cloud API on a Google Cloud project, then the message provides a link to enable it. If you don't have permissions to enable it, then the message lists the permission you need to enable the API.

Missing permission

The following error occurs when you are attempting to use a Gemini Code Assist feature, such as a quick prompt in the Google Cloud console or code completion in a supported IDE:

Prompt showing permission is missing.

This error occurs if you don't have the required user permission to use a feature.

To resolve this issue, contact your Google Cloud administrator and request them to grant you the missing permission.

Missing Gemini Code Assist license

To use Gemini Code Assist, you need to have a license assigned to you. If the required APIs are enabled on your Google Cloud project and you have the required permissions to use Gemini Code Assist features, but you attempt to use a Gemini Code Assist feature (such as quick prompt in the Google Cloud console or code completion in a supported IDE), the Google Cloud console displays a message explaining that you need to get a Gemini Code Assist license.

If you don't have permissions to self-assign a license or manage licenses, then you are provided a link to learn more about Gemini Code Assist licensing. You will need to request a license from your Google Cloud project administrator.

License self-assignment for Google Cloud console-based Gemini Code Assist features

If you have permissions to self-assign licenses and a license is available in your organization, then you'll see a dialog in the Google Cloud console where you click Get a license to have one assigned to you. Clicking that button assigns a license to you, and it remains assigned until a period of inactivity elapses. After that period of inactivity, your license is unassigned and returned to the pool of available licenses.

If you have permissions to manage licenses, then you'll see a dialog where you click Manage subscription manually or automatically assign a license.