ANTHROPIC_BEDROCK_REGION_PREFIX

Updated by

ANTHROPIC_BEDROCK_REGION_PREFIX is a Claude Code environment variable: Tells Bedrock to prefer a specific cross-region inference-profile prefix over the one derived from AWS_REGION. Claude Code is explicit that this is "a preference, not a residency guarantee," and warns when it is applied without an availability check or when a model resolves to a different prefix. Its release history is not tracked here. It is listed in the official reference.

StatusPresent in v2.1.332
CategoryCloud providers
Official docsListed

How to set it

For one session, export it in the shell that starts Claude Code:

export ANTHROPIC_BEDROCK_REGION_PREFIX=<value>
claude

To apply it to every session, add it to the env object of a settings file:

// ~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BEDROCK_REGION_PREFIX": "<value>"
  }
}

Release notes that mention it

Related variables

Frequently asked questions

What does ANTHROPIC_BEDROCK_REGION_PREFIX do?

Tells Bedrock to prefer a specific cross-region inference-profile prefix over the one derived from AWS_REGION. Claude Code is explicit that this is "a preference, not a residency guarantee," and warns when it is applied without an availability check or when a model resolves to a different prefix.

Which Claude Code version has ANTHROPIC_BEDROCK_REGION_PREFIX?

Its release history is not tracked here.

How do I set ANTHROPIC_BEDROCK_REGION_PREFIX?

Export it before starting Claude Code (export ANTHROPIC_BEDROCK_REGION_PREFIX=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.

All variables, searchable: Claude Code environment variables.