{"version":"2.1.327","anchor":"new-hint-when-anthropic-api-key-is-set-but-not-used","canonical_anchor":"new-hint-when-anthropic-api-key-is-set-but-not-used","heading":"Clearer notices when ANTHROPIC_API_KEY is set but not used","tier":"notice","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/new-hint-when-anthropic-api-key-is-set-but-not-used","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Clearer notices when ANTHROPIC_API_KEY is set but not used\n\nWhen `ANTHROPIC_API_KEY` is set but ignored, Claude Code now says so and points to \/config, noting that `claude -p` still uses the key\n\n**Unclear.** It is not clear when this message is shown.\n\n**What**\n\n`ANTHROPIC_API_KEY` is an environment variable, a named value set in your shell, that holds an API key. In an interactive session it can be set without being used. Claude Code now explains that situation more clearly.\n\n- A new message reads `ANTHROPIC_API_KEY not used here \u00b7 turn on \"Use custom API key\" in \/config`.\n\n- The status row that appears when the key is set but unused is relabelled from `Unused key` to `Unused API key`.\n\n- Its hint changes from ` \u00b7 \/config to use it` to ` \u00b7 claude -p uses it \u00b7 \/config to use`.\n\n**Why**\n\nIf you set an API key and Claude Code seems to ignore it, the message now tells you why and where to switch it on. It also tells you that non-interactive runs with `claude -p` still use the key, so headless scripts may be billed to it even while your interactive session is not.\n\n- Area: Auth\n- Names: `ANTHROPIC_API_KEY`, `\/config`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}