{"version":"2.1.326","anchor":"api-key-verification-follows-env-key-claudecodeversion-in-s","canonical_anchor":"api-key-verification-follows-env-key-claudecodeversion-in-s","heading":"API key checks at session start now follow the ANTHROPIC_API_KEY variable","tier":"notice","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/api-key-verification-follows-env-key-claudecodeversion-in-s","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### API key checks at session start now follow the ANTHROPIC_API_KEY variable\n\nAt session start, API key verification now follows the ANTHROPIC_API_KEY variable, and session info includes the Claude Code version\n\n**Unclear.** It is not clear what following the key does in practice, for example whether changing `ANTHROPIC_API_KEY` during a session is picked up.\n\n**What**\n\nWhen a session starts, Claude Code now makes its API key check follow the key set in the `ANTHROPIC_API_KEY` environment variable. An environment variable is a value set in your shell before Claude Code runs. The information Claude Code reports about a running session now also includes the Claude Code version.\n\n**Why**\n\nThe session may now react to changes in `ANTHROPIC_API_KEY`.\n\n- Area: Auth\n- Names: `ANTHROPIC_API_KEY`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}