What's wrong with this entry?
When ANTHROPIC_BASE_URL is set against a first-party gateway, Claude Code now discovers the gateway's available Claude/Anthropic models on startup and lists them in the model picker labelled From gateway.
- On startup it issues
GET <baseUrl>/v1/models?limit=1000(using whichever ofANTHROPIC_AUTH_TOKEN/ API key is configured plus anyANTHROPIC_CUSTOM_HEADERS), filters to entries whoseidstarts withclaudeoranthropic, and caches them in<config-dir>/cache/gateway-models.jsonkeyed by base URL. - Empty / non-OK responses are dropped with debug logs:
[gatewayDiscovery] non-OK status …,[gatewayDiscovery] response body failed validation,[gatewayDiscovery] 0 usable models after filter,[gatewayDiscovery] cached N models. - Discovery is skipped when the host manages the provider (
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST) or when not in first-party mode. - The
/modelpicker merges these into the available list so Bedrock/Vertex-only models get inline labels and descriptions instead of being hidden.
Gateway discovery (search for "gateway-models.json", "/v1/models?limit=1000", and "From gateway").
Strings lifted out of the shipped bundle, so the claim above can be checked against them.