Unclear Which environment variables are dropped when a gateway or provider route is set is not stated.
Managed settings are settings an organisation sets centrally for its users. They can include an environment block, which is a list of environment variables Claude Code should use. Claude Code now checks whether that block points requests at a gateway or another provider, meaning a server or service other than Anthropic's own API. It looks for any of these:
CLAUDE_CODE_USE_GATEWAYANTHROPIC_BASE_URLset to something other than the default- the AWS endpoint variables
If one of them is present, the managed value for certain environment variables is ignored and not applied. This happens in the Code tab of the Desktop app. Variables Claude Code drops for other reasons now each have their own recorded reason as well.
In the Desktop app's Code tab, an organisation that routes through a gateway may find that some of its managed environment variables do not take effect.
Which environment variables are dropped when a gateway or provider route is set is not stated.