Skip to content

[Bug]: openclaw config doesn't see gemini-cli installation #9831

@aelazhari

Description

@aelazhari

Summary

while using gemini cli oauth i encountered the issue where openclaw was saying it couldn't find gemini-cli even if it was installed

Steps to reproduce

  1. install openclaw latest version
  2. install gemini cli
  3. try to connect using gemini oauth

Expected behavior

openclaw should have redirected me to gemini cli oauth

Actual behavior

it complained about not finding it

Environment

  • Clawdbot version: 2026.2.3-1
  • OS: w11
  • Install method (pnpm/npx/docker/etc): main script

Logs or screenshots

◇ Model/auth provider
│ Google

◇ Google auth method
│ Google Gemini CLI OAuth


◇ Gemini CLI OAuth ───────────────────────────────────────────────╮
│ │
│ Browser will open for Google authentication. │
│ Sign in with your Google account for Gemini CLI access. │
│ The callback will be captured automatically on localhost:8085. │
│ │
├──────────────────────────────────────────────────────────────────╯
◇ Gemini CLI OAuth failed

◇ OAuth help ────────────────────────────────────────────────────────────╮
│ │
│ Trouble with OAuth? Ensure your Google account has Gemini CLI access. │
│ │
├─────────────────────────────────────────────────────────────────────────╯
[openclaw] Failed to start CLI: Error: Gemini CLI not found. Install it first: brew install gemini-cli (or npm install -g @google/gemini-cli), or set GEMINI_CLI_OAUTH_CLIENT_ID.
at resolveOAuthClientConfig (C:\Users\User\AppData\Roaming\npm\node_modules\openclaw\extensions\google-gemini-cli-auth\oauth.ts:175:9)
at buildAuthUrl (C:\Users\User\AppData\Roaming\npm\node_modules\openclaw\extensions\google-gemini-cli-auth\oauth.ts:215:24)
at loginGeminiCliOAuth (C:\Users\User\AppData\Roaming\npm\node_modules\openclaw\extensions\google-gemini-cli-auth\oauth.ts:607:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Object.run (C:/Users/User/AppData/Roaming/npm/node_modules/openclaw/extensions/google-gemini-cli-auth/index.ts:35:28)
at async applyAuthChoicePluginProvider (file:///C:/Users/User/AppData/Roaming/npm/node_modules/openclaw/dist/onboard-skills-C71HDZA9.js:1686:17)
at async applyAuthChoiceGoogleGeminiCli (file:///C:/Users/User/AppData/Roaming/npm/node_modules/openclaw/dist/onboard-skills-C71HDZA9.js:1797:9)
at async applyAuthChoice (file:///C:/Users/User/AppData/Roaming/npm/node_modules/openclaw/dist/onboard-skills-C71HDZA9.js:2308:18)
at async promptAuthConfig (file:///C:/Users/User/AppData/Roaming/npm/node_modules/openclaw/dist/configure-Bk5se-dJ.js:274:37)
at async runConfigureWizard (file:///C:/Users/User/AppData/Roaming/npm/node_modules/openclaw/dist/configure-Bk5se-dJ.js:746:19)
PS C:\Users\User> where gemini
PS C:\Users\User> where.exe gemini
C:\Users\User\AppData\Roaming\npm\gemini
C:\Users\User\AppData\Roaming\npm\gemini.cmd
PS C:\Users\User> node -p "process.env.PATH"
C:\Program Files\OpenLogic\jdk-17.0.17.10-hotspot\bin;C:\Python312\Scripts;C:\Python312;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\NVIDIA Corporation\NVIDIA app\NvDLISR;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files\WireGuard;C:\Program Files\PowerShell\7;C:\Program Files\Git\cmd;C:\Users\User\pathtools\apache-maven-3.9.12\bin;;C:\Program Files\Docker\Docker\resources\bin;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Users\User\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\User.dotnet\tools;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2024.1.4\bin;;C:\Users\User\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Users\User.cache\lm-studio\bin;C:\Users\User\AppData\Local\Microsoft\WindowsApps
PS C:\Users\User> where.exe openclaw
C:\Users\User\AppData\Roaming\npm\openclaw
C:\Users\User\AppData\Roaming\npm\openclaw.cmd
PS C:\Users\User> openclaw config

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions