News for hackers. Stuff that matters.
Re:OpenCode – The open source AI coding agent by pczy on Friday March 20, 2026 @05:46PM (#47461079)
They are not blacklisted. You are allowed to use the API at commercial usage pricing. You are just not allowed to use your Claude Code subscription with OpenCode (or any other third‑party harness for the record).
Re:OpenCode – The open source AI coding agent by oldestofsports on Friday March 20, 2026 @06:05PM (#47461303)
I dont understand this, what is the difference, technically!
Re:OpenCode – The open source AI coding agent by miki123211 on Friday March 20, 2026 @06:33PM (#47461625)
Anthropic's model deployments for Claude Code are likely optimized for Claude Code. I wouldn't be surprised if they had optimizations like sharing of system prompt KV-cache across users, or a speculative execution model specifically fine-tuned for the way Claude Code does tool calls.

When setting your token limits, their economics calculations likely assume that those optimizations are going to work. If you're using a different agent, you're basically underpaying for your tokens.

Re:OpenCode – The open source AI coding agent by echelon on Friday March 20, 2026 @06:49PM (#47461802)
- OR - it's about lock-in.

Build the single pane of glass everyone uses. Offer it under cost. Salt the earth and kill everything else that moves.

Nobody can afford to run alternative interfaces, so they die. This game is as old as time. Remember Reddit apps? Alternative Twitter clients?

In a few years, CC will be the only survivor and viable option.

It also kneecaps attempts to distill Opus.

Re:OpenCode – The open source AI coding agent by fnordpiglet on Friday March 20, 2026 @06:54PM (#47461870)
It’s probably a mixture of things including direct control over how the api is called and used as pointed out above and giving a discount for using their ecosystem. They are in fact a business so it should not surprise anyone they act as one.
Re:OpenCode – The open source AI coding agent by esperent on Friday March 20, 2026 @07:03PM (#47461966)
It might well be a mixture, but 95% of that mixture is vendor lock in. Same reason they don't support AGENTS.md, they want to add friction in switching.
Re:OpenCode – The open source AI coding agent by mgambati on Friday March 20, 2026 @07:33PM (#47462297)
They can try add as much as friction they want. A simple rename in the files and directories like .claude makes the thing work to move out of CC.

It’s not like moving from android to iOS.

Re:OpenCode – The open source AI coding agent by esperent on Friday March 20, 2026 @07:56PM (#47462478)
You'd be surprised how effective small bits of friction are.
Re:OpenCode – The open source AI coding agent by xvector on Friday March 20, 2026 @08:50PM (#47462893)
If it was lock in they wouldn't make it absolutely trivial to change inference providers in Claude Code.
Re:OpenCode – The open source AI coding agent by esafak on Saturday March 21, 2026 @01:09PM (#47468916)
The goal is to use Anthropic subscriptions outside of Claude Code!! That is the lock in.
Re:OpenCode – The open source AI coding agent by AlexCoventry on Friday March 20, 2026 @10:48PM (#47463554)
It's very straightforward to instrument CC under tmux with send-keys and capturep. You could easily use that for distillation, IMO. There are also detailed I/O logs.
Re:OpenCode – The open source AI coding agent by hereme888 on Friday March 20, 2026 @06:08PM (#47461335)
Subscription = token that requires refreshing 1-2x/day, and you get the freedom to use your subscription-level usage amount any way you want.

API = way more expensive, allowed to use on your terms without anthropic hindering you.

Re:OpenCode – The open source AI coding agent by NewsaHackO on Friday March 20, 2026 @07:51PM (#47462425)
Also, Subscription: against the TOS of Claude Code, need to spoof a token and possibly get banned due to it.
Re:OpenCode – The open source AI coding agent by hereme888 on Saturday March 21, 2026 @11:52AM (#47468134)
Yup. And right now I'm straight-up breaking Claude's TOS by modifying OpenCode to still accept tokens. But I only have a few days left and don't care if they ban me. I'm using what I paid for.
Re:OpenCode – The open source AI coding agent by KronisLV on Friday March 20, 2026 @06:26PM (#47461533)
With Anthropic, you either pay per token with an API key (expensive), or use their subscription, but only with the tools that they provide you - Claude, Claude Cowork and Claude Code (both GUI and CLI variants). Individuals generally get to use the subscriptions, companies, especially the ones building services on top of their models, are expected to pay per token. Same applies to various third party tools.

The belief is that the subscriptions are subsidized by them (or just heavily cut into profit margins) so for whatever reason they're trying to maintain control over the harness - maybe to gather more usage analytics and gain an edge over competitors and improve their models better to work with it, or perhaps to route certain requests to Haiku or Sonnet instead of using Opus for everything, to cut down on the compute.

Given the ample usage limits, I personally just use Claude Code now with their 100 USD per month subscription because it gives me the best value - kind of sucks that they won't support other harnesses though (especially custom GUIs for managing parallel tasks/projects). OpenCode never worked well for me on Windows though, also used Codex and Gemini CLI.

Re:OpenCode – The open source AI coding agent by anonym29 on Friday March 20, 2026 @06:31PM (#47461594)
>or perhaps to route certain requests to Haiku or Sonnet instead of using Opus for everything, to cut down on the compute

You can point Claude Code at a local inference server (e.g. llama.cpp, vLLM) and see which model names it sends each request to. It's not hard to do a MITM against it either. Claude Code does send some requests to Haiku, but not the ones you're making with whatever model you have it set to - these are tool result processing requests, conversation summary / title generation requests, etc - low complexity background stuff.

Now, Anthropic could simply take requests to their Opus model and internally route them to Sonnet on the server side, but then it wouldn't really matter which harness was used or what the client requests anyway, as this would be happening server-side.

Re:OpenCode – The open source AI coding agent by KronisLV on Saturday March 21, 2026 @05:18AM (#47465436)
Sounds pretty sane, the same way how OpenWebUI and probably other software out there also has a concept of “tool models”, something you use for all the lower priority stuff.

Actually curious to hear what others think about why Anthropic is so set on disallowing 3rd party tools on subscriptions.

Re:OpenCode – The open source AI coding agent by kasey_junk on Saturday March 21, 2026 @07:28AM (#47466072)
The sota models are largely undifferentiated from each other in performance right now. And it’s possible open weight models will get “good enough” relatively soonish. This creates a classic case where inference becomes a commodity. Commodities have very low margins. Training puts them in an economic hole where low margins will kill them.

So they have to move up the stack to higher margin business solutions. Which is why they offer subsidized subscription plans in the first place. It’s a marketing cost. But they want those marketing dollars to drive up the stack not commodity inference use cases.

Re:OpenCode – The open source AI coding agent by hackingonempty on Friday March 20, 2026 @06:27PM (#47461549)
Anthropic has an API, you can use any client but they charge per input/output/cache token.

One-price-per-month subscriptions (Claude Code Pro/MAX @ $20/$100/$200 a month) use a different authentication mechanism, OAUTH. The useful difference is you get a lot more inference than you can for the same cost using the API but they require you to use Claude Code as a client.

Some clients have made it simple to use your subscription key with them and they are getting cease and desist letters.

Re:OpenCode – The open source AI coding agent by jwpapi on Friday March 20, 2026 @06:16PM (#47461430)
about 30 times more cost
Re:OpenCode – The open source AI coding agent by wilg on Friday March 20, 2026 @06:23PM (#47461507)
Sometimes people want to be real pedants about licensing terms when it comes to OSS, assuming such terms are completely bulletproof, other times people don't think the terms of their agreement with a service provider should have any force at all.
Re:OpenCode – The open source AI coding agent by hereme888 on Friday March 20, 2026 @06:05PM (#47461305)
Was it not obvious what the OP meant by blacklisted?
Re:OpenCode – The open source AI coding agent by Maxatar on Friday March 20, 2026 @06:15PM (#47461427)
Blacklisted usually means something is banned. OpenCode is not banned from using Anthropic's API.
Re:OpenCode – The open source AI coding agent by enraged_camel on Friday March 20, 2026 @06:09PM (#47461343)
No, it was not? For those whose native language is English, "blacklisted" implies Claude API will not allow OpenCode.
Re:OpenCode – The open source AI coding agent by theshrike79 on Saturday March 21, 2026 @11:39AM (#47467995)
API will, they just can spoof Claude Code OAUTH credentials
Re:OpenCode – The open source AI coding agent by Robdel12 on Friday March 20, 2026 @06:47PM (#47461786)
Has it occurred to anyone that Anthropic highest in the industry API pricing is a play to drive you into their subscription? For the lock-in?
Re:OpenCode – The open source AI coding agent by Macha on Friday March 20, 2026 @07:15PM (#47462110)
The highest in in the industry for API pricing right now is GPT-5.4-Pro, OpenRouter adding that as an option in their Auto Router was when I had to go customise the routing settings because it was not even close to providing $30/m input tokens and $180/m output tokens of value (for context Opus 4.6 is $5/m input and $25/m output)

(Ok, technically o1-pro is even more expensive, but I'm assuming that's a "please move on" pricing)

Re:OpenCode – The open source AI coding agent by boxedemp on Friday March 20, 2026 @09:23PM (#47463093)
I have my own harness I wrap Claude CLI in, I wonder if I'm breaking the rules...
Re:OpenCode – The open source AI coding agent by arcanemachiner on Friday March 20, 2026 @10:32PM (#47463466)
If you're not paying full-fat API prices, then probably.

From what I've heard, the metrics used by Anthropic to detect unauthorized clients is pretty easy to sidestep if you look at the existing solutions out there. Better than getting your account banned.

Re:OpenCode – The open source AI coding agent by blackqueeriroh on Saturday March 21, 2026 @12:18AM (#47463937)
No, they specifically said it’s only if you’re trying to build a whole other product for public consumption on top of it
Re:OpenCode – The open source AI coding agent by theshrike79 on Saturday March 21, 2026 @11:33AM (#47467943)
If you’re just essentially calling claude -p you’re fine
Re:OpenCode – The open source AI coding agent by hrmtst93837 on Saturday March 21, 2026 @04:16AM (#47465087)
So it's less 'blacklist' and more a licensing gotcha designed to crush price arbitrage, basically rent-seeking by toggling where the tollbooth sits.