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
disabled_providers config for Bedrock ignored when AWS credentials available via environment variables #4407
When using aws-vault (or any other tool that sets AWS credentials via environment variables like AWS_ACCESS_KEY_ID, AWS_SESSION_TOKEN, etc.), the Bedrock provider is loaded and its models appear in /models, even though bedrock is explicitly listed in the disabled_providers configuration.
The disabled_providers option accepts an array of provider IDs. When a provider is disabled:
It won't be loaded even if environment variables are set.
It won't be loaded even if API keys are configured through opencode auth login.
The provider's models won't appear in the model selection list.
Bedrock models should NOT appear in the model selection when bedrock is in disabled_providers, regardless of AWS credentials being available.
Actual Behavior
When AWS credentials are present in the environment (e.g., when logged in with aws-vault exec my-profile -- opencode), Bedrock models appear in /models despite the configuration.
OpenCode version
1.0.68
Steps to reproduce
Add bedrock to disabled_providers in ~/.config/opencode/opencode.json:
Hey @jvdmeulen92 I think the actual provider id is amazon-bedrock not just bedrock. Could you try that? Ill see if I can replicate the issue in the meantime.
Activity
github-actions commentedon Nov 17, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
OpeOginni commentedon Nov 17, 2025
Hey @jvdmeulen92 I think the actual provider id is
amazon-bedrocknot justbedrock. Could you try that? Ill see if I can replicate the issue in the meantime.jvdmeulen92 commentedon Nov 17, 2025
Thanks for responding! Well, using
bedrockwithout AWS env vars set, the Bedrock models stay nicely hidden.rekram1-node commentedon Nov 17, 2025
@jvdmeulen92 is this resolved then?
Btw you can run
opencode modelsto see the "provider ids" in this case amazon-bedrockjvdmeulen92 commentedon Nov 17, 2025
Works like a charm, thank you both!