{"version":"2.1.248","anchor":"gateway-model-discovery-explains-why-it-skipped-and-can-use-","canonical_anchor":"gateway-model-discovery-explains-why-it-skipped-and-can-use-","heading":"Gateway model discovery explains why it skipped, and can use apiKeyHelper","tier":"use","area":"Model Config","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/gateway-model-discovery-explains-why-it-skipped-and-can-use-","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Gateway model discovery explains why it skipped, and can use apiKeyHelper\n\nGateway model discovery can authenticate with apiKeyHelper and logs why it skipped.\n\n**What**\n\nThe optional pass that asks a custom `ANTHROPIC_BASE_URL` for its `\/v1\/models` list now logs a reason for every skip instead of silently doing nothing, and can authenticate with your `apiKeyHelper` command in addition to `ANTHROPIC_AUTH_TOKEN` or an API key. The helper is only run in a trusted workspace. The whole feature still requires `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY`.\n\n**Details**\n\n- Skip reasons cover nonessential traffic being disabled, unsuitable provider or base URL, and having no credential at all.\n- In an untrusted workspace it logs `[gatewayDiscovery] skipped: apiKeyHelper requires workspace trust`.\n- `ANTHROPIC_CUSTOM_HEADERS` now overrides the built-in Authorization, x-api-key and User-Agent headers case-insensitively, rather than being merged after them.\n- Errors are separated into \"skipped:\" and \"failed:\" and redacted before logging.\n\n**Evidence**\n\n`[gatewayDiscovery] skipped: apiKeyHelper requires workspace trust`\n\n- Area: Model Config\n- Names: `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY`, `ANTHROPIC_BASE_URL`, `apiKeyHelper`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5"}