{"version":"2.1.307","anchor":"env-management-401-message-moved-to-a-shared-variable","canonical_anchor":"environment-management-endpoints-need-claude-login","heading":"Environment-management login error message reworked","tier":"notice","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.307\/e\/env-management-401-message-moved-to-a-shared-variable","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.307","markdown":"### Environment-management login error message reworked\n\nThe error saying environment-management endpoints need a claude login session, and that ANTHROPIC_API_KEY will not work, has been reworked\n\n**Unclear.** It is not known whether the error's wording changed or only where it is defined.\n\n**What**\n\nSome 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.\n\nThe 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.\n\n**Why**\n\nIf 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.\n\n- Area: Auth\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}