Skip to main content

Providers and Gateways

Providers​

The program knows these provider keys: first_party, bedrock, vertex, foundry, anthropic_aws, anthropic_google_cloud, mantle, and gateway. These environment variables choose the provider. When you set several, the order is: gateway, Bedrock, Foundry, Claude Platform on AWS, Google Cloud, Mantle, Vertex.

Env varStatusProvider
CLAUDE_CODE_USE_BEDROCK
Documented: An official docs page names this item.
Amazon Bedrock.
CLAUDE_CODE_USE_VERTEX
Documented: An official docs page names this item.
Google Cloud Agent Platform (Vertex).
CLAUDE_CODE_USE_FOUNDRY
Documented: An official docs page names this item.
Microsoft Foundry.
CLAUDE_CODE_USE_MANTLE
Documented: An official docs page names this item.
The Mantle endpoint of Amazon Bedrock. With Bedrock on, anthropic.* model IDs route to Mantle.
CLAUDE_CODE_USE_ANTHROPIC_AWS
Documented: An official docs page names this item.
Claude Platform on AWS.
CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD
Undocumented: Only the program shows this item. It can change without notice.
Claude Platform on Google Cloud.
CLAUDE_CODE_USE_GATEWAY
Undocumented: Only the program shows this item. It can change without notice.
A host-managed gateway. It needs ANTHROPIC_BASE_URL and a token.

The Anthropic API, anthropic_aws, anthropic_google_cloud, and gateway providers use the first-party names, so the name tables below leave them out.

Endpoint and Region Variables​

Env varStatusProviderEffect
ANTHROPIC_BEDROCK_BASE_URL
Documented: An official docs page names this item.
BedrockOverrides the endpoint URL.
ANTHROPIC_BEDROCK_MANTLE_BASE_URL
Documented: An official docs page names this item.
MantleOverrides the Mantle endpoint. The default is https://bedrock-mantle.<region>.api.aws.
ANTHROPIC_BEDROCK_REGION_PREFIX
Documented: An official docs page names this item.
BedrockCross-region profile prefix that Claude Code tries first.
ANTHROPIC_BEDROCK_SERVICE_TIER
Documented: An official docs page names this item.
BedrockClaude Code sends it in the X-Amzn-Bedrock-Service-Tier header.
ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION
Documented: An official docs page names this item.
Bedrock, MantleRegion of the Haiku-class model.
AWS_REGION, AWS_DEFAULT_REGION, AWS_PROFILE
Documented: An official docs page names this item.
BedrockStandard AWS region and profile. The region order is: AWS_REGION, AWS_DEFAULT_REGION, shared config, us-east-1.
ANTHROPIC_VERTEX_BASE_URL
Documented: An official docs page names this item.
VertexOverrides the endpoint URL.
ANTHROPIC_VERTEX_PROJECT_ID
Documented: An official docs page names this item.
VertexThe GCP project. It is the last choice after GCLOUD_PROJECT and GOOGLE_CLOUD_PROJECT.
ANTHROPIC_FOUNDRY_BASE_URL
Documented: An official docs page names this item.
FoundryThe full base URL of the resource. It wins over the resource name.
ANTHROPIC_FOUNDRY_RESOURCE
Documented: An official docs page names this item.
FoundryThe resource name. It builds https://<resource>.services.ai.azure.com.
ANTHROPIC_AWS_BASE_URL, ANTHROPIC_AWS_WORKSPACE_ID
Documented: An official docs page names this item.
Claude Platform on AWSEndpoint and workspace.
ANTHROPIC_GOOGLE_CLOUD_BASE_URL, _LOCATION, _PROJECT, _WORKSPACE_ID
Undocumented: Only the program shows this item. It can change without notice.
Claude Platform on Google CloudEndpoint, location, project, and workspace (full names start with ANTHROPIC_GOOGLE_CLOUD).
CLAUDE_CODE_SKIP_BEDROCK_AUTH, CLAUDE_CODE_SKIP_VERTEX_AUTH, CLAUDE_CODE_SKIP_FOUNDRY_AUTH, CLAUDE_CODE_SKIP_MANTLE_AUTH, CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH
Documented: An official docs page names this item.
Each providerSkip client-side auth, for a gateway that signs requests itself.
CLAUDE_CODE_SKIP_ANTHROPIC_GOOGLE_CLOUD_AUTH
Undocumented: Only the program shows this item. It can change without notice.
Claude Platform on Google CloudThe same, for that provider.

Provider Names​

Each cell is the model name for that provider. A dash means the provider has none. A row is

Documented: An official docs page names this item.
when a docs page such as Amazon Bedrock or Model Configuration names the model. A row is
Undocumented: Only the program shows this item. It can change without notice.
when only the program has the names.

