logoalt Hacker News

malisperyesterday at 9:07 PM6 repliesview on HN

Since there's a lot of questions about what this means, let me explain.

Anthropic has two different products that are relevant here: the Claude API and Claude Code. The Claude API has usage based pricing. The more you use, the more you pay. With Claude Code, you can get a monthly subscription which gives you a fixed amount of usage. Comparing equivalent token generation between the Claude API and Claude Code, Claude Code with a subscription is much cheaper.

When it comes to third party products such as OpenClaw and OpenCode, Anthropic has made it clear those products should be using the Claude API and not the internal Claude Code APIs. OpenClaw and OpenCode have both been using the internal Claude Code APIs as when a user has a Claude Code subscription, the internal Claude Code API gives you tokens at a much cheaper rate than the Claude API. Presumably Anthropic makes Claude Code cheaper than the Claude API because they are willing to give users a discount for them to use Claude Code vs a competing product such as OpenCode.

It looks like until recently OpenCode tried to get around Anthropic's requirements by offering "plugins" in OpenCode that would allow users to use their Claude Code subscription in OpenCode. This PR mentions as much at[0][1]:

> There are plugins that allow you to use your Claude Pro/Max models with OpenCode. Anthropic explicitly prohibits this.

> Previous versions of OpenCode came bundled with these plugins but that is no longer the case as of 1.3.0

This PR seems to be in response to Anthropic threatening OpenCode with legal action if they keep using the internal Claude Code APIs.

  [0] https://github.com/anomalyco/opencode/pull/18186/changes#diff-b5d5affc6941bf7bb19805cc8f556cd1b9ae73ffd99e520120700536b166f8c0L310
  [1] https://github.com/anomalyco/opencode/pull/18186/changes#diff-b5d5affc6941bf7bb19805cc8f556cd1b9ae73ffd99e520120700536b166f8c0R321

Replies

achompasyesterday at 10:11 PM

Yep, well said and great, sharp explanation.

I think we can attribute a bunch of consternation here to drift between assumed and actual licensing terms.

The actual licensing terms for Claude Code expressly prohibit use of the product outside of the Claude Code harness. If you want Opus outside of CC, the API is available for your use anytime.

Some percentage of the community seems to assume their Claude Code subscription licenses allow free usage of CC across any product surface - including competing products like OpenCode. While this is a great way to save on API costs, the assumption is incorrect. In fact, it is *so* incorrect that Anthropic has encoded their licensing terms into their Terms of Service, and a result can take legal action against any violating parties.

We can have separate discussions about Anthropic’s use of the Common Crawl in pre-training, or whether foundation labs adhere to robots.txt conventions. But those don’t directly impact Anthropic’s right to bring litigation.

——

Outside of that I think angry users have their own stated preferences v revealed preferences here. They claim they want Opus on their terms, and Anthropic’s actions infringe on their user rights.

Angry folks: Opus is right there! You just need an API key! The reality is you want Opus in your devtools of choice at discounted rates. You could at least be honest about your consternation

show 2 replies
mech422today at 12:45 AM

The part I never really understood, was I thought the subscriptions were to try and boost Opus usage, not claude code usage ? I'm not sure why they care whether you use API or claude, as they limit the number of tokens you can use anyway - and once the request hits the model, I would have thought it takes the same amount of effort to process it regardless of where it comes from ?

show 1 reply
faangguyindiayesterday at 11:52 PM

Claude code might be subsidized but there are other risks

Like if any agent can use claude models then it exposes them to distillation risk. Where data gathered from millions of such agent usage can easily be used to train a model, making their model superiority subpar

Second thing is, to improve their own coding model, you need predictable input.

If input to their model is all over the place (using different harnesses adds additional entropy to data) then it's hard to improve the model along 1 axis.

Cache is money saver in computing. Their own client might be lot better at caches than any other agent so they do not want to lose money yet end up with disgrunted customer that claude isn't working as good

And also, if a user can simply switch model in an agent. Then what moat does anthropic have? Claude code will not include other companys models and thus will allow them to make their claude code more "complex" with time so the workflows are ingrained in users psyche to the point using anything else becomes very difficult and user quickly returns to claude code

show 1 reply
esperentyesterday at 11:36 PM

> Anthropic has two different products that are relevant here: the Claude API and Claude Code.

No, the two relevant products are Claude API vs Claude subscription. There's no "Claude Code subscription". There's just a subscription for all Claude services at once.

show 1 reply
sufehmiyesterday at 9:39 PM

this is actually the best explanation of this situation, why is it downvoted?

show 1 reply