logoalt Hacker News

Anthropic Explicitly Blocking OpenCode

117 pointsby ryanvogeltoday at 12:04 AM92 commentsview on HN

Comments

pton_xdtoday at 12:36 AM

I do admit to feeling some schadenfreude over them reacting to their product being leeched by others.

I get it though, Anthropic has to protect their investment in their work. They are in a position to do that, whereas most of us are not.

show 5 replies
Aurornistoday at 2:31 AM

The title is misleading if you don’t read the whole text: Anthropic is not blocking OpenCode from the API that they sell.

They’ve blocked OpenCode from accessing the private Claude Code endpoints. These were not advertised or sold as usable with anything else. OpenCode reverse engineered the API and was trying to use it.

The private API isn’t intended for use with other tools. Any tool that used it would get blocked.

show 1 reply
lemmingtoday at 1:06 AM

Obviously Anthropic are within their rights to do this, but I don’t think their moat is as big as they think it is. I’ve cancelled my max subscription and have gone over to ChatGPT pro, which is now explicitly supporting this use case.

show 2 replies
jjallentoday at 1:49 AM

This is definitely Barbara Streisanding right now. I had never heard of OpenCode. But I sure have now! Will have to check it out. Doubt I’ll end up immediately canceling Claude Code Max, but we’ll see.

show 3 replies
codesparkletoday at 2:07 AM

Previous related discussion: https://news.ycombinator.com/item?id=46586766

geeunitstoday at 12:44 AM

i've been on claude code since before they even HAD subscriptions (api only) and since getting max from day 1 - I haven't once have assumed that access was allowed outside of CC. anyone who thinks otherwise is leaning into that cognitive dissonance

Wowfunhappytoday at 12:57 AM

Given that Claude Code is a scriptable CLI tool with an SDK, why can't OpenCode just call Claude instead of reusing its auth tokens?

show 2 replies
chatmastatoday at 12:48 AM

It’ll be interesting to see how far they take this cat and mouse game. Will “model attestation” become a new mechanism for enforcing tight coupling between client and inference endpoint? It could get weird, with secret shibboleths inserted into model weights…

show 1 reply
bfleschtoday at 12:51 AM

When using their web UI with Firefox and ublock origin it regularly freezes the tab when the answer is written out. Someone at Anthropic had to create a letter-by-letter typing animation with GIF image and sentry callbacks every five seconds, which ends up in an infinite loop.

I've seen reports about this bug affecting Firefox users since Q3 2025. They were reported over various channels.

Not a fan of them prioritizing the combat against opencode instead of fixing issues that affect paying users.

show 1 reply
wg0today at 1:12 AM

I don't understand what's the threat from a CLI which is useless without AI models and Anthropic could be one of them?

show 2 replies
syntaxingtoday at 12:59 AM

While Anthropic can choose whatever tool uses their api or subscription but I never fully understood what they gain from having the subscription explicitly only work for claude code. Is the issue that it disincentivizes the use of their API?

show 5 replies
bagelstoday at 1:51 AM

I didn't know, guessing some others don't either:

"The open source AI coding agent

Free models included or connect any model from any provider, including Claude, GPT, Gemini and more."

jmspringtoday at 12:51 AM

Have had max for awhile, funny thing opencode still sorta works with my cc max subscription. That said after awhile open code just hangs. My workflow involves saving state frequently. I cancel open back up and continue then it’s performant for maybe 2-3 token context windows, repeat

numberstoday at 12:52 AM

you can get around this by making an agent in opencode and that agent should not mention opencode at all, e.g. "You're an agent that uses Claude Opus..." and it will just work.

ashirviskastoday at 1:51 AM

Well, using Claude Pro/Max Calude Code api without Claude Code, instead of their actual API they monetize goes against their ToS.

I don't like it too, but it is what it is.

If I gave free water refils if you used my brand XYZ water bottle, you should not cry that you don't get free refills to your ABC branded bottle.

It may be scummy, but it does make sense.

throwaway314155today at 12:37 AM

Didn’t they work around this last week by just putting “You are Claude” in the system prompt?

ChrisArchitecttoday at 2:07 AM

Related:

Anthropic blocks third-party use of Claude Code subscriptions

https://news.ycombinator.com/item?id=46549823

show 1 reply
renewiltordtoday at 12:32 AM

Yeah, the pro/max access require Claude Code. Should use the API if you want to build a tool on it.

paxystoday at 12:55 AM

Meh, if you want access to the API then pay for the API. It's as simple as that.

show 2 replies
refulgentistoday at 12:30 AM

I believe LLM providers should ultimately be utilities from a consumer perspective, like water suppliers. I own the faucet, washer, bathtub, and can switch suppliers at will. I’ve been working on a FOSS client for them for nearly three years.

I hope that why the following is purely a factual distinction, not an excuse or an attempt to empathize.

The difference between the other entities named and OpenCode is this:

OpenCode uses people’s Claude Code subscriptions. The other entities use the API.

Specifically, OpenCode reverse‑engineers Claude Code’s OAuth endpoints and API, then uses them. This is harmful from Anthropic's perspective because Claude Code is subsidized relative to the API.

Edit: I’m getting “You’re posting too fast” when replying to mr_mitm. For clarity, there is no separate API subscription. Anthropic wants you to use one of two funnels for coding with their LLMs: 1. The API (through any frontend), or 2. A subscription through an Anthropic‑owned frontend.

show 6 replies
bopbopbop7today at 12:48 AM

[flagged]

show 1 reply
lvl155today at 12:53 AM

Please stop spreading this nonsense. Anthropic is not blocking Opencode. You can use all their models within Opencode using API. Anthropic simply let Dax and team use unlimited plans for the past year or so. I don’t even know if it was official. I find this a bit comical and immature. You want to use the models, just pay for it. Why are people trying to nickel and dime on tools that they use day in day out?

show 1 reply
ankit219today at 1:07 AM

I do not understand the stubbornness with wanting to use the auth part. On local, just call the claude code from your harness, or better there is a claude agent sdk, both of which have clear auth and are permitted acc to anthropic. But to say that they want to use this auth as a substitution for API is a different issue altogether.