{"version":"2.1.310","anchor":"anthropic-base-url-host-helper-ignores-the-variable-in-some","canonical_anchor":"anthropic-base-url-host-helper-ignores-the-variable-in-some","heading":"Custom API host from ANTHROPIC_BASE_URL is ignored in some modes","tier":"notice","area":"API Providers","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.310\/e\/anthropic-base-url-host-helper-ignores-the-variable-in-some","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.310","markdown":"### Custom API host from ANTHROPIC_BASE_URL is ignored in some modes\n\nThe check that picks out a custom host from `ANTHROPIC_BASE_URL` now reads the variable directly and returns nothing in some modes\n\n**Unclear.** Which modes cause Claude Code to ignore `ANTHROPIC_BASE_URL` here is not stated.\n\n**What**\n\n`ANTHROPIC_BASE_URL` is the environment variable that sends Claude Code's requests to a different address, such as a proxy or gateway. An internal check that works out whether that address is a custom host now reads `ANTHROPIC_BASE_URL` itself instead of being handed the address. It also now returns nothing, as though no custom host were set, when a particular mode is active.\n\n**Why**\n\nIn practice, which custom host Claude Code picks up for this check, if any, can now depend on the mode it is running in, not only on what `ANTHROPIC_BASE_URL` says.\n\n- Area: API Providers\n- Names: `ANTHROPIC_BASE_URL`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: no"}