idStatusfirst_partybedrockvertexfoundrymantle
claude-3-5-haiku
Undocumented: Only the program shows this item. It can change without notice.
claude-3-5-haiku-20241022us.anthropic.claude-3-5-haiku-20241022-v1:0claude-3-5-haiku@20241022claude-3-5-haiku-
claude-haiku-4-5
Documented: An official docs page names this item.
claude-haiku-4-5-20251001us.anthropic.claude-haiku-4-5-20251001-v1:0claude-haiku-4-5@20251001claude-haiku-4-5anthropic.claude-haiku-4-5
claude-haiku-5-5
Documented: An official docs page names this item.
claude-haiku-5-5us.anthropic.claude-haiku-5-5claude-haiku-5-5claude-haiku-5-5anthropic.claude-haiku-5-5
claude-3-5-sonnet
Undocumented: Only the program shows this item. It can change without notice.
claude-3-5-sonnet-20241022us.anthropic.claude-3-5-sonnet-20241022-v2:0claude-3-5-sonnet-v2@20241022claude-3-5-sonnet-
claude-3-7-sonnet
Undocumented: Only the program shows this item. It can change without notice.
claude-3-7-sonnet-20250219us.anthropic.claude-3-7-sonnet-20250219-v1:0claude-3-7-sonnet@20250219claude-3-7-sonnet-
claude-sonnet-4-0
Undocumented: Only the program shows this item. It can change without notice.
claude-sonnet-4-20250514us.anthropic.claude-sonnet-4-20250514-v1:0claude-sonnet-4@20250514claude-sonnet-4-
claude-sonnet-4-5
Documented: An official docs page names this item.
claude-sonnet-4-5-20250929us.anthropic.claude-sonnet-4-5-20250929-v1:0claude-sonnet-4-5@20250929claude-sonnet-4-5-
claude-sonnet-4-6
Documented: An official docs page names this item.
claude-sonnet-4-6us.anthropic.claude-sonnet-4-6claude-sonnet-4-6claude-sonnet-4-6-
claude-sonnet-5
Documented: An official docs page names this item.
claude-sonnet-5us.anthropic.claude-sonnet-5claude-sonnet-5claude-sonnet-5anthropic.claude-sonnet-5
claude-sonnet-5-5
Documented: An official docs page names this item.
claude-sonnet-5-5us.anthropic.claude-sonnet-5-5claude-sonnet-5-5claude-sonnet-5-5anthropic.claude-sonnet-5-5
claude-opus-4-0
Undocumented: Only the program shows this item. It can change without notice.
claude-opus-4-20250514us.anthropic.claude-opus-4-20250514-v1:0claude-opus-4@20250514claude-opus-4-
claude-opus-4-1
Documented: An official docs page names this item.
claude-opus-4-1-20250805us.anthropic.claude-opus-4-1-20250805-v1:0claude-opus-4-1@20250805claude-opus-4-1-
claude-opus-4-5
Documented: An official docs page names this item.
claude-opus-4-5-20251101us.anthropic.claude-opus-4-5-20251101-v1:0claude-opus-4-5@20251101claude-opus-4-5-
claude-opus-4-6
Documented: An official docs page names this item.
claude-opus-4-6us.anthropic.claude-opus-4-6-v1claude-opus-4-6claude-opus-4-6-
claude-opus-4-7
Documented: An official docs page names this item.
claude-opus-4-7us.anthropic.claude-opus-4-7claude-opus-4-7claude-opus-4-7anthropic.claude-opus-4-7
claude-opus-4-8
Documented: An official docs page names this item.
claude-opus-4-8us.anthropic.claude-opus-4-8claude-opus-4-8claude-opus-4-8anthropic.claude-opus-4-8
claude-opus-5
Documented: An official docs page names this item.
claude-opus-5us.anthropic.claude-opus-5claude-opus-5claude-opus-5anthropic.claude-opus-5
claude-opus-5-5
Documented: An official docs page names this item.
claude-opus-5-5us.anthropic.claude-opus-5-5claude-opus-5-5claude-opus-5-5anthropic.claude-opus-5-5
claude-fable-5
Documented: An official docs page names this item.
claude-fable-5us.anthropic.claude-fable-5claude-fable-5claude-fable-5anthropic.claude-fable-5
claude-fable-5-1
Documented: An official docs page names this item.
claude-fable-5-1us.anthropic.claude-fable-5-1claude-fable-5-1claude-fable-5-1anthropic.claude-fable-5-1
claude-mythos-5
Documented: An official docs page names this item.
claude-mythos-5----
claude-mythos-5-1
Undocumented: Only the program shows this item. It can change without notice.
claude-mythos-5-1----

Vertex Region Variables​

Each model has an environment variable that sets its region on Vertex. Environment Variables in the official docs lists them. The Mythos models have none, because they have no Vertex name.

idStatusEnv var
claude-3-5-haiku
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_3_5_HAIKU
claude-haiku-4-5
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_HAIKU_4_5
claude-haiku-5-5
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_HAIKU_5_5
claude-3-5-sonnet
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_3_5_SONNET
claude-3-7-sonnet
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_3_7_SONNET
claude-sonnet-4-0
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_4_0_SONNET
claude-sonnet-4-5
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_4_5_SONNET
claude-sonnet-4-6
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_4_6_SONNET
claude-sonnet-5
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_5_SONNET
claude-sonnet-5-5
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_5_5_SONNET
claude-opus-4-0
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_4_0_OPUS
claude-opus-4-1
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_4_1_OPUS
claude-opus-4-5
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_4_5_OPUS
claude-opus-4-6
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_4_6_OPUS
claude-opus-4-7
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_4_7_OPUS
claude-opus-4-8
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_4_8_OPUS
claude-opus-5
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_5_OPUS
claude-opus-5-5
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_5_5_OPUS
claude-fable-5
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_FABLE_5
claude-fable-5-1
Documented: An official docs page names this item.
VERTEX_REGION_CLAUDE_FABLE_5_1

Gateways​

A gateway is a server between Claude Code and a model API. Set ANTHROPIC_BASE_URL to point at it. That variable changes where requests go, not which model answers. Pin the model IDs the gateway serves with the ANTHROPIC_DEFAULT_*_MODEL variables. Let the picker find them with CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1. A gateway that does not serve claude-fable-5-1 rejects it, so the fable alias falls back to claude-fable-5 on gateways.