You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release
Unclear It is not clear when this message is shown.
What
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.
The status row that appears when the key is set but unused is relabelled from Unused key to Unused API key.
Its hint changes from · /config to use it to · claude -p uses it · /config to use.
Why
If 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.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added sinceA small documentation edit on Best practices for Claude Code touched a line naming ANTHROPIC_API_KEY after this was published.* [`--bare`](https://code.claude.com/docs/en/headless#start-faster-with-bare-mode) skips your hooks, skills, plugins, MCP servers, and `CLAUDE.md` files from the repo and your home directory. It also doesn't use your claude.ai login: auth …best-practicessee the edit
Confirmed sinceAnthropic's documentation has since written up ANTHROPIC_API_KEY, on Claude Code GitHub Actions.By default, Claude Code saves the credential as a repository secret, named `ANTHROPIC_API_KEY` for an API key or `CLAUDE_CODE_OAUTH_TOKEN` for a subscription token.github-actionssee the edit
Confirmed sinceAnthropic's documentation has since written up /config, on Security and data handling.* **Connectors an administrator adds.** For each connector an administrator adds, the administrator can switch individual tools on or off under **Tool policy**. A tool that is on [needs approval](https://claude.com/docs/third-party/claude-…government/security/security-and-data-handlingsee the edit
Added sinceA small documentation edit on claude-tag touched a line naming /config after this was published.<template data-mint="manifest">{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Claude.ai Documentation","colors":{"primary":"#0E0E0E","light":"#D4A27F","dark":"#0E0E0E"},"logo":{"light":"https://mintcdn.com…claude-tagsee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear when this message is shown.
Anthropic's documentation agreesA small documentation edit on claude-tag touched a line naming /config after this was published.
Anthropic's release notes agreeAdded a note in /config when other settings override a row