Skip to content

Error trying to use Claude on AWS Bedrock #243

Closed

Description

@Dizzzmas

Problem

With proper AWS credentials and region set in my env I'm getting this error when prompting:

AI_APICallError: undefined: Invocation of model ID anthropic.claude-sonnet-4-20250514-v1:0 with on-demand throughput isn’t supported. Retry your request with the ID or ARN of an inference profile that contains model
Screenshot 2025-06-20 at 13 43 51

Using Claude models on Bedrock seems to require specifying the region in model ID
Screenshot 2025-06-20 at 13 45 14

Suggested Solution

#241

Detect bedrock + claude being used and append the aws region prefix from env to model ID

Activity

  1. self-assigned this
    on Jun 20, 2025
  2. added a commit that references this issue on Jun 20, 2025
  3. alejandro-angulo commented on Jun 24, 2025

    @alejandro-angulo

    I think this might be resolved. I got it to work by specifying both AWS_PROFILE and AWS_REGION as environment variables.

    (Glad I found this issue because it helped me realize my version of opencode was out-of-date.)

  4. adamdotdevin commented on Jun 25, 2025

    @adamdotdevin
    Member

    yeah, this was fixed in #243, closing

  5. added a commit that references this issue on Jan 4, 2026
    da5899a
  6. added a commit that references this issue on Jun 10, 2026
  7. added a commit that references this issue on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions