Skip to content

Add gemini-3.1-pro-preview to google-gemini-cli provider model catalog #21176

@ericsr

Description

@ericsr

Summary

gemini-3.1-pro-preview launched today (Feb 19, 2026) and is available via the Gemini CLI (gemini -m gemini-3.1-pro-preview), but the google-gemini-cli provider in OpenClaw rejects it with Unknown model: google-gemini-cli/gemini-3.1-pro-preview.

Steps to Reproduce

  1. Set an agent model to google-gemini-cli/gemini-3.1-pro-preview
  2. Send a message to that agent
  3. Error: Unknown model: google-gemini-cli/gemini-3.1-pro-preview

Expected Behavior

The model should be recognized and routed to the Gemini CLI, same as gemini-3-pro-preview.

Environment

  • OpenClaw: 2026.2.19-2
  • OS: macOS (arm64)
  • The standalone Gemini CLI works fine: gemini -m gemini-3.1-pro-preview "hello" responds successfully.

Notes

The model catalog appears hardcoded in the gateway binary. Adding the model via models.json (per-agent registry) or models.providers in openclaw.json did not resolve the issue — the provider-level validation rejects the ID before it reaches the CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions