Unclear When these hints are shown, and what triggers them, is not known.
What
Claude Code has a new set of hint messages that suggest another way to sign in:
ANTHROPIC_PROFILE: set this environment variable to the name of your saved Claude Console profile, usuallydefault, to use that sign-in instead.ANTHROPIC_API_KEY: set this environment variable to use an API key instead.
An environment variable is a named value you set in your terminal before starting Claude Code.
Why
If you run into a sign-in or usage-limit problem, you may now be told about credentials you already have that could be used instead.
Names in the bundleANTHROPIC_PROFILEANTHROPIC_API_KEY
Documented inapi/cli-sdks-libraries/cli/authentication
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
When these hints are shown, and what triggers them, is not known.