You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release
What
When you are not signed in, the status text now always reads "Not logged in · run /login". The version that also suggested /config to use ANTHROPIC_API_KEY is gone.
ANTHROPIC_API_KEY is an environment variable, a value set in your shell before starting Claude Code, that lets you use an API key instead of signing in.
Why
If you meant to use an API key rather than an account, the message no longer points you there. Setting ANTHROPIC_API_KEY still works; it just is not suggested here.
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 /login, on Error reference.| `Managed settings on this machine configure a Cloud gateway sign-in; run interactive /login to authenticate.` | [`claude auth login`](https://code.claude.com/docs/en/cli-reference#cli-commands) |errorssee the edit
Added sinceA small documentation edit on Authentication touched a line naming /login after this was published.* **Cloud gateway**: if your organization runs a self-hosted [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway), sign in with corporate SSO through `/login` or [from VS Code](https://code.claude.com/docs/en/vs-code.…authenticationsee the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesA small documentation edit on Authentication touched a line naming /login after this was published.
Anthropic's release notes agreeAdded a note in /config when other settings override a row