Skip to content

google-gemini-cli: gemini-3.1-pro-preview rejected as Unknown model (CLI supports it) #26524

@vannakem2025-png

Description

@vannakem2025-png

Summary

OpenClaw rejects google-gemini-cli/gemini-3.1-pro-preview as an unknown model, even though Gemini CLI OAuth can select and run that model successfully on the same machine/account.

Environment

  • OpenClaw: 2026.2.24
  • Gateway runtime observed earlier in status: 2026.2.23 (after updates, still latest stable line)
  • Provider path: google-gemini-cli (OAuth profile)
  • Host: macOS

What works

  • Direct Gemini CLI (gemini) can use gemini-3.1-pro-preview.
  • In CLI model picker, the model appears and can be selected, and prompts run successfully.

What fails

When an OpenClaw agent model is set to:

  • google-gemini-cli/gemini-3.1-pro-preview

OpenClaw fails before reply with:

  • Unknown model: google-gemini-cli/gemini-3.1-pro-preview
  • FailoverError: Unknown model: google-gemini-cli/gemini-3.1-pro-preview

Repro

  1. Configure an agent model primary as google-gemini-cli/gemini-3.1-pro-preview.
  2. Send a message to that agent.
  3. Observe immediate failure and unknown model error.

Expected behavior

If Gemini CLI OAuth supports and can run gemini-3.1-pro-preview, OpenClaw should accept that model id for google-gemini-cli/* and route normally.

Temporary workaround

Use:

  • google-gemini-cli/gemini-3-pro-preview (primary)
  • google-gemini-cli/gemini-3-flash-preview (fallback)

Request

Please update OpenClaw's google-gemini-cli model registry/validation to include gemini-3.1-pro-preview (and ideally keep this list synchronized with Gemini CLI availability to avoid lag).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions