Skip to content

OpenRouter unauthorized requests to Gemini models #37354

Description

@paul-phoenix

Description

Opencode always first requests Gemini models without authorization; however, at that moment, a different model was selected from the OpenRouter provider. Then the correct model request continues.
How can this action be disabled?

Unauthorized requests from:
Nano Banana 2 (Gemini 3.1 Flash Image)
Gemini 3.5 Flash

Plugins

none

OpenCode version

1.18.3

Steps to reproduce

connect to OpenRouter provider
submit something in the opencode terminal

Screenshot and/or share link

Image

Operating System

Ubuntu

Terminal

Ptyxis

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions