[Bug/Documentation] 'Organization has been disabled' error when ANTHROPIC_API_KEY overrides Max/Pro subscription
[Bug/Documentation] "Organization has been disabled" error when ANTHROPIC_API_KEY overrides Max/Pro subscription
Problem Description
Users with valid Claude Pro/Max subscriptions are receiving "This organization has been disabled" error when using Claude Code CLI, despite having active subscriptions that work fine on claude.ai.
Root Cause
When an ANTHROPIC_API_KEY environment variable is set (especially from a previously disabled organization), it overrides the user's valid Max/Pro subscription authentication, causing Claude Code to attempt authentication with the disabled API key instead of the active subscription.
Steps to Reproduce
- Have a valid Claude Max/Pro subscription
- Have
ANTHROPIC_API_KEYenvironment variable set to a key from a disabled organization - Run
claude --print "test"ornpx @anthropic-ai/claude-code@latest --print "test" - Receive error:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This organization has been disabled."}}
Solution
Remove or unset the ANTHROPIC_API_KEY environment variable:
# Temporary fix
unset ANTHROPIC_API_KEY
claude --print "test" # Now works!
# Permanent fix - remove from shell config
# Remove any line like: export ANTHROPIC_API_KEY="sk-ant-..."
Evidence
Test Results
# With API key from disabled org
$ export ANTHROPIC_API_KEY="sk-ant-api03-[disabled-key]"
$ claude --print "What is 2+2?"
API Error: 400 "This organization has been disabled"
# Without API key (using Max subscription)
$ unset ANTHROPIC_API_KEY
$ claude --print "What is 2+2?"
4 # Works perfectly!
Impact
This affects users who:
- Have valid Pro/Max subscriptions
- Previously used API keys from organizations (work, school, etc.)
- Have those organizations now disabled
- Don't realize the old API key overrides their personal subscription
Suggested Improvements
- Better Error Message: Instead of
"This organization has been disabled", show:
````
"API key from disabled organization detected.
You have a valid Max subscription.
Run 'unset ANTHROPIC_API_KEY' to use your subscription instead."
- Add Warning: When Claude Code detects both subscription and API key:
````
"Warning: ANTHROPIC_API_KEY is overriding your Max subscription.
Remove the environment variable to use your subscription benefits."
- Update Documentation: Add a troubleshooting section specifically for this scenario in:
- https://support.claude.com/en/articles/11145838-using-claude-code-with-your-pro-or-max-plan
- The main Claude Code README
- Add
--use-subscriptionFlag: Allow explicit override:
``bash``
claude --use-subscription --print "test" # Ignores ANTHROPIC_API_KEY
Additional Context
- This is not a bug in the traditional sense - it's documented behavior that API keys override subscriptions
- However, the error message is misleading and doesn't help users understand the actual problem
- Many users may have old API keys in their environment from previous projects/employers
- The current documentation doesn't explicitly warn about disabled organization keys
Environment
- OS: Windows 10 (Git Bash/MINGW64)
- Claude Code Version: 1.0.128
- Subscription: Claude Max (Individual)
- Issue discovered: September 29, 2025
Related Issues
This may explain some cases in:
- #5088 (though that also has billing-related issues)
- #1651 (API key vs subscription confusion)
- #4733 (persistent warnings about API keys)
Reproducible Example
I've created a complete test suite showing this issue and the solution:
https://gist.github.com/[would-create-gist-with-full-test-results]
---
I discovered this after extensive debugging and wanted to document it for others experiencing the same confusing error. Happy to provide more details or help test fixes.
121 Comments
Same issue happens to me. After renew of Max subscription I cannot use Claude Code, since it shows always:
Unfortunately, provided temporal fix
claude --use-subscription --print "test"orunset ANTHROPIC_API_KEYdoesn't work.Things I've tried:
claude --use-subscription --print "test"unset ANTHROPIC_API_KEYThat wasn’t the solution mate. That was a suggestion for the anthropic team
to implement As the solution. Here is the trick that worked for me.
Solution
Remove or unset the ANTHROPIC_API_KEYenvironment variable:
Temporary fixunset ANTHROPIC_API_KEY
claude --print "test" # Now works!
Permanent fix - remove from shell config# Remove any line like:
export ANTHROPIC_API_KEY="sk-ant-..."
On Thu, 9 Oct 2025 at 8:20 PM, tkluza @.***> wrote:
I'm encountering this issue as well.
I am seeing:
and have no ANTHROPIC_API_KEY set.
just got this issue today as well
<img width="889" height="318" alt="Image" src="https://github.com/user-attachments/assets/c0681945-71ce-4de4-8aad-548d097048c9" />
I am facing the same issue!!!
My colleague is facing the same issue as well. Yesterday he upgraded from MAX 5x to 20x. It faced an error but the payment went out. This morning he logged into his account and noticed it was set on free plan (all chat and invoices had disappeared). he did another payment and the plan reactivated and all data went visible again (invoices and others). now when he logs into his IDE claude it get this error. We tried every solution suggested but nothing seems to work.
The same here, blocked yesterday during a coding session.
So its obviously a problem on their end. I hope they fix this soon or they will lose a lot of subs. It's a pity that their CS is so poorly managed while the tool itself works great.
Same here.
A friend of mine has a max 5x plan and it allways resets on day 28, but for some reason it billed him on de 15th???
Now that he paid the bill when trying to log in and use claude code it seems to allways hit 400 (This organization has been disabled).
What happened? I got this issue as well
We are experiencing the same problem here as well.
We need to temporarily revert to Cursor....
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This organization has been disabled."},"request_id":"req_011CUAGaHWL3iNmDBtoobeJJ"same issue here . My subscription expired and when i renewed it , i got the same error .
Same here
SAME ISSUE. I suddenly got refund and the message goes
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This organization has been disabled."},.@claude HELP
Same here
@claude @claude fix the problem or refund us
Hey folks what is going on ?
It was working last day and plan was expired yesterday only . we re-purchased the subscription today and now we are getting this same issue
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This organization has been disabled."}
@claude same issue here, after a 5x sub expired we reactivated it and get the "This Organisiation has been disabled" message.
@claude Our organization was automatically downgraded from Max plan to free plan without our knowledge or request. We then upgraded back to “Max plan", immediately after upgrading back to Max, we received the 'organization has been disabled' error". Our entire team is now unable to access the API. Here is the the specific error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This organization has been disabled."},"request_id":"req_011CUAgcbPTx9hW5DUsM3Ng2"}
Same thing here :( it's sad.
Without any warnings, the account has been disabled in an active subscription. No changes were made to billing.
Without any warnings the account has been disabled in active subscription. No changes made to billing.
The same problem here
<img width="350" height="65" alt="Image" src="https://github.com/user-attachments/assets/91c0fabc-ef82-4da9-a3c7-7c515adca952" />
<img width="746" height="36" alt="Image" src="https://github.com/user-attachments/assets/c54ff64a-8d36-4d7a-8742-74387971eb28" />
@claude
facing the same issue here
Same issue here
I am facing the same issue. Contacted support, no reply in 2 days.
Anthropic has a significant problem: they are not providing the service despite receiving subscription fees, and they are not explaining the cause of this error.
This just happened to me. Did some CC work on a few different locations/devices today. It happened as soon as I tried to reauth CC on my MacBook. It opened the URL in my browser and I authorized it. Now I'm getting "Organization has been disabled" on all devices.
Can't even use Claude.ai on web/phone. Entire account is locked. Insane for $100/month.
Same here, I’m also frustrated, getting flagged by their flawed ML detection and wasting my time.
I saw someone say it took several weeks to complete the appeal on their Discord. It’s better to request an initial refund and create another account.
Same issue here
Hey guys, I got refund $200usd now, fk that User Safety Team made my life live harder
Do I need to apply for it? Or will it be automatically refunded?
You need to email support@mail.anthropic.com
Hi! is that the email? not support@anthropic.com?
Same
please help to fix it im facing the same issue
<img width="422" height="139" alt="Image" src="https://github.com/user-attachments/assets/84899d7c-fd9d-415a-9381-4e334dfcec69" />
Same here! Immediately after renewing! No respose whatsoever from support! I am on Max 20x, I am totally shocked by how they treat their customers!
I’ve shot off about 15 emails, tossing in some F-words and calling out the user safety team for wasting half my day on this nonsense
I just received a refund for my entire billing period ($100). I was about 80% done with the period.
I guess I'll just make a new account?? No communication regarding the account being disabled.
Beware, we did that and it blocked after the new subscription.
By the way in their discord the tech team answered (alot of threads were opened about this issue)
<img width="705" height="279" alt="Image" src="https://github.com/user-attachments/assets/bc1fe748-7960-45c8-b078-bf1f19422a55" />
If they answer to my post i will update you.
Do you have an updated discord invite? The one on their site (https://www.anthropic.com/discord) is invalid.
Kind of a shame that I escalated to a refund, but I simply asked if I would be rebated for the lost time, and they responded with a full refund of an almost completed billing cycle.
I guess my account is probably bricked now and I'll need a new email...
I found that on google https://discord.com/invite/6PPFFzqPDZ
sad news, they closed my post with a generic "Do the ban appeal" response, not as they did with the example in the image. they closed others 3 post in the last hour with the same generic response. so unfair
i try to pay again but this time no refund, same issue. @claude please check on this :)
I've encountered this exact issue as a Claude Max Pro subscriber. I need
ANTHROPIC_API_KEYset in my environment for other tools (likeprivate-llm-manager-aget) that make legitimate direct API calls to Claude.I've filed a related enhancement request in #9880 proposing a command-line flag (like
--use-subscriptionor--ignore-env-api-key) to explicitly control authentication precedence.Current workaround that works for my use case:
This allows my agents to continue using the API key while Claude Code uses my subscription authentication.
Coming from #9880 (just closed as duplicate). Want to strongly support the --use-subscription flag enhancement you proposed.
Additional Use Case: Agent Developers with Max Pro
Your issue focused on disabled API keys causing errors. I have the complement case: active API keys causing warnings for legitimate dual-use.
Setup:
private-llm-manager-agetneedsANTHROPIC_API_KEYfor direct SDK calls)Result: Constant auth conflict warnings, despite both auth methods being valid for their respective purposes.
Implementation Suggestions
Your Solution 4 (
--use-subscriptionflag) is the cleanest approach. Here are concrete implementation options:Option A: Command-line flag (recommended)
Option B: Environment variable
Option C: Precedence configuration
Why This Matters
Enhancement vs Bug Fix
Your issue is labeled as both bug and enhancement. I see two separable improvements:
Bug/Documentation (your focus):
Enhancement (my focus):
Both are valuable. The flag enhancement would also solve your disabled-key scenario (user could explicitly force subscription mode).
+1 to implementation. Happy to test beta if needed.
Unfortunately the same happened to my account twice. No clear statement nor answers by the support (after filling out a Google Form..). I know you are scaling and probably have priority customers and limited compute resources (or try to balance currently) and are not investing into support functions .. but simply "This organization has been disabled" and nothing is odd to say the least. Particularly for paid max customers..
Same here, by professional email was shut down with the same message, i appealled, but no answer. I did get an automatic refund though. So i upgraded my personal account, after half a days work, same thing happend... Im on mac, using webstorm, and the github app for issues and pr's.
Same here. API error started showing after a renew attempt has failed (I also remember that I updated Claude code right before that), and despite directly paying, the API error continued and I may have got the refund once or twice even!
Their Ai support chat told me to appeal but I got the canned response that the organization was blocked due to violation?!!! I guess they don't want out money and they can't bother providing ACTUAL customer support despite charging $100-200 dollars.
What a disaster.
Same issue happens to me. Form submitted but nothing back from the team
Just received the mail from Support Team and they said nothing they can do to support that.
This time doesnt do the automatic refund as well, not sure why. I'll contact the Support Team and keep update here
On 10/23 I received an email from Anthropic stating my account was reinstated.
It reads:
Hello,
Earlier this week, your account was disabled by an automated system for being in violation of our Terms of Service or Acceptable Use Policy. Upon further investigation, we believe this was an error and your account has been reinstated. We apologize for the inconvenience and thank you for your patience.
Should you have any questions, please contact us at usersafety@anthropic.com.
Anthropic's Trust & Safety Team
Hi everyone,
I’m also experiencing this same issue.
I’ve been a Claude Code user for a while (previously on the $200/month plan, now upgraded to the new $270/month plan), and as of today I can’t use any version of Claude — the web app, Claude Code, or API.
Each attempt returns the same error:
I’ve checked that I’m well below my usage limit, and I’ve tried:
unset ANTHROPIC_API_KEYclaude-codeStill getting the same “organization has been disabled” message everywhere.
I also reached out to Anthropic Support through multiple channels but haven’t received any reply yet.
At this point I’d really like to know if this is a broader issue or if the team can at least confirm whether accounts disabled in error will be reinstated or refunded.
Thanks to everyone here who’s been documenting workarounds — it’s reassuring to know others are facing the same situation. I’ll update this comment if I hear anything back from support.
<img width="678" height="485" alt="Image" src="https://github.com/user-attachments/assets/00179084-c518-425a-9d3c-e621ae8fd123" />
<img width="1106" height="292" alt="Image" src="https://github.com/user-attachments/assets/6cb5d7b9-0c26-4dcf-949e-95b4e488526a" />
<img width="645" height="110" alt="Image" src="https://github.com/user-attachments/assets/85396daf-d56e-4c3a-8b5c-05561d681c4e" />
same issue repeated on another account, try to paid again still getting ban and no reply from them as well
Could we have clear information about the reason our account was disabled? This would help us understand what went wrong and avoid repeating the same issue. It’s very frustrating that our team account has been disabled several times over the past few months.
Tried to use
claude-codeand have the same issue in CLI. I for sure don't have API key set and using subscription auth.200$out of the window.<img width="1594" height="810" alt="Image" src="https://github.com/user-attachments/assets/fdd74dc6-dec0-4d5d-a266-3083ccaa03c2" />
I got the same bug after renewing my MAX subscription. After renewal it set me to " Free " account and then " Organuzatob diabled". And I paid 2 times, ask thought it might be a glitch or payment did not go through. now I see the invoices 2 times on the Claude portal. I have sent out emails to their Team - Got one canned response and no resolution .
I have the same issue after renewing my MAX subscription myself which got declined due to a banking error. Anthropic reversed the transaction and set me to " Free " account. After that subscribed to max plan and then this error started coming up API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This organization has been disabled."}} I have filled out the form as the support bot asked me to since i have no violdate any TOS. @claude look into this.
I'm facing exact same issues at this. Is there any way to fix it?
This could help: https://github.com/zerolve-io/claude-copilot-setup
@Anthropic team
I recently purchased the max plan and I started facing the same issue as pointed by all users above.
Please let me know if it is fixed or any proper work around.
same exact issue. zero respones from atrophic. switched to gemini.
Same happend to me. Purchased claude max $200 a few days ago and today my account is disabled
While my attempts to remove the ban didn't work. The idiot robot refused to explain a clear reason for the ban. I managed after a few weeks to get my money back.... but only after I threatened credible legal action.
Anthropic is probably going bankcrupt? Is this the reason? What is happening that all of yous got auto-suspended? Me too, and they never even sent a single notification/warning of why! I am furious! They must be in big troubles to treat us all like such shit.
This is a very surprising - and shocking - issue... I almost left in both auth methods and would have been bitten by this too perhaps, although I don't have any accounts that have been shut off. Hmmmm.
@claude Same error "This organization has been disabled". My account just got banned for no reason while using the CLI.
Same here. For months I was using the $100 Max Plan. During holidays I took my laptop with me and logged in from a different network. After a few minutes I was refunded and my organization was banned. I have filled out the appeal form 12 days ago. Still no response.
I had purchased the $200/mo subscription and my account was autobanned due to a known bug when using Claude to review PRs on GitHub. I won my appeal and received a response saying my account had been reinstated. I, however, am still unable to repurchase a subscription. I receive the banned organization error any time I try to checkout.
Same issue, upgrade 100$ to 200$ - "this organisation has been disabled"
same issue, 100$ plan, using claude code then I got "This organization has been disabled."
same issue, on 100$ max subscription and got an API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This organization has been disabled."},"request_id":"xxxxxxxxxxx"}
My appeal was denied. I don't know why. Surely because of using CC at the same time across various servers I own. IT's complete madness that an org this size is doing this to all of us for no apparent reason. Surely they should be able to pick out false-positives in less than a month. Most disappointing experience ever had with a big company.
Same just happened to me, with no notification on why it happened.
How long has it been taking them to respond? Or are people just getting no response from them?
I’m still experiencing this issue, and I wanted to share a full update in case it helps narrow things down.
The error occurs consistently across all environments:
Error message:
Additional context:
I have an active and valid Claude Pro/Max subscription
I am not intentionally using a custom API key (subscription/login-based access only)
All Anthropic-related environment variables have been removed
Local config and cache directories have been deleted:
Cursor logout/login and full restarts were performed
Despite all of the above, the error persists everywhere. At this point, it seems unlikely to be a local configuration or CLI issue. It appears that the Anthropic backend considers the associated account or organization to be in a disabled state.
I’m now following up with Anthropic Support to have the account/organization status checked.
Sharing this here in case it helps others who may encounter the same situation.
The same problem.
There was money in the account. I only used the API.
Today:
{"error":{"type":"provider","reason":"provider_error","message":"Provider returned 400","retryable":false,"provider":{"status":400,"body":"{\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This organization has been disabled.\"},\"request_id\":\"req_011CX6oSL2RbgzXiSycq4bAH\"}"}}}
Same
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This organization has been disabled."},"request_id":"req_011CX99wMmzJeEi7mBiVDv2v"}
Same problem
When you look into it your account has basically been blocked. Breach of some kind, I'm not 100% sure what happened and the communication is abysmal.
Same problem
I’m still experiencing this issue, and I wanted to share a full update in case it helps narrow things down.
The error occurs consistently across all environments:
Claude Code CLI
Cursor IDE
Claude Web (claude.ai)
Error message:
API Error: 400
This organization has been disabled.
Additional context:
I have an active and valid Claude Pro/Max subscription
I am not intentionally using a custom API key (subscription/login-based access only)
All Anthropic-related environment variables have been removed
Local config and cache directories have been deleted:
~/.config/claude/
~/.claude/
Cursor logout/login and full restarts were performed
Despite all of the above, the error persists everywhere. At this point, it seems unlikely to be a local configuration or CLI issue. It appears that the Anthropic backend considers the associated account or organization to be in a disabled state.
I’m now following up with Anthropic Support to have the account/organization status checked.
Sharing this here in case it helps others who may encounter the same situation.
Same problem
Same problem
same issue, did anyone solve this?
same issue
same issue
Same issue here. Any updates or information on how we can resolve this?
Same issue, could someone solve it?
I tryed to contact support trough the form they provide with any response, what worked for me for refunding is write to the email support@mail.anthropic.com and ask for refund. Sadly i didnt got a tecnical response or explanation. At least i got the refund quickly.
Same issue
Same issue.
Same issue.why anthropic uses such a strict censorship strategy.
Is it possible to restore account usage by deleting and then recreating the account?
This is so annoying.
Same issue.
same issue
there is no support for that.
Solved after 5 days, required to clean browser cache and login again.
Suggestion to Anthropic team (guessing)
There is the priority of authentication levels. If removed this may cause the conflicts, but if the priority can be set by the user it will solve lots of bugs.
Same Issue, Help pelase
<img width="376" height="77" alt="Image" src="https://github.com/user-attachments/assets/e37dfecf-ad34-4ec6-b69b-b348716f23b9" />
<img width="352" height="82" alt="Image" src="https://github.com/user-attachments/assets/09a0af97-7f10-48dc-88f1-f8dd993227c5" />
same issueee
uh same issue, how can i fix it?
<img width="1100" height="146" alt="Image" src="https://github.com/user-attachments/assets/2f3e581b-1a45-4958-904c-2cb408a65795" />
<img width="1407" height="436" alt="Image" src="https://github.com/user-attachments/assets/9713be87-5380-4f28-a010-17677217b13f" />
Cannot start subscription for a banned organization
same issue
to whoever having this error: Organization has been disabled. check your email, i got emailed from Claude that is my account get suspended cuz of my account is too young, and need to age verified
Yea Same Issue with 2 of my accounts and even after going thorugh that it still shows banned :/
Same issue
Have somebody any solution?
Just Make a new account :(
claude is getting worse ngl
Your customer service and email support are utterly incompetent, constantly unresponsive. If you can't handle this, just disband your customer service team. We're anxious with them, but we're done without them.
Claude Code was working for me the whole day. Suddenly, about an hour ago it just stopped working with this error. I'm on Windows (PowerShell) and don't see any Anthropic environment variables set.
After 6 months I got a reply that I violated usage policies. I still don't know which usage policies I violated. 0 transparency...
Same issue here
Time to change provider
Just use Pro and my demand isn't high, I can consider my demand I'm quite low for the price I paid, but it's ok.
Just for that and my account still ban, well done!
same problem
same problem
same problem. No response for 3 days
Adding another data point here: my account was suddenly disabled with a "Your organization has been disabled" message and an email claiming a child was using the account. I'm a software developer and my recent usage was focused on tmux, shell scripting, and development workflows. My appeal was closed with automated responses and no explanation of what triggered the decision. Is there any way to get an actual human review of these cases?
Anybody who could help?
I've just experienced the same issue with my account, no clue what I'm doing wrong. Please human help would be very usefull
Ran into this on Windows. I added
ANTHROPIC_API_KEYto my user environment variables and Claude Code switched to API billing — but the only indicator was the banner changing fromClaude MaxtoAPI Usage Billing. That's easy to miss if you don't know to look for it, especially since the wording doesn't make it obvious there's a cost difference.claude auth statusconfirmed it:The info is there, just not visible enough. A startup warning when both an API key and an active subscription are detected would catch this — something like "API key detected — your Max subscription will not be used for billing" rather than just a banner change.