gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

SSHing and Running Gemini CLI via GEMINI_API_KEY does not work

Open MJjainam opened this issue 4 weeks ago • 2 comments

What happened?

SSH'ed to a Linux VM. The env variable contains GEMINI_API_KEY key val pair, Run Gemini CLI Select GEMINI API KEY login - it asks for API Key (This should not have happened - the cli should have read the env variable and proceeded).

Upon pasting the API key, the cli is stuck.

What did you expect to happen?

  1. The CLI must not ask for Gemini API Key
  2. More importantly, the CLI must not get stuck upon receiving the API key

Client information

Gemini CLI v0.19.1 Linux Ubuntu LTS

Login information

GEMINI_API_KEY

Anything else we need to know?

This is most probably happening due to recent change in how API key is accessed here

MJjainam avatar Dec 04 '25 08:12 MJjainam

Found possible duplicate issues:

  • #13664
  • #12319

If you believe this is not a duplicate, please remove the status/possible-duplicate label.

gemini-cli[bot] avatar Dec 04 '25 08:12 gemini-cli[bot]

related to #12319 but different issue

MJjainam avatar Dec 04 '25 10:12 MJjainam