What
When a session has no login it can use, the error used to change only depending on whether the key came from ANTHROPIC_API_KEY or a key helper script. It now also explains two more cases:
- a cloud provider that has been set aside
- a device policy, set by your administrator on the machine, that overrides your organization sign-in
In the device-policy case it tells you to run /login to use an account of your own.
Why
People on managed setups get a clearer reason for the failure and, in the device-policy case, a way forward.
Names in the bundleANTHROPIC_API_KEY
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.
Confirmed since
Anthropic's documentation has since written up ANTHROPIC_API_KEY, on Before.
| `--api-key <key>` | `ANTHROPIC_API_KEY`, `--api-key-stdin`, or `ant auth login` |api/migration-2026-10-21 see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up ANTHROPIC_API_KEY, on Before.
Anthropic's release notes agree
Fixed the Claude Docs connector's tools going missing when a plugin or MCP server at the same address failed to connect, and its error…