Skip to content

Can't select Opus 4.7 in OpenRouter #22866

Closed as not planned
Closed as not planned

Description

@alexgleason

Description

Opus 4.7 is available on OpenRouter https://openrouter.ai/anthropic/claude-opus-4.7 but for some reason I can't actually select it when I use /models in OpenCode. When I try to use opencode -m anthropic/claude-opus-4.7 it says "the model is not valid"

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 16, 2026
  2. github-actions commented on Apr 16, 2026

    @github-actions
    Contributor

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

  3. alexgleason commented on Apr 16, 2026

    @alexgleason
    Author

    As a workaround, I edited ~/.config/opencode/opencode.json and added this:

    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "openrouter": {
          "models": {
            "anthropic/claude-opus-4.7": {
              "name": "Claude Opus 4.7",
              "limit": {
                "context": 1000000,
                "output": 128000
              }
            }
          }
        }
      }
    }

    Now I can select Opus 4.7.

  4. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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