Amazon bedrock support in Agent definition file #6932

Open
opened 2026-02-16 18:05:38 -05:00 by yindo · 1 comment
Owner

Originally created by @DrorSegev on GitHub (Jan 20, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When defining and agent file and using bedrock (for example)
description: Core agent for ....
mode: primary
model: amazon-bedrock/anthropic.claude-opus-4-20250514-v1:0
you are getting model not found error
Everything works fine with other providers.
Bedrock is connected and defined in Auth file by key and I can use it if selected manually using /model command.

Plugins

None

OpenCode version

1.1.26

Steps to reproduce

  1. Connect AWS Bedrock provider. switch model to one of its models and check it works
  2. Crete Agent file in .opencode/agent dir and define the model to be amazon-bedrock/anthropic.claude-opus-4-20250514-v1:0
  3. run opencode and tab to the new agent.
  4. you will get the connection error

Screenshot and/or share link

No response

Operating System

WIn11

Terminal

No response

Originally created by @DrorSegev on GitHub (Jan 20, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When defining and agent file and using bedrock (for example) description: Core agent for .... mode: primary model: amazon-bedrock/anthropic.claude-opus-4-20250514-v1:0 you are getting model not found error Everything works fine with other providers. Bedrock is connected and defined in Auth file by key and I can use it if selected manually using /model command. ### Plugins None ### OpenCode version 1.1.26 ### Steps to reproduce 1) Connect AWS Bedrock provider. switch model to one of its models and check it works 2) Crete Agent file in .opencode/agent dir and define the model to be amazon-bedrock/anthropic.claude-opus-4-20250514-v1:0 3) run opencode and tab to the new agent. 4) you will get the connection error ### Screenshot and/or share link _No response_ ### Operating System WIn11 ### Terminal _No response_
yindo added the windowsbug labels 2026-02-16 18:05:38 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

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

  • #9392: Amazon Bedrock model in agent file - Same issue where Bedrock models work manually but fail in agent definition files with model not found error
  • #8896: Provider/model parser issue affecting agent model resolution - Related issue with model identifier parsing

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

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #9392: Amazon Bedrock model in agent file - Same issue where Bedrock models work manually but fail in agent definition files with model not found error - #8896: Provider/model parser issue affecting agent model resolution - Related issue with model identifier parsing Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6932