You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using opencode with Anthropic OAuth violates ToS & Results in Ban #6930
I've been using Claude code for months and only recently started to use Open Code.
I logged in via the OAuth method as suggested on Open Code's website and upon upgrading from Claude Max 5 to Claude Max 20, I think I triggered some kind of review and they banned my account.
I reached out to several Anthropic engineers on Twitter and discovered that using Claude in this way on Open Code violates their terms of service and results in a ban.
Open Code should no longer allow users to log in to any of the OAuth subscriptions because this violates all their terms of service. Users should be using the API key and paying for tokens by the API access.
Hi @johnellison I don't believe that is the case, I have been using OC with CC Max 20 for months now with no issues, I also just saw a person who had your same exact issue and he appealed to Anthropic and got himself unbanned, I asked him if he mentioned he was using OC in the appeal and he confirmed he did. Anthropic ToS is about using it with competing products, OC is not competing with Anthropic main product (the models) as a matter of fact the entire revenue resulting from me using OC is going to Anthropic, I'd gladly switch the model providers before switching OC. If anything OC is the reason Anthropic is getting any penny out of me.
Opus 4.5 is great but other models are not that far behind.
Maybe the dev team can confirm if they have spoken with the Anthropic team about this
Reacted by Daniel Vélez, Adam Spiers, ZanderGrey, Howaboua, Kieran, Kai Wu, duffn, Rob Evans, Daveloper, Johan Ohly and 9 more
I am not sure of the exact mechanism but here is the comment about mentioning OpenCode usage to them and getting unbanned, you can try to reach out to the person
I hope this issue gets resolved. Opencode has gone viral recently in the Korean community of x and threads, and I think this issue is a significant barrier to people's decision to use Opencode.
I got banned before using opencode, without any known violations of their ToS.
I only discovered opencode because I got banned.
Reacted by Thor, Márton Danóczy, Art Shendrik, Gasimov Kamran, Morjan Mihail Gabriel, Changsheng Wu, Alex0007, Xing Shi Cai, w33ts, Small-tailqwq and 1 more
I just got banned as well. I was on their Pro plan for weeks using OpenCode with no issues. 1 day after upgrading to their Max plan, it somehow triggered a ban for my account.
(@ilyesm : I also use zsh, but I do NOT use the oh-my-opencode plugin, so it's a mystery. 🤔)
I don't fault OpenCode for this. Terrible experience on Anthropic's side.
My experience with Anthropic:
Hard-dropped my connection to Claude without warning.
Banned my account without any clear warning or message (all I got was a refund email from Stripe, but no notification message from Anthropic told me I was banned).
Requiring me to appeal their ban, but without providing me any info explaining why I was banned in the first place.
How the hell am I supposed to appeal something if I don't even know the violation?
This is the exact reason we need projects like OpenCode, and why I chose this over CC in the first place.
I told Anthropic I'll happily switch to a new AI provider.
Reacted by Zhiwei Liang, Nelson Pires, Xing Shi Cai, Vitalii Kozlovskyi, ominiverdi, Lauri Nõmme, Anomatomato, 叶子 and AONIR
same happened to me, used OpenCode extensively on my Claude Mx 5x subscription, got hooked on their holiday limit increase, when i did run out of tokens I purchased the 20x plan, kicked off a new task in OpenCode, went grocery shopping and got banned within 20 minutes. No explanation, nothing. I did fill out the appeal form, already waiting 3 days for a reply, i did not mention opencode though.
I know a case of a person who got banned using exclusively Claude Code + their VSCode extension. That person didn't have any "bad" requests or prompts that could trigger/cross the ToS, so I suspect it's the case for some people reporting that here.
I finally got my ban lifted. For anyone else affected reach out to known
employees on X. A quick post saying what happened, mention Anthropic and
someone should respond.
No one responded to the official appeal, and based on the small sampling
here I assume lots got banned over the break due to Opus 4.5 release and
their holiday usage increase.
Love oh-my-open code but need to use the API key not OAuth which makes it
prohibitively expensive!
I think the bans are happening to users who changed their plan while using OAuth in OpenCode. Does that make sense? I've had Max for 4 months and I've been using OpenCode for 1 month, and so far everything's been fine.
Should I be careful now that Claude has been updated to version 2.1.2?
I want to share my experience. I think that indeed, the wave of ban occurred after users already had their Claude account linked to Opencode and they upgraded their subscription.
In my case, I had forgotten to pay for my subscription so it switched to Free Plan then I tried to pay and a few hours later I was banned.
I had Oh-My-Opencode plugin et few others plugins.
I used OpenCode with a Claude Max 5x plan (not realizing it violated TOS) and it started throwing errors after a couple hours -- it appears they detected an agent was using the web ui. Fortunately, I did not get banned.
I think that's really not open code, that is the issue here. Never used it, but got banned 2 times with different accounts, and both times just minutes after upgrading from pro to max5 subscription. Never got the reason why, of course, support prefers not to answer on that. And yeah, I know that creating an account after getting a ban is again - prohibited by their terms of service, but if I was banned for that second time - why only a half-year after and only on upgrading subscription?
Either way, I'm using Google AI pro now, which is cheaper and have similar limits on Claude, but with addition of Gemini and some bonuses like GDrive space. Not going back.
anthropic legal demanded we respond to this issue and close it
i can't speak for their internal policies on who they ban and when, but their ToS prohibits using your claude max subscription outside of claude code. their docs have been recently updated to make this even more restrictive
Reacted by Daniel Maricic
Reacted by Alex, Luis Angel Ayala and rysson
Reacted by 百地 希留耶, stefanatanasovmk, Luis Angel Ayala and Konsti-s
@thdxr can you just make a deal with the big open chinese models so we can spend our money with you on zen directly instead please. I'm kinda sick of these greedy megacorps disingenuously advertising these large token limit plans and then acting like using opencode is some sort of massive moral violation. It is within our Digital Human Right of Adversarial Interoperability to consume the token limits we pay for with any client of our choosing.
Reacted by Adam Spiers, stefanatanasovmk, Evandro Camargo, Alex, 叶子 and Julian Burner
Reacted by knguyen298, David Stern, Navid Khan and Azin Sharaf
I was on Claude's free plan. I have never used any illegal or harmful prompts that could trigger Anthropic or any AI platform's terms of service. Then I purchased the Claude Max 5x plan. After purchasing, I sent a few messages like “hi” and “hello”. I also worked on an AI language translator app and made some UI improvements. After that, I went to eat. When I came back, I found that my account had been banned after an automated review.
Note that this was a completely fresh installation of Claude Code. My PC also has a fresh Windows install, and my IP is clean. I have no previous violations on any AI platform. I am deeply frustrated, and I have been waiting for a week now without any response. I also have not received any update on my appeal. They said I would get a response by June 22.
Activity
github-actions commentedon Jan 5, 2026
This issue might be related to other OAuth authentication issues. Please check:
However, this issue specifically raises important concerns about terms of service compliance that should be addressed separately.
ilyesm commentedon Jan 5, 2026
The common denominator seems to be the oh-my-opencode plugin.
malhashemi commentedon Jan 5, 2026
Hi @johnellison I don't believe that is the case, I have been using OC with CC Max 20 for months now with no issues, I also just saw a person who had your same exact issue and he appealed to Anthropic and got himself unbanned, I asked him if he mentioned he was using OC in the appeal and he confirmed he did. Anthropic ToS is about using it with competing products, OC is not competing with Anthropic main product (the models) as a matter of fact the entire revenue resulting from me using OC is going to Anthropic, I'd gladly switch the model providers before switching OC. If anything OC is the reason Anthropic is getting any penny out of me.
Opus 4.5 is great but other models are not that far behind.
Maybe the dev team can confirm if they have spoken with the Anthropic team about this
ilyesm commentedon Jan 5, 2026
@malhashemi how did they do the appeal?
malhashemi commentedon Jan 5, 2026
I am not sure of the exact mechanism but here is the comment about mentioning OpenCode usage to them and getting unbanned, you can try to reach out to the person
ssggcho commentedon Jan 5, 2026
I hope this issue gets resolved. Opencode has gone viral recently in the Korean community of x and threads, and I think this issue is a significant barrier to people's decision to use Opencode.
stefanhoelzl commentedon Jan 5, 2026
I got banned before using opencode, without any known violations of their ToS.
I only discovered opencode because I got banned.
bitzerk commentedon Jan 5, 2026
I just got banned as well. I was on their Pro plan for weeks using OpenCode with no issues. 1 day after upgrading to their Max plan, it somehow triggered a ban for my account.
(@ilyesm : I also use zsh, but I do NOT use the
oh-my-opencodeplugin, so it's a mystery. 🤔)I don't fault OpenCode for this. Terrible experience on Anthropic's side.
My experience with Anthropic:
How the hell am I supposed to appeal something if I don't even know the violation?
This is the exact reason we need projects like OpenCode, and why I chose this over CC in the first place.
I told Anthropic I'll happily switch to a new AI provider.
Annonator commentedon Jan 6, 2026
Hey Folks,
same happened to me, used OpenCode extensively on my Claude Mx 5x subscription, got hooked on their holiday limit increase, when i did run out of tokens I purchased the 20x plan, kicked off a new task in OpenCode, went grocery shopping and got banned within 20 minutes. No explanation, nothing. I did fill out the appeal form, already waiting 3 days for a reply, i did not mention opencode though.
You can find information about the appeal process here: https://support.claude.com/en/articles/8241253-safeguards-warnings-and-appeals
lkyxuan commentedon Jan 7, 2026
SAME
rubnogueira commentedon Jan 7, 2026
I know a case of a person who got banned using exclusively Claude Code + their VSCode extension. That person didn't have any "bad" requests or prompts that could trigger/cross the ToS, so I suspect it's the case for some people reporting that here.
johnellison commentedon Jan 7, 2026
swarm-agent commentedon Jan 9, 2026
I also got unbanned, but trust me, I won't be back
angelguillen10 commentedon Jan 9, 2026
I think the bans are happening to users who changed their plan while using OAuth in OpenCode. Does that make sense? I've had Max for 4 months and I've been using OpenCode for 1 month, and so far everything's been fine.
Should I be careful now that Claude has been updated to version 2.1.2?
xammen commentedon Jan 9, 2026
I want to share my experience. I think that indeed, the wave of ban occurred after users already had their Claude account linked to Opencode and they upgraded their subscription.
In my case, I had forgotten to pay for my subscription so it switched to Free Plan then I tried to pay and a few hours later I was banned.
I had Oh-My-Opencode plugin et few others plugins.
angelguillen10 commentedon Jan 9, 2026
anthropics/claude-code#17118 Comment here
cbrake commentedon Jan 20, 2026
I used OpenCode with a Claude Max 5x plan (not realizing it violated TOS) and it started throwing errors after a couple hours -- it appears they detected an agent was using the web ui. Fortunately, I did not get banned.
MadRedFox commentedon Feb 2, 2026
I think that's really not open code, that is the issue here. Never used it, but got banned 2 times with different accounts, and both times just minutes after upgrading from pro to max5 subscription. Never got the reason why, of course, support prefers not to answer on that. And yeah, I know that creating an account after getting a ban is again - prohibited by their terms of service, but if I was banned for that second time - why only a half-year after and only on upgrading subscription?
Either way, I'm using Google AI pro now, which is cheaper and have similar limits on Claude, but with addition of Gemini and some bonuses like GDrive space. Not going back.
thdxr commentedon Feb 19, 2026
anthropic legal demanded we respond to this issue and close it
i can't speak for their internal policies on who they ban and when, but their ToS prohibits using your claude max subscription outside of claude code. their docs have been recently updated to make this even more restrictive
smashah commentedon Feb 20, 2026
@thdxr can you just make a deal with the big open chinese models so we can spend our money with you on zen directly instead please. I'm kinda sick of these greedy megacorps disingenuously advertising these large token limit plans and then acting like using opencode is some sort of massive moral violation. It is within our Digital Human Right of Adversarial Interoperability to consume the token limits we pay for with any client of our choosing.
fruch commentedon Mar 22, 2026
@thdxr can we get it disabled ? it's really misleading, and a waste of time.
if it's illegal and gonna be block quite after few hours or days, when keep it ?
nettanvirdev commentedon Jun 15, 2026
I was on Claude's free plan. I have never used any illegal or harmful prompts that could trigger Anthropic or any AI platform's terms of service. Then I purchased the Claude Max 5x plan. After purchasing, I sent a few messages like “hi” and “hello”. I also worked on an AI language translator app and made some UI improvements. After that, I went to eat. When I came back, I found that my account had been banned after an automated review.
Note that this was a completely fresh installation of Claude Code. My PC also has a fresh Windows install, and my IP is clean. I have no previous violations on any AI platform. I am deeply frustrated, and I have been waiting for a week now without any response. I also have not received any update on my appeal. They said I would get a response by June 22.