Skip to main content
Watch: Grok Bot Built My AI Video Arena While I Tested 8 Models

Gemini CLI error

Gemini CLI: You are currently configured to use a Google Cloud Project but lack a...

Error message
You are currently configured to use a Google Cloud Project but lack a Gemini Code Assist license. Please contact your administrator to request a license.

Status: WorkaroundLast verified 2 documented fixes2 sources

What it means

Login found a Google Cloud project configured but no Gemini Code Assist license tied to the account.

Causes

  • A contributor in #19216: if you are using the free tier you should not be using a Google Cloud Project. Using one may cause Gemini CLI to look for a license and find that you do not have one, or to block Gemini 3 based on admin controls for the Preview release channel.

How to fix it

  1. Fix 1.

    Free-tier users: remove the GOOGLE_CLOUD_PROJECT environment variable. The contributor links discussion #13516, where a maintainer says not to set GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID when signing in as an individual with a free account, AI Pro or AI Ultra, and only to set them if the Gemini Code Assist license was purchased through the Gemini Code Assist Admin Console.

    Terminal
    unset GOOGLE_CLOUD_PROJECT
  2. Fix 2.

    Licensed organization users: ask your administrator for a Gemini Code Assist license, as the message says. A reply in #19216 quotes the team saying they had "been able to mitigate this issue"; a contributor closed #19216 as completed on 2026-04-13, saying the primary issue looked resolved.

More Gemini CLI errors

All 19 Gemini CLI errors

FAQ

What does "You are currently configured to use a Google Cloud Project but lack a..." mean in Gemini CLI?

Login found a Google Cloud project configured but no Gemini Code Assist license tied to the account.

How do I fix "You are currently configured to use a Google Cloud Project but lack a..."?

There are 2 documented fixes. Start with the first: Free-tier users: remove the GOOGLE_CLOUD_PROJECT environment variable. The contributor links discussion #13516, where a maintainer says not to set GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID when signing in as an individual with a free account, AI Pro or AI Ultra, and only to set them if the Gemini Code Assist license was purchased through the Gemini Code Assist Admin Console.

Is this Gemini CLI error fixed?

Status: Workaround. No release removes the cause. The documented fixes work around it. Affected versions: Reported on 0.27.3 through 0.29.x (#19216)

Sources

Last verified against 2 sources: official docs, maintainer replies and release notes.

Newsletter

Fixes for the tools you use, weekly

One email per week. New coding agent releases, what broke, and how developers are working around it.