{"version":"2.1.222","anchor":"host-managed-provider-sessions-take-model-policy-from-the-pa","canonical_anchor":"host-managed-provider-sessions-take-model-policy-from-the-pa","heading":"Host-managed provider sessions take model policy from the parent process","tier":"use","area":"Settings","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.222\/e\/host-managed-provider-sessions-take-model-policy-from-the-pa","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.222","markdown":"### Host-managed provider sessions take model policy from the parent process\n\nSetting CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST makes the parent process dictate your model settings, ignoring your settings file.\n\n**What**\n\nWhen Claude Code runs under a host that manages the provider, settings-file model configuration is ignored in favour of policy handed down by the parent process.\n\n**Details**\n\n- Settings resolution gained `hostManagedProvider: te.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST`.\n- With that env var set, `model`, `fallbackModel`, `modelOverrides` and provider env vars are stripped from the policy view.\n- A `hostModelOverlay` built from parent-managed settings is applied in their place; admin `modelOverrides` are stashed and re-applied to enforcement.\n- The managed-settings source enum gained a \"parent\" value, returned when a parent slice or host model overlay exists.\n- Inactive unless `CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST` is set.\n\n**Evidence**\n\n`hostManagedProvider`\n\n- Area: Settings\n- Names: `CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 0\/5"}