gemini-cli - 💡(How to fix) Fix GeminiCLI.com Feedback: [ISSUE] Unable to start with new auth login security [2 comments, 1 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#25447Fetched 2026-04-16 07:06:20
View on GitHub
Comments
2
Participants
1
Timeline
10
Reactions
0
Author
Participants
Timeline (top)
labeled ×5commented ×2unlabeled ×2cross-referenced ×1

Error Message

Trying to start as a new user with auth login causes API Error: Generator not initialized ✕ [API Error: Content generator not initialized] ℹ This request failed. Press F12 for diagnostics, or run /settings and change "Error Verbosity" to full for full details. npm warn deprecated [email protected]: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.

RAW_BUFFERClick to expand / collapse

URL of the page with the issue

https://geminicli.com/

What is the problem?

Trying to start as a new user with auth login causes API Error: Generator not initialized

  1. Be specific for the best results

ℹ Positional arguments now default to interactive mode. To run in non-interactive mode, use the --prompt (-p) flag. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

auth login
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ✕ [API Error: Content generator not initialized]

ℹ This request failed. Press F12 for diagnostics, or run /settings and change "Error Verbosity" to full for full details.

╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ Enter Gemini API Key │ │ │ │ Please enter your Gemini API key. It will be securely stored in your system keychain. │ │ You can get an API key from https://aistudio.google.com/app/apikey

<img width="1049" height="755" alt="Image" src="https://github.com/user-attachments/assets/593ee703-2efe-40c3-8eed-7c408cd0b911" />

What did you expect to happen?

Start using gemini cli.

Additional context

Gemini CLI v0.38.0

Installed via npm -g command, with nvm installed in ~/.nvm

lparkki@lentoparkki:~$ which npm /home/lparkki/.nvm/versions/node/v25.8.2/bin/npm lparkki@lentoparkki:~$ npm install -g @google/gemini-cli npm warn deprecated [email protected]: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.

added 42 packages in 4s

9 packages are looking for funding run npm fund for details lparkki@lentoparkki:~

extent analysis

TL;DR

The issue is likely due to the Gemini CLI not being properly initialized, and running the auth login command with the --prompt flag may resolve the issue.

Guidance

  • The error message "API Error: Generator not initialized" suggests that the Gemini CLI is not properly configured or initialized.
  • Try running the auth login command with the --prompt flag, like this: auth login --prompt, to see if it resolves the issue.
  • Verify that the Gemini API key is correctly entered and stored in the system keychain.
  • Check the diagnostics output by pressing F12 or running the /settings command and changing the "Error Verbosity" to full for more detailed error information.

Example

No code snippet is provided as it is not necessary for this issue.

Notes

The issue may be related to the deprecated prebuild-install package, but it is not clear if this is the root cause. The user is using Gemini CLI v0.38.0, which may have known issues or configuration requirements that are not met.

Recommendation

Apply the workaround by running the auth login command with the --prompt flag, as this may resolve the issue without requiring any additional configuration or upgrades.

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