The thing is OpenCode IS a great product, I'm not sure it's "superior", but unfortunately the way things are evolving where the model + harness pairing is so important, it does seem like they are in a similar position to Cursor (and do not have the resources to try to pivot into developing their own foundational model).
https://github.com/anomalyco/opencode/issues/10416
- their stance on privacy
The also leaked all prompts to OpenAI until very recently.
When you use that API key with OpenCode, you're circumventing that.
The PS5 is subsidized because the make money with the games.
Printers are subsidized because the make money with the ink.
The API use is subsidized because they make money with Claude Code? I would understand if Claude Code could only be used with Anthropics API but not the other way around. 1 million tokens is 1 million tokens unless Claude Code is burning tokens and others are more efficient in token use.
Those tokens going to other providers are tokens not going to Anthropic, so they want to lock you in with Claude Code. And it clearly works, since a lot of people swear by it.
Their subscription plans aren't actually "Claude Code Plans". They're subscription plans for their tool suite, which includes claude code. It's offered at a discount because they know the usage of this customer base.
OpenCode used a private API to imitate Claude Code and connect as if it was an Anthropic product, bypassing the need to pay for the API that was for this purpose.
Anthropic has been consistent on this from the start. The subscription plans were never for general use with other tools. They looked the other way for a while but OpenCode was openly flaunting it, so they started doing detection and blocking.
OpenCode and maintainers have gone on the offense on Twitter with some rather juvenile behavior and now they're trying to cheekily allow a plugin system so they can claim they're not supporting it while very obviously putting work into supporting it.
Most of the anger in this thread comes from people who want their monthly subscription to be usable as a cheaper version of the public API, even though it was never sold as that.
Like with lawyers or something?
Anthropic leadership is delusional, not suicidal, so they would rather use their lawyers.
Source: i run pretty much all of these agents (codex, cc, droid, opencode, amp, etc) side-by-side in agentastic.dev and opencode had basically 0 win-rate over other agents.
OpenCode lets people take the Claude-Code-only-API-Key, and lets them use it in a different harness. Anthropic's preferred way for such interaction is getting a different, Claude API key (and not Claude Code SDK API key).
---
A rough analogy might be something like getting subsidized drinks from a cafe, provided you sit there a eat food. What if someone says, go to the cafe and get free drink and come sit over at our cafe and order food. It is a loose analogy, but you get the idea.
You have zero proof for this claim. It's like people read somewhere that stuff and keep spitting it out again and again without understanding..
Because they control the harness(es) and the backend, they can optimise caching and thus the costs to them.
We don't know if Claude Code bleeds money for every user that touches it. Probably not. But the different pricing is a strong enough clue that it's an appeal product with subsidized tokens consumption.
How do you figure? That doesn't make any sense to me.
What Anthropic is saying is - please dont use the API key from Claude Code for that.
Is this actually the case though? Because I can't imagine what kind of hardware they're running to have costs per 1M tokens be above like $3.
hint: {
opencode: "recommended",
-anthropic: "API key",
openai: "ChatGPT Plus/Pro or API key",
}[x.id],
They're removing the ability to use OpenCode via Anthropic API keyBanning them from using the pay-per-token API key would be bad business.
that code is just a cli hint to which LLM they recommend using. so they stop recommending anthropic. rightfully so.