Files
openclaw/extensions/google-gemini-cli-auth
alexesipenko f4c35815c5 feat: Add OAuth auto-refresh for Google Antigravity and Gemini CLI
- Add refresh.ts modules for both providers with automatic token refresh logic
- Export refresh functions from main module files
- Follows existing patterns from qwen-portal-auth
- Tokens auto-refresh when expired without manual re-authentication
2026-01-28 05:02:55 +03:00
..
2026-01-19 03:39:25 +00:00

Google Gemini CLI Auth (Clawdbot plugin)

OAuth provider plugin for Gemini CLI (Google Code Assist).

Enable

Bundled plugins are disabled by default. Enable this one:

clawdbot plugins enable google-gemini-cli-auth

Restart the Gateway after enabling.

Authenticate

clawdbot models auth login --provider google-gemini-cli --set-default

Requirements

Requires the Gemini CLI to be installed (credentials are extracted automatically):

brew install gemini-cli
# or: npm install -g @google/gemini-cli

Env vars (optional)

Override auto-detected credentials with:

  • CLAWDBOT_GEMINI_OAUTH_CLIENT_ID / GEMINI_CLI_OAUTH_CLIENT_ID
  • CLAWDBOT_GEMINI_OAUTH_CLIENT_SECRET / GEMINI_CLI_OAUTH_CLIENT_SECRET