Gateway model discovery can authenticate with apiKeyHelper and logs why it skipped.
What's wrong with this entry?
The 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.
- Skip reasons cover nonessential traffic being disabled, unsuitable provider or base URL, and having no credential at all.
- In an untrusted workspace it logs
[gatewayDiscovery] skipped: apiKeyHelper requires workspace trust. ANTHROPIC_CUSTOM_HEADERSnow overrides the built-in Authorization, x-api-key and User-Agent headers case-insensitively, rather than being merged after them.- Errors are separated into "skipped:" and "failed:" and redacted before logging.
[gatewayDiscovery] skipped: apiKeyHelper requires workspace trust
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.223
Gateway model discovery accepts model ids that merely contain claude or anthropic
Both mention model discovery base