You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Opus 4.5 in AWS Bedrock "undefined: The provided model identifier is invalid." #4784
When selecting Opus 4.5 in bedrock I consistently get undefined: The provided model identifier is invalid., I also tried to pass with --model, same behavior.
I ran into this when selecting the European Claude Opus 4.6 model from OpenCode’s /models list with Amazon Bedrock.
The model shown/needed in Bedrock was:
eu.anthropic.claude-opus-4-6-v1
but selecting it directly from the OpenCode model picker failed with:
undefined: The provided model identifier is invalid.
The workaround that fixed it was to define the model explicitly in the OpenCode config (~/.config/opencode/opencode.jsonc) using a custom alias, and map that alias to the exact Bedrock model identifier:
Activity
github-actions commentedon Nov 26, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Nov 26, 2025
@acastro2 upgrade to latest! I think it is fixed
opencode upgrade 1.0.114
jluisrojas commentedon Nov 26, 2025
I am still getting the error on 1.0.114 @rekram1-node
rekram1-node commentedon Nov 26, 2025
@jluisrojas use the global variant
rekram1-node commentedon Nov 26, 2025
Claude Opus 4.5 (Global)
jluisrojas commentedon Nov 26, 2025
Can confirm that "Claude Opus 4.5 (Global)" is working for me. Thanks @rekram1-node
rekram1-node commentedon Nov 26, 2025
removed the non global one: anomalyco/models.dev#440
it'll sync to ur cache at some point today
acastro2 commentedon Nov 26, 2025
You absolutely rock
ArturLinnik commentedon May 6, 2026
I ran into this when selecting the European Claude Opus 4.6 model from OpenCode’s
/modelslist with Amazon Bedrock.The model shown/needed in Bedrock was:
but selecting it directly from the OpenCode model picker failed with:
The workaround that fixed it was to define the model explicitly in the OpenCode config (
~/.config/opencode/opencode.jsonc) using a custom alias, and map that alias to the exact Bedrock model identifier:{ "$schema": "https://opencode.ai/config.json", "model": "amazon-bedrock/claude-opus-4-6-eu", "provider": { "amazon-bedrock": { "options": { "region": "eu-west-1" }, "models": { "claude-opus-4-6-eu": { "id": "eu.anthropic.claude-opus-4-6-v1", "name": "Claude Opus 4.6 EU" } } } } }