### 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
github-actions commentedon Apr 16, 2026
This issue might be a duplicate of existing issues. Please check:
--modelflag is reported as not valid/not found in OpenRouteralexgleason commentedon Apr 16, 2026
As a workaround, I edited
~/.config/opencode/opencode.jsonand 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.
github-actions commentedon Jul 5, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.