{"version":"2.1.326","anchor":"desktop-route-handling-of-gatewayprovider-env-vars-in-manag","canonical_anchor":"desktop-route-handling-of-gatewayprovider-env-vars-in-manag","heading":"Some managed environment settings are skipped in the Desktop Code tab when a gateway is set","tier":"notice","area":"Managed Settings","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/desktop-route-handling-of-gatewayprovider-env-vars-in-manag","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Some managed environment settings are skipped in the Desktop Code tab when a gateway is set\n\nIn the Desktop app's Code tab, some managed environment variables are now dropped when the environment routes requests through a gateway or another provider\n\n**Unclear.** Which environment variables are dropped when a gateway or provider route is set is not stated.\n\n**What**\n\nManaged 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:\n\n- `CLAUDE_CODE_USE_GATEWAY`\n\n- `ANTHROPIC_BASE_URL` set to something other than the default\n\n- the AWS endpoint variables\n\nIf 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.\n\n**Why**\n\nIn 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.\n\n- Area: Managed Settings\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: yes"}