Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.307 ·

Environment-management login error message reworked

The error saying environment-management endpoints need a claude login session, and that ANTHROPIC_API_KEY will not work, has been reworked

Group of 2 You'll notice Improvements
JSON All of v2.1.307
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.307,
ImprovementsSection of the release

What

Some Claude Code features call environment-management endpoints, which are server addresses used to manage environments. These endpoints require you to be signed in with claude login. An API key set in ANTHROPIC_API_KEY is not accepted.

The error for this case has been reworked. The old inline text read "Not logged in. Environment-management endpoints require the operator OAuth session" and told you to run claude login. That text is now a message stored in a shared variable instead of being written in place. Its wording still says these endpoints need the operator OAuth session, which is the sign-in made with claude login, and that ANTHROPIC_API_KEY will not work. The exact final wording may have changed.

Why

If you use an API key and one of these features fails with a not-logged-in error, the fix is to run claude login. Setting the key will not help.

Read from
Names in the bundleclaude loginANTHROPIC_API_KEY

See this entry in the whole of v2.1.307 →

Feedback