Skip to content

Using opencode with Anthropic OAuth violates ToS & Results in Ban #6930

Closed

Description

@johnellison

Description

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.

Plugins

oh-my-opencode

OpenCode version

1.0.223

Steps to reproduce

  1. Log into Claude via OAuth
  2. Use opencode with Claude subscription
  3. Try to upgrade Claude
  4. Get banned

Screenshot and/or share link

No response

Operating System

No response

Terminal

iTerm2

Activity

  1. github-actions commented on Jan 5, 2026

    @github-actions
    Contributor

    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.

  2. ilyesm commented on Jan 5, 2026

    @ilyesm

    The common denominator seems to be the oh-my-opencode plugin.

  3. malhashemi commented on Jan 5, 2026

    @malhashemi
    Contributor

    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

  4. ilyesm commented on Jan 5, 2026

    @ilyesm

    @malhashemi how did they do the appeal?

  5. malhashemi commented on Jan 5, 2026

    @malhashemi
    Contributor

    @malhashemi how did they do the appeal?

    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

  6. ssggcho commented on Jan 5, 2026

    @ssggcho

    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.

  7. stefanhoelzl commented on Jan 5, 2026

    @stefanhoelzl

    I got banned before using opencode, without any known violations of their ToS.

    I only discovered opencode because I got banned.

  8. bitzerk commented on Jan 5, 2026

    @bitzerk

    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:

    1. Hard-dropped my connection to Claude without warning.
    2. 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).
    3. 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.

  9. Annonator commented on Jan 6, 2026

    @Annonator

    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

  10. lkyxuan commented on Jan 7, 2026

    @lkyxuan

    SAME

  11. rubnogueira commented on Jan 7, 2026

    @rubnogueira

    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.

  12. johnellison commented on Jan 7, 2026

    @johnellison
    Author
  13. swarm-agent commented on Jan 9, 2026

    @swarm-agent

    I also got unbanned, but trust me, I won't be back

  14. angelguillen10 commented on Jan 9, 2026

    @angelguillen10

    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?

  15. xammen commented on Jan 9, 2026

    @xammen

    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.

  16. angelguillen10 commented on Jan 9, 2026

    @angelguillen10
  17. cbrake commented on Jan 20, 2026

    @cbrake

    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.

  18. MadRedFox commented on Feb 2, 2026

    @MadRedFox

    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.

  19. thdxr commented on Feb 19, 2026

    @thdxr
    Member

    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

  20. smashah commented on Feb 20, 2026

    @smashah

    @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.

  21. fruch commented on Mar 22, 2026

    @fruch

    @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 ?

  22. nettanvirdev commented on Jun 15, 2026

    @nettanvirdev

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingzenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions