pub fn anthropic_api_key_available(home: &Path) -> boolExpand description
Returns true when an Anthropic API key is available for the proxy to forward upstream.
The proxy never injects credentials (see proxy/forward.rs — only
ALLOWED_REQUEST_HEADERS are forwarded), so it can only help Claude Code when the
user runs in API-key (pay-as-you-go) mode. A Claude Pro/Max subscription login
is reserved for direct use of Claude Code: Anthropic does not permit third-party
tools to route requests through Free/Pro/Max credentials, so subscription traffic
stays on api.anthropic.com. When this returns false, callers must NOT point
Claude Code at the proxy.