Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

Clearer notices when ANTHROPIC_API_KEY is set but not used

When ANTHROPIC_API_KEY is set but ignored, Claude Code now says so and points to /config, noting that claude -p still uses the key

Group of 2 You'll notice Improvements
JSON All of v2.1.327
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.

  • A new message reads ANTHROPIC_API_KEY not used here · turn on "Use custom API key" in /config.
  • 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.

Read from
Names in the bundleANTHROPIC_API_KEY/config
Since it was published

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 since A 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-practices see the edit
Confirmed since Anthropic'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-actions see the edit
Confirmed since Anthropic'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-handling see the edit
Added since A 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-tag see 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

See this entry in the whole of v2.1.327 →

Feedback