Skip to content

[OpenRouter] "openrouter/auto" is set as the default model and unexpected request is sent using this model #49933

Description

@limingchina

Reproduction steps

[Prerequisit]: OpenRouter key is set and it can be used by Zed Agent.

  1. Start zed
  2. In the AI assistant chat panel, select a free OpenRouter model, e.g. Stepfun 3.5 Flash( free )
  3. Type some test message like "hi"
  4. Check the OpenRouter activity log. It will show two requests. One is from the selected model "Stepfun 3.5 Flash( free )" and the other is from the "openrouter/auto" model. In my case, I set it to "Mistral Small 3.2 24B", which is specified using a filter setting at https://openrouter.ai/settings/routing. If I don't set this, it will choose "Claude Opus 4.6".

Note, this is not sent with every message, it happens at the beginning. However, it has small amount of unexpected cost on my openrouter credit.

Extra info: The "openrouter/auto" seems to be used In the "Model"'s constructor.

"openrouter/auto",

Current vs. Expected behavior

Current behavior: Unexpected request is sent using "openrouter/auto" model shown as the screenshot:
Image

Expected behavior: No request should be sent using "openrouter/auto" model

Zed version and system specs

Zed: v0.224.11+stable.175.e4cabf49a18ed03969d84ee15643e9ec81857e97 (Zed)
OS: macOS 26.3
Memory: 18 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

  • Provider: OpenRouter
  • Model name: "openrouter/auto"
  • Mode: Agent pannel

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ai/openrouterAI feedback for Openrouterreach:some usersBugs that happen for less than one-third of users, special configurations, rare circumstances, etcseverity:S2Average run-of-the-mill bugs; a feature is broken but only partiallystate:needs infoIssue needs more information from the user before we can do something with itstate:needs reproNeeds reproduction steps and/or someone to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions