You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.323,
ImprovementsSection of the release
Unclear Which sessions the extra check matches is not known, so it is unclear when ANTHROPIC_API_KEY is skipped.
What
Claude Code has an extra check at the start of looking for credentials. When that check matches, Claude Code reports that it has no API key and no token, and it never reaches the step that reads ANTHROPIC_API_KEY. An API key is a secret that lets Claude Code use Anthropic's service without a subscription login. Before, Claude Code always went on to handle ANTHROPIC_API_KEY.
Why
In the sessions the check matches, a key you have set in ANTHROPIC_API_KEY would not be picked up.