Skip to content
BENIBIX Learn

ANTHROPIC_BASE_URL

AI⌨️ Claude CodeConfiguration

Also known as ANTHROPIC_BASE_URL environment variable, ANTHROPIC_BEDROCK_BASE_URL, ANTHROPIC_VERTEX_BASE_URL

It sends the API requests to a new address.

Think of it like

It is like you send your letters to a new post office.

Example

Emma's team logs and caps each AI request at one gateway. Each laptop points this at the gateway. So nothing goes straight to Anthropic.

Why it matters

It is how a company puts its own checks, logs and limits in front of Claude.

Definition

ANTHROPIC_BASE_URL changes the address Claude Code sends its API requests to. Then they go through a proxy or gateway first. Bedrock and Google Cloud each have their own form of it. From version 2.1.196, Remote Control turns off when it points at any host but api.anthropic.com.

Example code

bash
export ANTHROPIC_BASE_URL=https://llm-gateway.example.com
claude
Route every request through your gateway.
This one picks the gateway at the end of the path.

Common mistake

Setting it and then asking where Remote Control went. Remote Control only works with Anthropic's own host.

Key takeaways

  1. 1
    New address. Gateway or proxy.
  2. 2
    One per provider. Bedrock and Google.
  3. 3
    No Remote Control. Off a non-Anthropic host.