Skip to content

Cannot specify OpenRouter Exacto model through command line #3385

Closed

Description

@zwx00

Description

If I put the following into my opencode.json

{
    "$schema": "https://opencode.ai/config.json",
    "model": "openrouter/z-ai/glm-4.6:exacto"
}

Then run opencode tui, it connects to the correct model (as long as the OpenRouter API key is set).

If I run it as opencode run "Say hi" --model "openrouter/z-ai/glm-4.6:exacto" however, I get:

ProviderModelNotFoundError: ProviderModelNotFoundError
 data: {
  providerID: "openrouter",
  modelID: "z-ai/glm-4.6:exacto",
},

      at getModel (src/provider/provider.ts:468:6)
      at processTicksAndRejections (native:7:39)

OpenCode version

0.15.14

Steps to reproduce

  1. Authenticate against OpenRouter with an API key
  2. Try passing openrouter/z-ai/glm-4.6:exacto as the model through the run cli

Screenshot and/or share link

No response

Operating System

MacOS Sequoia 15.5

Terminal

Terminal 2.14

Activity

  1. github-actions commented on Oct 23, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 23, 2025

    @rekram1-node
    Contributor

    @zwx00 did you define this model in your opencode.json? because it isn't in the default model list

    If you do this it should work
    ... ...

    Edit: nvm i updated models.dev so u dont need this^^

  3. self-assigned this
    on Oct 23, 2025
  4. rekram1-node commented on Oct 23, 2025

    @rekram1-node
    Contributor

    I just updated models.dev so you shouldn't have to specify exacto models manually anymore

    If you do rm ~/.cache/opencode/models.json and restart opencode you should see them pop up as options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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