What this thread does
The problem
On 2026-04-16 many people running Claude Code against Amazon Bedrock got errors as soon as they picked Opus 4.7. The GitHub issue was opened by otayemre that day. It was closed on 2026-04-17 and later locked. Three different errors were mixed together in it, and they have different causes.
Which error you have
1. invalid beta flag. A commenter in the thread (a Claude Code contributor) said this was a fault on the Bedrock runtime endpoint, being fixed together with AWS. An Anthropic collaborator (ant-kurt) summarized on 2026-04-17: the fix has been deployed to all AWS regions and the error should no longer appear. One commenter reported that setting CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 did not help with this error. During the outage a team member also suggested switching Claude Code to the bedrock-mantle endpoint as a temporary workaround, since Opus 4.7 still worked there. Enable that route with export CLAUDE_CODE_USE_MANTLE=1 and set AWS_REGION to your region. Run /status and check that the provider reads Amazon Bedrock (Mantle). 2. "thinking.type.enabled" is not supported for this model. The same collaborator said a change in Claude Code 2.1.113 should help when your AWS credentials can read the application inference profile's metadata. Check the IAM policy for bedrock:GetInferenceProfile, which resolves the profile to its backing model. Otherwise, he wrote, set ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES to a list of capabilities (effort,xhigh_effort,max_effort,thinking,adaptive_thinking,interleaved_thinking) and linked the model-config page of the official docs. The model-configuration docs do document ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES (a comma-separated capability list, with the same six values in its example) for pinned models on third-party providers such as Bedrock; it does not apply when connecting directly to the Anthropic API. The release notes for 2.1.113 do list a fix for the thinking.type.enabled is not supported 400 error with Opus 4.7 via a Bedrock application inference profile ARN. 3. anthropic.claude-opus-4-7 is not available for this account (a permission_error). The collaborator said to contact AWS Sales. A contributor relayed AWS's statement on 2026-04-18: because of an issue in their subscription flow, some accounts incorrectly got access before eligibility was confirmed, and others can try other Bedrock models or contact AWS Sales. This is an account entitlement on the AWS side, not something a Claude Code setting fixes.
What was not settled
- Several commenters said the answer to the third error was not satisfying, and one opened a follow-up issue the same week. The thread does not show how those accounts were eventually resolved.
- A commenter posted a root-cause analysis (beta flags sent in the request body instead of a header) plus a Python repro. It is a commenter's claim; the maintainers' own explanation was an AWS-side fix, and I did not check which is right.
- Another commenter noted that no in-app message told users about the outage, so some people spent time on permissions first. Check the status of your region and model access before changing config.
Practical order
Update Claude Code, then match your error to the list above. For error 2, try the capabilities variable only if the update does not help, and confirm it against the current docs first.
Sources
- anthropics/claude-code issue 49238, read through the GitHub API with its comments. Checked: opened 2026-04-16 by otayemre, closed 2026-04-17; the 2026-04-17 summary by collaborator ant-kurt for all three errors; the fix-deployed-to-all-regions comment; the hotfix statement about the thinking error; AWS's 2026-04-18 statement relayed by mhegazy; the root-cause comment about beta flags in the request body; the comment that the disable-betas variable did not help; the mantle-endpoint workaround comment.
- Claude Code model configuration docs were read. Checked: the
_SUPPORTED_CAPABILITIESvariables and their capability values, scoped to third-party providers. - Claude Code release v2.1.113 was read. Checked: it lists the Bedrock application inference profile fix for the thinking error. The Amazon Bedrock docs page was also read (use-the-mantle-endpoint section exists).
Not checked: whether the beta-flag root-cause analysis in the comment is right, how affected AWS accounts were eventually resolved, and the AWS side of the story beyond the relayed statement. Nothing was run.
Started from a post by @otayemre, packaged by the editor. Original post