google-gemini / google-gemini/gemini-cli
Where is oauth authentication?
- Dominant language
- TypeScript
- Stars
- 107k
- Forks
- 14.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 45
Description
If I run "gemini" from cli it should ask me the oauth authorization!
Instead this happens:
```
# npm install -g @google/gemini-cli
# gemini
Please set an Auth method in your /root/.gemini/settings.json or specify one of the following environment variables before running: GEMINI_API_KEY, GOOGLE_GENAI_USE_VERTEXAI, GOOGLE_GENAI_USE_GCA
```
I don't want to use the api key. I want to use Oauth2 as before.
Contributor guide
Research direction
Start by tracing the CLI authentication configuration that produces the settings.json and environment-variable message. Compare the current flow with the OAuth2 behavior described as previously available, then verify that running the installed gemini command prompts for OAuth authorization without requiring an API key.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100