50 pages for anthropic_base_url.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
On a remote host without a browser:
Claude Developer Platform · in the page
cli-sdks-libraries/cli/authentication
…d pipe the key to the command. To point at a different API host, set `ANTHROPIC_BASE_URL` or pass `--base-url`. If you are using a [personal or service account key](https://platform.claude.com/docs/e…
csharp
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/csharp
…// Configured using the ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL environment variables AnthropicClient client = new(); ``` Or manually: ```csharp using Anthropic; AnthropicC…
java
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/java
…configures using the `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN` and `ANTHROPIC_BASE_URL` environment variables AnthropicClient client = AnthropicOkHttpClient.fromEnv(); MessageCreateParams params =…
For Amazon Bedrock support
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/python
…Anthropic, DefaultHttpxClient client = Anthropic( # Or use the `ANTHROPIC_BASE_URL` env var base_url="http://my.test.server.example.com:8083", http_client=DefaultHttpxClient( pro…
cmek
Claude Developer Platform · in the page
manage-claude/cmek
…When Claude Code connects through an LLM gateway or proxy (a custom `ANTHROPIC_BASE_URL`), CMEK does not apply to Claude Code's operational telemetry. To turn this telemetry off, set the `DISABLE_TEL…
spawn.sh: called once per claimed work item
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes
…ding the work item's per-session `secret` when Anthropic issued one. `ANTHROPIC_BASE_URL` is optional and is passed through only if it was set on the poller host; it overrides the default API endpoint…
self-hosted-sandboxes-reference
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-reference
…ts/self-hosted-sandboxes-workers#forward-the-work-items-secret). | | `ANTHROPIC_BASE_URL` | Overrides the default API endpoint. Optional. | You, on the worker host.…
self-hosted-sandboxes-workers
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-workers
…NMENT_KEY \ -e ANTHROPIC_WORK_ID -e ANTHROPIC_ENVIRONMENT_ID -e ANTHROPIC_BASE_URL \ -e ANTHROPIC_WORK_SECRET \ -v "/host/outputs/$ANTHROPIC_SESSION_ID":/workspace \ your-image…
Escalate hard decisions with the advisor tool
Claude Code CLI · in the page
advisor
…ndry. Through an [LLM gateway](/docs/en/llm-gateway) configured with `ANTHROPIC_BASE_URL`, availability depends on whether the gateway forwards the request intact to the Anthropic API. If the gateway…
Configure your agent
Claude Code CLI · in the page
agent-sdk/configuration
…guages. The example routes API traffic through a gateway by setting `ANTHROPIC_BASE_URL`. ```typescript TypeScript theme={null} const options = { env: { ...process.env, ANTHROPIC_BASE_URL: "https:…
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…EY` from its environment. Supply it from your secret manager, or set `ANTHROPIC_BASE_URL` to route model calls through a proxy that injects the key outside the container. See [Credential management](/…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…ile and plugin servers too, up to `MCP_TIMEOUT`. * **Otherwise, when `ANTHROPIC_BASE_URL` points to a [gateway](/docs/en/mcp#tool-search-through-a-gateway) and [`ENABLE_TOOL_SEARCH`](/docs/en/mcp#conf…
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…request body to that directory. * **A gateway you control**: point [`ANTHROPIC_BASE_URL`](/docs/en/llm-gateway) at a proxy that logs request bodies. In a logged request, look in the `messages` array…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…ed. While the watchdog waits out a response that a gateway behind `ANTHROPIC_BASE_URL` holds open with keep-alive pings, a host that sets `include_partial_messages` keeps receiving `ping` [`StreamE…
Securely deploying AI agents
Claude Code CLI · in the page
agent-sdk/secure-deployment
…le but only for sampling API requests)** ```bash theme={null} export ANTHROPIC_BASE_URL="http://localhost:8080" ``` This tells Claude Code and the Agent SDK to send sampling requests to your proxy i…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…_TOOL_SEARCH`. > [!NOTE] > > Tool search is on by default behind an `ANTHROPIC_BASE_URL` gateway, with nothing to set. If the gateway rejects it, see [Tool search through an LLM gateway](/docs/en/mcp…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…ed. While the watchdog waits out a response that a gateway behind `ANTHROPIC_BASE_URL` holds open with keep-alive pings, a host that sets `includePartialMessages` keeps receiving `ping` [stream eve…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…ch settings file to use for the credential. If you export a gateway `ANTHROPIC_BASE_URL` only in your shell instead, it reaches a background session, together with the `ANTHROPIC_CUSTOM_HEADERS` and…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…connect to it as an [LLM gateway](/docs/en/llm-gateway-connect) with `ANTHROPIC_BASE_URL` instead of `CLAUDE_CODE_USE_BEDROCK`. ### Zero token counts in /context The `/context` command counts tokens…
Authentication
Claude Code CLI · in the page
authentication
…`/logout`. To route requests through a custom API endpoint, set the [`ANTHROPIC_BASE_URL`](/docs/en/env-vars) environment variable instead. * **Supported authentication types**: claude.ai credentials,…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ixed the `prompt-caching-scope` beta header being sent behind custom `ANTHROPIC_BASE_URL` gateways and on Foundry, where it has no effect * Fixed MCP servers showing "needs authentication" in `claude…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…pers from bypassing the gateway with a cloud provider variable or an `ANTHROPIC_BASE_URL` of their own, add `"allowedProviders": ["gateway"]` to the same file. Claude Code then refuses every session o…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…r credentials, to `/api/hello` on `https://api.anthropic.com`, or on `ANTHROPIC_BASE_URL` when the environment set it, unless the environment also set a proxy variable such as `HTTPS_PROXY` or an mTLS…
Use Claude Code in the cloud
Claude Code CLI · in the page
claude-code-on-the-web
…ider. An [LLM gateway](/docs/en/llm-gateway) configured only through `ANTHROPIC_BASE_URL` doesn't count as a third-party provider for this check, but you still need to sign in with `claude auth login`…
Desktop application
Claude Code CLI · in the page
desktop
…onment variables Desktop sets itself If you set `API_TIMEOUT_MS` or `ANTHROPIC_BASE_URL` and nothing changed in your local sessions, it's because Desktop sets those [variables](/docs/en/env-vars#vari…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `ANTHROPIC_BASE_URL` | Override the API endpoint to route requests through a proxy or gateway. W…
Error reference
Claude Code CLI · in the page
errors
…Foundry configurations name that provider's service status. A custom `ANTHROPIC_BASE_URL` names the gateway host. A 5xx from the API itself indicates an unexpected failure inside the API. It is not c…
Speed up responses with fast mode
Claude Code CLI · in the page
fast-mode
…a request directly to `api.anthropic.com`. The check doesn't follow [`ANTHROPIC_BASE_URL`](/docs/en/llm-gateway-connect#set-the-base-url-and-credential), so on a network that routes Claude traffic thr…
Feature availability
Claude Code CLI · in the page
feature-availability
…e account, or an [LLM gateway](/docs/en/llm-gateway) reached through `ANTHROPIC_BASE_URL`. On other providers, including Claude Platform on AWS, it runs on Fable * **[Commands](/docs/en/commands#all-c…
Run Claude Code through a gateway
Claude Code CLI · in the page
gateways
…nd the gateway's provider credential. The exception is setting only `ANTHROPIC_BASE_URL`, with no gateway credential. Requests still route through the gateway, but a saved claude.ai login stays the a…
Set up Claude Code (local mode) for a HIPAA-ready organization
Claude Code CLI · in the page
hipaa-setup
…| No | | An [LLM gateway](/docs/en/llm-gateway) or any other custom `ANTHROPIC_BASE_URL` | No | | `ANTHROPIC_AUTH_TOKEN` or `apiKeyHelper`, on a computer with no Claude Enterprise sign-in | No | | A…
Other LLM gateways
Claude Code CLI · in the page
llm-gateway
…anization](/docs/en/admin-setup). To make a gateway reached through `ANTHROPIC_BASE_URL` the only destination a managed machine may use, set [`allowedProviders`](/docs/en/settings-reference#allowedpr…
Connect Claude Code to an LLM gateway
Claude Code CLI · in the page
llm-gateway-connect
…gateway team gave you: **Bash or Zsh** ```bash theme={null} export ANTHROPIC_BASE_URL=https://llm-gateway.example.com export ANTHROPIC_AUTH_TOKEN=sk-gateway-key ``` **PowerShell** ```powershell t…
Claude Code gateway compatibility guide
Claude Code CLI · in the page
llm-gateway-protocol
…s | Forward unchanged | | :- | :- | :- | :- | | Anthropic Messages | `ANTHROPIC_BASE_URL` | `/v1/messages`, `/v1/messages/count_tokens` (optional) | `anthropic-beta` and `anthropic-version` request he…
Roll out an LLM gateway for your organization
Claude Code CLI · in the page
llm-gateway-rollout
…the `x-api-key` header: **Bash or Zsh** ```bash theme={null} export ANTHROPIC_BASE_URL=https://llm-gateway.example.com export ANTHROPIC_AUTH_TOKEN="<developer-key>" ``` **PowerShell** ```powershel…
Deploy managed settings
Claude Code CLI · in the page
managed-settings
…ig#apply-code-settings-in-the-code-tab). On other providers, or when `ANTHROPIC_BASE_URL` points somewhere other than Anthropic's API, it starts at the next source 2. MDM or OS-level policies: the mac…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…t 4.5, and Claude Haiku 4.5 on Google Cloud's Agent Platform. For an `ANTHROPIC_BASE_URL` gateway, see [Tool search through an LLM gateway](#tool-search-through-a-gateway). * **On a Microsoft Foundry…
Model configuration
Claude Code CLI · in the page
model-config
…e-model-and-effort-level-in-claude-code) on the blog. > [!NOTE] > > `ANTHROPIC_BASE_URL` changes where requests are sent, not which model answers them. To route Claude through an LLM gateway, see [LL…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…traceparent` header on model and HTTP MCP requests is sent only when `ANTHROPIC_BASE_URL` is unset or points at the Anthropic API, since some proxies reject unrecognized headers. The subprocess `TRACE…
Enterprise network configuration
Claude Code CLI · in the page
network-config
…ude-platform-on-aws), including through an HTTPS proxy, but not when `ANTHROPIC_BASE_URL` or `ANTHROPIC_AWS_BASE_URL` routes them through a [gateway](/docs/en/gateways). Opt-in on Amazon Bedrock with…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…loud's Agent Platform, and Microsoft Foundry, and whenever you point `ANTHROPIC_BASE_URL` at an [LLM gateway or proxy](/docs/en/llm-gateway), whatever your plan. Asking by default requires Claude Code…
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…opic deployments are served on Anthropic's infrastructure * **Custom `ANTHROPIC_BASE_URL` or [LLM gateway](/docs/en/llm-gateway)**: the cache lives wherever your requests are forwarded, and whether ca…
Continue local sessions from any device with Remote Control
Claude Code CLI · in the page
remote-control
…Google Cloud's Agent Platform, or Microsoft Foundry. * You point [`ANTHROPIC_BASE_URL`](/docs/en/env-vars) at a host other than `api.anthropic.com`, such as an [LLM gateway](/docs/en/llm-gateway) o…
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…hat isn't in the update. Requires Claude Code v2.1.299 or later. | | `ANTHROPIC_BASE_URL` | The API base URL the child will use, delivered by the control plane per session and normally `https://api.an…
Configure server-managed settings
Claude Code CLI · in the page
server-managed-settings
…ed-fetch causes, such as a third-party provider variable or a custom `ANTHROPIC_BASE_URL` exported in the user's shell. ### Access control The following roles can manage server-managed settings: *…
All settings
Claude Code CLI · in the page
settings-reference
….json theme={null} { "env": { "DISABLE_AUTO_COMPACT": "1", "ANTHROPIC_BASE_URL": "https://proxy.example.com" } } ``` #### How `env` values interact with your shell * A value here overwri…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…e account, or an [LLM gateway](/docs/en/llm-gateway) reached through `ANTHROPIC_BASE_URL`, Explore runs on the Opus model that the [`opus` alias](/docs/en/model-config#model-aliases) resolves to. *…
Enterprise deployment overview
Claude Code CLI · in the page
third-party-integrations
…udgets, or centralized authentication management. Configure with the `ANTHROPIC_BASE_URL`, `ANTHROPIC_BEDROCK_BASE_URL`, `ANTHROPIC_AWS_BASE_URL`, `ANTHROPIC_VERTEX_BASE_URL`, or `ANTHROPIC_FOUNDRY_BA…
Week 18 · April 27 – May 1, 2026
Claude Code CLI · in the page
whats-new/2026-w18
…icker can list models from your gateway's `/v1/models` endpoint when `ANTHROPIC_BASE_URL` points at an Anthropic-compatible gateway; opt in with `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1` since v2…
Week 25 · June 15–19, 2026
Claude Code CLI · in the page
whats-new/2026-w25
…` so both stay availableFixed prompt caching not reading on a custom `ANTHROPIC_BASE_URL` and on Microsoft FoundryFixed Write and Edit producing zero-byte or truncated files on network drives and clou…