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 var | Status | Provider |
|---|---|---|
CLAUDE_ | Documented: An official docs page names this item. | Amazon Bedrock. |
CLAUDE_ | Documented: An official docs page names this item. | Google Cloud Agent Platform (Vertex). |
CLAUDE_ | Documented: An official docs page names this item. | Microsoft Foundry. |
CLAUDE_ | Documented: An official docs page names this item. | The Mantle endpoint of Amazon Bedrock. With Bedrock on, anthropic. model IDs route to Mantle. |
CLAUDE_ | Documented: An official docs page names this item. | Claude Platform on AWS. |
CLAUDE_ | Undocumented: Only the program shows this item. It can change without notice. | Claude Platform on Google Cloud. |
CLAUDE_ | Undocumented: Only the program shows this item. It can change without notice. | A host-managed gateway. It needs ANTHROPIC_ 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 var | Status | Provider | Effect |
|---|---|---|---|
ANTHROPIC_ | Documented: An official docs page names this item. | Bedrock | Overrides the endpoint URL. |
ANTHROPIC_ | Documented: An official docs page names this item. | Mantle | Overrides the Mantle endpoint. The default is https://. |
ANTHROPIC_ | Documented: An official docs page names this item. | Bedrock | Cross-region profile prefix that Claude Code tries first. |
ANTHROPIC_ | Documented: An official docs page names this item. | Bedrock | Claude Code sends it in the X- header. |
ANTHROPIC_ | Documented: An official docs page names this item. | Bedrock, Mantle | Region of the Haiku-class model. |
AWS_, AWS_, AWS_ | Documented: An official docs page names this item. | Bedrock | Standard AWS region and profile. The region order is: AWS_, AWS_, shared config, us-. |
ANTHROPIC_ | Documented: An official docs page names this item. | Vertex | Overrides the endpoint URL. |
ANTHROPIC_ | Documented: An official docs page names this item. | Vertex | The GCP project. It is the last choice after GCLOUD_ and GOOGLE_. |
ANTHROPIC_ | Documented: An official docs page names this item. | Foundry | The full base URL of the resource. It wins over the resource name. |
ANTHROPIC_ | Documented: An official docs page names this item. | Foundry | The resource name. It builds https://. |
ANTHROPIC_, ANTHROPIC_ | Documented: An official docs page names this item. | Claude Platform on AWS | Endpoint and workspace. |
ANTHROPIC_, _, _, _ | Undocumented: Only the program shows this item. It can change without notice. | Claude Platform on Google Cloud | Endpoint, location, project, and workspace (full names start with ANTHROPIC_). |
CLAUDE_, CLAUDE_, CLAUDE_, CLAUDE_, CLAUDE_ | Documented: An official docs page names this item. | Each provider | Skip client-side auth, for a gateway that signs requests itself. |
CLAUDE_ | Undocumented: Only the program shows this item. It can change without notice. | Claude Platform on Google Cloud | The 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
id | Status | first_party | bedrock | vertex | foundry | mantle |
|---|---|---|---|---|---|---|
claude- | Undocumented: Only the program shows this item. It can change without notice. | claude- | us. | claude- | claude- | - |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Undocumented: Only the program shows this item. It can change without notice. | claude- | us. | claude- | claude- | - |
claude- | Undocumented: Only the program shows this item. It can change without notice. | claude- | us. | claude- | claude- | - |
claude- | Undocumented: Only the program shows this item. It can change without notice. | claude- | us. | claude- | claude- | - |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | - |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | - |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Undocumented: Only the program shows this item. It can change without notice. | claude- | us. | claude- | claude- | - |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | - |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | - |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | - |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Documented: An official docs page names this item. | claude- | us. | claude- | claude- | anthropic. |
claude- | Documented: An official docs page names this item. | claude- | - | - | - | - |
claude- | Undocumented: Only the program shows this item. It can change without notice. | claude- | - | - | - | - |
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.
id | Status | Env var |
|---|---|---|
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
claude- | Documented: An official docs page names this item. | VERTEX_ |
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.
Related Pages
- Models and Providers lists the pages of this section and shows an example.