gemini-cli - 💡(How to fix) Fix Fail to sign in, Cloud Code Private API has not been used in project xxx before or it is disabled. [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25617Fetched 2026-04-19 15:22:54
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2

Code Example

Failed to sign in. Message: Cloud Code Private API has not been used in project 714329362445 before or it is disabled. Enable it by visiting                       │
│   https://console.developers.google.com/apis/api/cloudcode-pa.googleapis.com/overview?project=714329362445 then retry. If you enabled this API recently, wait a few  │
│   minutes for the action to propagate to our systems and retry.

---

> /about
# paste output here
RAW_BUFFERClick to expand / collapse

What happened?

AI Pro User, use Sign in with Google, until 5 days ago, it was ok, but now it's Fail to sign in.

 Failed to sign in. Message: Cloud Code Private API has not been used in project 714329362445 before or it is disabled. Enable it by visiting                       │
│   https://console.developers.google.com/apis/api/cloudcode-pa.googleapis.com/overview?project=714329362445 then retry. If you enabled this API recently, wait a few  │
│   minutes for the action to propagate to our systems and retry.

happens since 0.37.0

What did you expect to happen?

Should be able to login and start using gemini-cli

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here
</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

Enable the Cloud Code Private API in the Google Cloud Console for project 714329362445 to resolve the sign-in issue.

Guidance

Example

No code snippet is necessary for this issue, as it involves a configuration change in the Google Cloud Console.

Notes

The issue may be specific to the gemini-cli version 0.37.0, but the provided error message suggests a configuration issue rather than a version-specific problem.

Recommendation

Apply the workaround by enabling the Cloud Code Private API, as this is a direct solution to the error message provided.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING