mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 15:30:39 +00:00
* docs: add account-risk caution to Google OAuth provider docs * docs(plugin): add Gemini CLI account safety caution * CLI: add risk hint for Gemini CLI auth choice * Onboarding: require confirmation for Gemini CLI OAuth * Tests: cover Gemini CLI OAuth risk confirmation flow
42 lines
1.1 KiB
Markdown
42 lines
1.1 KiB
Markdown
# Google Gemini CLI Auth (OpenClaw plugin)
|
|
|
|
OAuth provider plugin for **Gemini CLI** (Google Code Assist).
|
|
|
|
## Account safety caution
|
|
|
|
- This plugin is an unofficial integration and is not endorsed by Google.
|
|
- Some users have reported account restrictions or suspensions after using third-party Gemini CLI and Antigravity OAuth clients.
|
|
- Use caution, review the applicable Google terms, and avoid using a mission-critical account.
|
|
|
|
## Enable
|
|
|
|
Bundled plugins are disabled by default. Enable this one:
|
|
|
|
```bash
|
|
openclaw plugins enable google-gemini-cli-auth
|
|
```
|
|
|
|
Restart the Gateway after enabling.
|
|
|
|
## Authenticate
|
|
|
|
```bash
|
|
openclaw models auth login --provider google-gemini-cli --set-default
|
|
```
|
|
|
|
## Requirements
|
|
|
|
Requires the Gemini CLI to be installed (credentials are extracted automatically):
|
|
|
|
```bash
|
|
brew install gemini-cli
|
|
# or: npm install -g @google/gemini-cli
|
|
```
|
|
|
|
## Env vars (optional)
|
|
|
|
Override auto-detected credentials with:
|
|
|
|
- `OPENCLAW_GEMINI_OAUTH_CLIENT_ID` / `GEMINI_CLI_OAUTH_CLIENT_ID`
|
|
- `OPENCLAW_GEMINI_OAUTH_CLIENT_SECRET` / `GEMINI_CLI_OAUTH_CLIENT_SECRET`
|