Missing AWS Bedrock Models #1947

Closed
opened 2026-02-16 17:33:21 -05:00 by yindo · 9 comments
Owner

Originally created by @FarrukhCyber on GitHub (Oct 3, 2025).

Originally assigned to: @rekram1-node on GitHub.

I'm using AWS_BEARER_TOKEN_BEDROCK to authenticate bedrock and use opencode with it. However doing /models list only a few models and doesn't show models like qwen3 coder and deepseek-v3.1. Please let me know how to access additional models.

Thanks!

PS. I have access to the above mentioned models in bedrock and my region is us-west-2

Originally created by @FarrukhCyber on GitHub (Oct 3, 2025). Originally assigned to: @rekram1-node on GitHub. I'm using AWS_BEARER_TOKEN_BEDROCK to authenticate bedrock and use opencode with it. However doing `/models` list only a few models and doesn't show models like qwen3 coder and deepseek-v3.1. Please let me know how to access additional models. Thanks! PS. I have access to the above mentioned models in bedrock and my region is us-west-2
yindo closed this issue 2026-02-16 17:33:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 3, 2025):

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

  • #1214: feature: filter unsupported models - discusses filtering models that aren't accessible/supported by provider
  • #2456: Lmstudio Models are not listed correctly - similar issue with models not appearing in /models list
  • #467: AWS Bedrock not working on regions outside us-east-1 - related to AWS Bedrock regional model availability

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

@github-actions[bot] commented on GitHub (Oct 3, 2025): This issue might be a duplicate of existing issues. Please check: - #1214: feature: filter unsupported models - discusses filtering models that aren't accessible/supported by provider - #2456: Lmstudio Models are not listed correctly - similar issue with models not appearing in /models list - #467: AWS Bedrock not working on regions outside us-east-1 - related to AWS Bedrock regional model availability Feel free to ignore if none of these address your specific case.
Author
Owner

@FarrukhCyber commented on GitHub (Oct 3, 2025):

These are not relevant in my case because I'm not getting any errors even if I run the following commands:
opencode --model amazon-bedrock/qwen.qwen3-coder-480b-a35b-v1:0 --print-logs

It still shows the previously loaded model (deepseek R1). I have also tried doing rm ~/.cache/opencode/models.json

@FarrukhCyber commented on GitHub (Oct 3, 2025): These are not relevant in my case because I'm not getting any errors even if I run the following commands: `opencode --model amazon-bedrock/qwen.qwen3-coder-480b-a35b-v1:0 --print-logs` It still shows the previously loaded model (deepseek R1). I have also tried doing `rm ~/.cache/opencode/models.json`
Author
Owner

@rekram1-node commented on GitHub (Oct 3, 2025):

@FarrukhCyber I think we need to update models.dev (separate repo) to include these other models i can show you a work around until it is updated tho

@rekram1-node commented on GitHub (Oct 3, 2025): @FarrukhCyber I think we need to update models.dev (separate repo) to include these other models i can show you a work around until it is updated tho
Author
Owner

@FarrukhCyber commented on GitHub (Oct 3, 2025):

yes please. how can I add other models?

@FarrukhCyber commented on GitHub (Oct 3, 2025): yes please. how can I add other models?
Author
Owner

@rekram1-node commented on GitHub (Oct 3, 2025):

@FarrukhCyber

So someone will need to add them here eventually (PRs welcome, otherwise I will try to get to it): https://github.com/sst/models.dev

But in meantime in your global (or local but u prolly want global) opencode.json, add the following (for example):

{
"provider": {
    "amazon-bedrock": {
      "models": {
        "qwen.qwen3-coder-480b-a35b-v1:0": {
          "name": "Qwen3 Coder 480b A35B instruct",
          "limit": {
            "context": 262144,
            "output": 66536,
          },
        },
      },
    },
  },
}

Most of the models already have stats in models.dev just not for the amazon bedrock provider quite yet see: https://models.dev/?search=Qwen3-Coder-480B-A35B-Instruct

You can repeat that^^ for other models as needed but like I said we need to update model list so you dont have to define them yourself

@rekram1-node commented on GitHub (Oct 3, 2025): @FarrukhCyber So someone will need to add them here eventually (PRs welcome, otherwise I will try to get to it): https://github.com/sst/models.dev But in meantime in your global (or local but u prolly want global) opencode.json, add the following (for example): ``` { "provider": { "amazon-bedrock": { "models": { "qwen.qwen3-coder-480b-a35b-v1:0": { "name": "Qwen3 Coder 480b A35B instruct", "limit": { "context": 262144, "output": 66536, }, }, }, }, }, } ``` Most of the models already have stats in models.dev just not for the amazon bedrock provider quite yet see: https://models.dev/?search=Qwen3-Coder-480B-A35B-Instruct You can repeat that^^ for other models as needed but like I said we need to update model list so you dont have to define them yourself
Author
Owner

@FarrukhCyber commented on GitHub (Oct 3, 2025):

Using the provided config results in the following error:
AI_APICallError: undefined: The provided model identifier is invalid.

I will just resort to another model for now. Thank you!

@FarrukhCyber commented on GitHub (Oct 3, 2025): Using the provided config results in the following error: `AI_APICallError: undefined: The provided model identifier is invalid.` I will just resort to another model for now. Thank you!
Author
Owner

@rekram1-node commented on GitHub (Oct 3, 2025):

@FarrukhCyber I made a typo! drop the amazon bedrock / prefix in the model id

@rekram1-node commented on GitHub (Oct 3, 2025): @FarrukhCyber I made a typo! drop the amazon bedrock / prefix in the model id
Author
Owner

@rekram1-node commented on GitHub (Oct 3, 2025):

updated my example^^

@rekram1-node commented on GitHub (Oct 3, 2025): updated my example^^
Author
Owner

@FarrukhCyber commented on GitHub (Oct 3, 2025):

Thank you so much @rekram1-node!
It works now :)

@FarrukhCyber commented on GitHub (Oct 3, 2025): Thank you so much @rekram1-node! It works now :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1947