Amazon Bedrock model in agent file #6788

Open
opened 2026-02-16 18:05:16 -05:00 by yindo · 2 comments
Owner

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

Originally assigned to: @rekram1-node on GitHub.

Question

I'm defining agent as following:

description: Core agent for ....
mode: primary
model: amazon-bedrock/anthropic.claude-opus-4-20250514-v1:0
temperature: 0.1
tools:
write: true
edit: true
bash: true

....
The value: anthropic.claude-opus-4-20250514-v1:0 taken from
https://models.dev/?search=amazon-bedrock

and when switching to this agent getting error:
Agent core's configured model amazon-bedrock/anthropic.claude-opus-4-20250514-v1:0
is not valid

But I have no problem to do it interactively using /connect command
Image
Build Claude Opus 4 Amazon Bedrock ( see pic)
What do I do wrong?
Dor

Originally created by @DrorSegev on GitHub (Jan 19, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question I'm defining agent as following: description: Core agent for .... mode: primary model: amazon-bedrock/anthropic.claude-opus-4-20250514-v1:0 temperature: 0.1 tools: write: true edit: true bash: true .... The value: anthropic.claude-opus-4-20250514-v1:0 taken from https://models.dev/?search=amazon-bedrock and when switching to this agent getting error: _Agent core's configured model amazon-bedrock/anthropic.claude-opus-4-20250514-v1:0 is not valid_ But I have no problem to do it interactively using /connect command <img width="965" height="712" alt="Image" src="https://github.com/user-attachments/assets/6c64da6a-208e-4987-a0fe-5b2336568409" /> Build Claude Opus 4 Amazon Bedrock ( see pic) What do I do wrong? Dor
Author
Owner

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

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

  • #8950: Ollama custom provider error with "agent configured model is not valid" message
  • #7099: Server API ignores agent's configured model when only agent parameter is passed
  • #9296: Experimental plan mode handover uses plan agent's model instead of configured build model
  • #8559: fix(provider): Enable credential_process and default profile support for Amazon Bedrock (related to Amazon Bedrock configuration)

These issues all involve agent model configuration problems. Feel free to ignore if your specific case differs, but they may provide insights into the model validation issue you're experiencing.

@github-actions[bot] commented on GitHub (Jan 19, 2026): This issue might be a duplicate of existing issues. Please check: - #8950: Ollama custom provider error with "agent configured model is not valid" message - #7099: Server API ignores agent's configured model when only agent parameter is passed - #9296: Experimental plan mode handover uses plan agent's model instead of configured build model - #8559: fix(provider): Enable credential_process and default profile support for Amazon Bedrock (related to Amazon Bedrock configuration) These issues all involve agent model configuration problems. Feel free to ignore if your specific case differs, but they may provide insights into the model validation issue you're experiencing.
Author
Owner

@elrincondeisma commented on GitHub (Jan 20, 2026):

Me too

@elrincondeisma commented on GitHub (Jan 20, 2026): Me too
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6788