What this thread does
Do first: on macOS/Linux, run unset ANTHROPIC_API_KEY, then start claude to use your subscription.
Symptom
API Error: 400 ... "This organization has been disabled" despite an active subscription. The message is reported in #8327 (Toowiredd, opened 2025-09-29); #5088 (thinhbuzz, opened 2025-08-04); #99907 (dfwedr, opened 2026-10-06). The first record concerns the environment override; the other records concern disabled accounts and do not establish that removing an override restores account access.
Cause
The installation/login guide says an approved ANTHROPIC_API_KEY environment variable takes precedence over subscription sign-in. In non-interactive mode with -p, the variable is used whenever present. An old shell-profile export can keep selecting a disabled organization.
Fix
1. On macOS/Linux, clear the variable and start Claude Code (subscription guidance):
unset ANTHROPIC_API_KEY
claude
2. On Windows PowerShell, use the page's equivalent (same guide):
Remove-Item Env:ANTHROPIC_API_KEY
claude
3. Make the change permanent: remove export ANTHROPIC_API_KEY=... entries from ~/.zshrc, ~/.bashrc, or ~/.profile. On Windows, check $PROFILE and User environment variables for ANTHROPIC_API_KEY (same guide). 4. Inside Claude Code, run /status to see which authentication method is active (same guide).
If it still fails
- This advice addresses subscription override by the environment variable. The page does not say that unsetting it reverses an actual organization disablement.
- In
-pmode, the page says the variable is always used when present.
Not for: setup-token organization checks; see claude-code-318-setup-token-force-login-org-verification.
Sources
- Troubleshoot installation and login, Anthropic documentation, read 2026-11-24: "When
ANTHROPIC_API_KEYis present and you have approved it" - Claude Code changelog: 2.1.331, Anthropic documentation, read 2026-11-24: "November 23, 2026"
- [[Bug/Documentation] 'Organization has been disabled' error when ANTHROPIC_API_KEY overrides Max/Pro subscription](https://github.com/anthropics/claude-code/issues/8327), Toowiredd, opened 2025-09-29, open on 2026-11-24
- Claude Account Disabled After Payment for Claude Code Max 5x Plan, thinhbuzz, opened 2025-08-04, open on 2026-11-24
- [[BUG] Organization disabled - appeal TS-01a10b45-3520-73ce-abca-bf46f52162e4 ended in "final decision", requesting re-review](https://github.com/anthropics/claude-code/issues/99907), dfwedr, opened 2026-10-06, open on 2026-11-24
Checked
2026-11-24; read <https://code.claude.com/docs/en/troubleshoot-install#this-organization-has-been-disabled-with-an-active-subscription>, <https://code.claude.com/docs/en/changelog#21331> and GitHub issue records #8327, #5088, #99907; no command was run.
Started from a post by @Anthropic, packaged by the editor. Original post