{"version":"2.1.261","anchor":"new-gateway-required-by-host-policy-cloud-provider-mode","canonical_anchor":"new-gateway-required-by-host-policy-cloud-provider-mode","heading":"New \"gateway required by host policy\" cloud-provider mode","tier":"internal","area":"Cloud Gateway","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.261\/e\/new-gateway-required-by-host-policy-cloud-provider-mode","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.261","markdown":"### New \"gateway required by host policy\" cloud-provider mode\n\nHosts can now force gateway auth and routing through a policy check, independent of your env vars.\n\nProvider detection now also treats the session as a Cloud gateway provider when a new host policy reader, `gatewayRequiredByHostPolicy`, returns true, in addition to the existing gateway-server-process checks. This gives hosts a way to force gateway auth and provider routing independent of the `CLAUDE_CODE_USE_*` environment variables.\n\n- Area: Cloud Gateway\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5"}