AWS Bedrock: Model name is not valid for all explicit Bedrock IDs (Auto works)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

AWS Bedrock is enabled and credentials appear to work (catalog returns Bedrock models; Auto succeeds with BYOK routing). But selecting any explicit Bedrock model ID fails immediately with:AI Model Not Found Model name is not valid: “”

Steps to Reproduce

  1. Open Cursor Settings → Models → enable AWS Bedrock, enter Access Key / Secret / Region.
  2. Confirm models refresh succeeds (Bedrock models appear in the picker; locally we see useBedrock=true, bedrockReturnedModelCount=16).
  3. Create a new Agent chat.
  4. Select an explicit Bedrock ID from the picker (examples below).
  5. Send a short message (ping).

Expected Behavior

Selecting an explicit Bedrock inference-profile / model ID from the picker (or via Add Custom Model) should invoke that model through my AWS Bedrock credentials, as documented in AWS Bedrock | Cursor Docs

Operating System

MacOS

Version Information

Version: 3.28.7 OS: Darwin arm64 (macOS) Channel: stable

For AI issues: which model did you use?

  • us.anthropic.claude-opus-5
  • us.anthropic.claude-opus-5-5
  • us.anthropic.claude-opus-4-8
  • us.anthropic.claude-sonnet-5
  • us.anthropic.claude-opus-4-5-20251101-v1:0

For AI issues: add Request ID with privacy disabled

  • 5f347e25-63b1-45fb-8971-9c28c8c6adbf — failed with Model name is not valid: "us.anthropic.claude-sonnet-5"
  • Happy to provide more request IDs from Opus / dated-profile failures if useful.

Additional Information

  • Cursor plan: Pro+
  • Auth path: Access Key + Secret in IDE (not IAM Role; hasBedrockIamRole=false in logs)

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hi @Leonardo_Physh, it looks like Use Azure OpenAI is switched on in your settings, and that’s what is breaking your Bedrock models. With both toggles on, the Azure settings get sent with the request instead of your AWS keys, so the Bedrock model ID is checked as if it were a Cursor model and rejected.

To fix it:

  1. Open Cursor Settings → Models.
  2. In the Azure OpenAI section, turn off Use Azure OpenAI.
  3. Leave AWS Bedrock on, open a new Agent chat, pick one of your Bedrock models and send ping.

Auto worked because it always runs on Cursor’s own models and never uses your API keys, so it never hit this.

The team is aware that having both toggles on causes this without any warning. If a Bedrock model still fails with Azure off, reply with the new request ID.