Skip to content

feat: add Gemini API key onboarding (AI-assisted) - #489

Closed
jonasjancarik wants to merge 0 commit into
openclaw:mainfrom
jonasjancarik:feat/gemini-api-key-configure
Closed

jonasjancarik wants to merge 0 commit into
openclaw:mainfrom
jonasjancarik:feat/gemini-api-key-configure

Conversation

@jonasjancarik

@jonasjancarik jonasjancarik commented Jan 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add Gemini API key auth choice for configure/onboard/agents flows
  • wire non-interactive flag + auth profile storage for google provider
  • document new auth choice and fix Mint parse in troubleshooting doc

Testing

  • lightly tested: pnpm lint, pnpm build, pnpm test, pnpm docs:build. Also tested by disabling other models and running a new session.

AI-assisted

  • AI-assisted (Codex)
  • I understand these changes: they add a Gemini API key auth option, store google auth profiles, and document the new CLI flags.

@adolago

adolago commented Jan 8, 2026

Copy link
Copy Markdown

Merged locally with the following approach:

  • Created temp branch from main
  • Resolved conflicts to combine Gemini API key support with existing MiniMax support (both now available)
  • Fixed pre-existing broken import in pi-tools.ts (zee-tools → clawdbot-tools)
  • Fixed legacy type name in provider-capabilities.ts (ClawdbotConfig → ZeeConfig)
  • Added changelog entry

Commit: 1674a1ac

Changes span:

  • src/commands/onboard-types.ts - Added gemini-api-key to AuthChoice + geminiApiKey to OnboardOptions
  • src/commands/onboard-auth.ts - Added setGeminiApiKey() function
  • src/commands/auth-choice.ts - Added handler for gemini-api-key auth choice
  • src/commands/configure.ts - Added interactive flow for Gemini API key
  • src/commands/onboard-non-interactive.ts - Added non-interactive support
  • src/cli/program.ts - Added --gemini-api-key CLI option
  • docs/cli/index.md - Documented new option
  • docs/start/wizard.md - Added to wizard docs

Thanks @jonasjancarik!

@steipete

steipete commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

@codex review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-key as a new authentication choice alongside existing options
  • Implemented credential storage using the google:default profile 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.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Failed to set up container
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@steipete

steipete commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

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).

muneebhashone pushed a commit to muneebhashone/clawdbot that referenced this pull request Aug 25, 2026
zeekay pushed a commit to Dream-AI-4444/bot that referenced this pull request Sep 11, 2026

This branch was successfully deployed

1 active and 1 inactive deployments
staging - docs — e1789ba9 Deployed Jan 9, 2026 by mintlify[bot]
github-pages — e1789ba9 Deployed Jan 9, 2026 by steipete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants