Repository navigation
feat: add Gemini API key onboarding (AI-assisted) - #489
jonasjancarik wants to merge 0 commit into
Conversation
|
Merged locally with the following approach:
Commit: 1674a1ac Changes span:
Thanks @jonasjancarik! |
|
@codex review |
There was a problem hiding this comment.
Pull request overview
This PR adds Gemini API key authentication support to the Clawdbot CLI, providing an additional authentication method for users of Google's Gemini models. The implementation follows the existing pattern established by the Anthropic API key authentication flow.
Key Changes:
- Added
gemini-api-keyas a new authentication choice alongside existing options - Implemented credential storage using the
google:defaultprofile ID with the google provider - Updated CLI flags and documentation to include the new Gemini API key option
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/commands/onboard-types.ts | Added gemini-api-key to AuthChoice type and geminiApiKey to OnboardOptions |
| src/commands/onboard-non-interactive.ts | Implemented non-interactive Gemini API key handling with validation and profile storage |
| src/commands/onboard-auth.ts | Created setGeminiApiKey function mirroring the Anthropic implementation pattern |
| src/commands/configure.ts | Added interactive Gemini API key prompt in the configure flow |
| src/commands/auth-choice.ts | Implemented Gemini API key handling in the general auth choice flow |
| src/commands/auth-choice-options.ts | Added "Google Gemini API key" option to the auth choice menu |
| src/cli/program.ts | Added --gemini-api-key CLI flag and updated --auth-choice documentation |
| docs/start/wizard.md | Added Gemini non-interactive onboarding example |
| docs/gateway/troubleshooting.md | Fixed HTML tag syntax (changed <br> to <br />) in table |
| docs/cli/index.md | Updated CLI option documentation to include Gemini flags |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
a247c2b to
e1789ba
Compare
|
Landed on main via:\n- 302d51f (rebased PR)\n- e1789ba (Gemini default model + tests + changelog) — thanks @jonasjancarik\n\nTests: pnpm lint ✅, pnpm build ✅, pnpm test ❌ (src/providers/google-shared.test.ts: 8 failures). |
Summary
Testing
AI-assisted