frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Anthropic Explicitly Blocking OpenCode

https://gist.github.com/R44VC0RP/bd391f6a23185c0fed6c6b5fb2bac50e
97•ryanvogel•1h ago

Comments

refulgentis•1h ago
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.

mr_mitm•1h ago
I believe they want you to use the API subscription if you want to use their service with OpenCode. It's possible, just more expensive.
plusplusungood•1h ago
That is analogous to the water company charging you more if you use a faucet from another company. It's not a fair competition.

That's why we are supposed to have legislation to regulate that utilities and common carriers can't behave that way.

charcircuit•41m ago
It wasn't just hooking up a new faucet. It was hijacking an API key intended for ClaudeCode specifically. So in this metaphor it would be hooking up a secondary water pipe from the water company intended only for sprinklers they provide to your main water supply. The water company notices abnormal usage coming from the sprinkler water pipe and shuts it off, while leaving your primary water pipe alone.
codys•25m ago
Possibly a better comparison (though a bit dated now) would be AT&T (or whatever telephone monopoly one had/has in their locality) charging an additional fee to use a telephone that isn't sold/rented to them by AT&T.
lifetimerubyist•1h ago
This is what the APIs are for. You pay for what you use, just like water.
hombre_fatal•1h ago
Fwiw, your main point seems scattered across your post where sentences refer to supposed context established by other sentences. It's making it hard to understand your position.

Maybe try the style where you start off with your position in a self-contained sentence, and then write a paragraph elaborating on it.

mr_mitm•58m ago
Also, they should try editing their post less frequently. Hard to have a discussion this way.
_medihack_•1h ago
It's exactly like water. Use their API, and you pay as much water as you drink. But visit them in their pub, and you get a pretty big buffet with lots of water for a one-time price.
bflesch•41m ago
You're hitting an important point. I might go on a tangent here.

It's up to operating systems to offer a content consumption experience for end users which reverses the role of platforms back to their original, most basic offers. They all try to force you into their applications which are full of tracking, advertisements, upsells, and anti-consumer interface design decisions.

Ideally the operating system would untangle the content from these applications and allow the end user to consume the content in a way that they want. For example Youtube offers search, video and comments. The operating system should extract these three things and create a good UI around it, while discarding the rest. Playlists and viewing history can all be managed in the offline part of the application. Spotify offers music, search and lyrics but they want you to watch videos and use social media components in their very opinionated UIs, while actively fighting you to create local backup of your music library.

Software like adblockers, yt-dlp and streamlink are already solving parts of these issues by untangling content from providers for local consumption in a trusted environment. For me the fight by Anthropic against OpenCode fits into this picture.

These companies are acting hostile even towards paying customers, each of them trying to build their walled gardens.

renewiltord•1h ago
Yeah, the pro/max access require Claude Code. Should use the API if you want to build a tool on it.
pton_xd•1h ago
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.

dsfiof•1h ago
Hey! It was a lot of work stealing everything from you, of course you have to pay me a premium to get access to it!
piskov•24m ago
Seems like another donation to python is coming to mitigate this pr scandal
digiown•5m ago
They cannot actually do this as long as they keep Claude code open source. It is always going to be trivial to replicate how it sends requests in a third party tool.
jyscao•1m ago
CC isn’t open sourced.
anon373839•2m ago
> protect their investment

Viewed another way, the preferential pricing they're giving to Claude Code (and only Claude Code) is anticompetitive behavior that may be illegal.

throwaway314155•1h ago
Didn’t they work around this last week by just putting “You are Claude” in the system prompt?
geeunits•1h ago
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
chatmasta•1h ago
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…
plagiarist•52m ago
I would be so furious if fucking LLM agents are what finally give browser attestation a foothold on our hardware.
bopbopbop7•1h ago
This is unacceptable. I was attempting to write a for loop with OpenCode today but couldn't. This explains a lot. I had no choice but to leave work.
jmspring•58m ago
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
bflesch•57m ago
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.

recursive•42m ago
How can you be sure the issue is not with ublock?
bflesch•38m ago
It also happens with extensions and Firefox adblocker disabled. Might be connected to one of the Firefox anti tracking features, but I was unable to figure it out. The profiler shows an infinite loop.

I've found several reports about this issue. Seems they don't care about Firefox.

numbers•56m ago
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.
lvl155•55m ago
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?
brysonreece•13m ago
You can clearly run the provided gist. Calling “You are OpenCode” in the system prompt fails, but not if you replace the name with another tool name (e.g. “You are Cursor”, “You are Devin”). Pretty blatant difference in behavior based on a blacklisted value.
paxys•53m ago
Meh, if you want access to the API then pay for the API. It's as simple as that.
shusaku•52m ago
It’s because their models burn tokens like crazy. API use is way too expensive

Edit: or should I say, the subscription is artificially cheap

paxys•46m ago
While the subscription is definitely subsidized (technically cross-subsidized, because the subsidy is coming from users who pay but barely use it), Claude Code also does a ton of prompt caching that reduces LLM dependency. I have done many hours-long coding sessions and built entire websites using the latest Opus and the final tally came to like $4, whereas without caching it would have been $25-30.
esafak•41m ago
Are you saying CC does caching that opencode does not? What does Anthropic care? They limit you based on tokens, so if other agents burn more then users will simply get less work done, not use more tokens, which they can't. I don't think Anthropic's objection is technical.
zmmmmm•15m ago
> API use is way too expensive

Cry me a river - I never stop hearing how developers think their time is so valuable that no amount of AI use could possibly not be worth it. Yet suddenly, paying for what you use is "too expensive".

I'm getting sick of costs being distorted. It's resulting in dysfunctional methodologies where people are spinning up ridiculous number agents in the background, burning tokens to grind out solutions where a modicum of oversight or direction from a human would result in 10x less compute. At very least the costs should be realised by the people doing this.

johnisgood•6m ago
> a modicum of oversight or direction from a human would result in 10x less compute.

Yeah, I noticed it. I use Claude, but I use it responsibly. I wonder how many "green" people run these instances in parallel. :D

ajross•52m ago
Well, they are paying. Just not for the product Anthropic wants to sell. Really at root this is a marketing failure. They really, really want to push Claude CLI as a loss leader, and are having to engage in this disaster of a anti-PR campaign to plug all the leaks from people sneaking around.

The root cause is and remains their pricing: the delta between their token billing and their flat fee is just screaming to be exploited by a gray market.

Wowfunhappy•51m ago
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?
localhost•49m ago
This is what ACP and https://github.com/zed-industries/claude-code-acp enables. ACP controls agents - there is native support in Copilot CLI and Gemini and adapters for claude code and codex.
Imustaskforhelp•28m ago
wow. ACP is used within zed so I guess zed is safe with ACP using claude code

I wonder if Opencode could use ACP protocol as well. ACP seems to be a good abstraction, I should probably learn more about it. Any TLDR's on how it works?

ehsanu1•42m ago
You can't control it to the level of individual LLM requests and orchestration of those. And that is very valuable, practically required, to build a tool like this. Otherwise, you just have a wrapper over another big program and can barely do anything interesting/useful to make it actually work better.
Wowfunhappy•21m ago
What can't you do exactly? You can send the Claude binary arbitrary user prompts—with arbitrary custom system prompts—and get text back. You can then put those text responses into whatever larger system you want.
handfuloflight•6m ago
May as well just use Claude Code then.
Wowfunhappy•3m ago
Well, I do use Claude Code myself, but I'd thought the point of OpenCode was that it could combine the responses of multiple LLMs.
syntaxing•49m ago
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?
drakenot•49m ago
Perhaps concentrated use of Claude Code increases their perceived market value.

It also perhaps tries to preserve some moat around their product/service.

conception•47m ago
And telemetry and tooling reports and usage by cloud code signs PR on GitHub and things like that.
_boffin_•45m ago
Are they ZDR with prompts and completions and possibly rely on usage statistics from their CLI to infer how people are using it?
ankit219•44m ago
The issue is that claude code is cheap because it uses API's unused capacity. These kind of circumventions hurt them both ways, one they dont know how to estimate api demand, and two, the nature of other harnesses is more bursty (eg: parallel calls) compared to claude code, so it screws over other legit users. Claude code very rarely makes parallel calls for context commands etc. but these ones do.

re the whole unused capacity is the nature of inference on GPUs. In any cluster, you can batch inputs (ie takes same time for say 1 query or 100 as they can be parallelized) and now continuous batching[1] exists. With API and bursty nature of requests, clusters would be at 40%-50% of peak API capacity. Makes sense to divert them to subscriptions. Reduces api costs in future, and gives anthropic a way to monetize unused capacity. But if everyone does it, then there is no unused capacity to manage and everyone loses.

[1]: https://huggingface.co/blog/continuous_batching

ehsanu1•39m ago
They have rate limits for this purpose. Many folks run claude code instances in parallel, which has roughly the same characteristics.
blitzar•15m ago
Your suggested functionality is server side, not client side.

> it uses API's unused capacity

I see no waiting or scheduling on my usage - it runs, what appears to be, full speed till I hit my 4 hour / 7 day limit and then it stops.

Claude code is cheap (via a subscription) because it is burning piles of investor cash, while making a bit back on API / pay per token users.

ankit219•3m ago
Why would scheduling be a thing in this case? I might be missing something here.

With continuous batching, you don't wait for entire previous batch to finish. The request goes in as one finishes. Hence the wait time is negligible.

paxys•43m ago
Owning the client gives them full control over which model to use for which query, prompt caching, rate limiting and lots more. So they can drive massive savings for the ~same output over just giving unrestricted access to the API.
syntaxing•40m ago
Wouldn’t most of the savings be done on the server side anyway? I would be very surprised if Claude code does those on the client side.
lemming•42m ago
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.
manquer•22m ago
Is opencode that much better than Codex / Claude Code for cli tooling that people are prepared forsake[1] Sonnet 4.5/Opus 4.5 and switch to GPT 5.2-codex ?

The moat is Sonnet/Opus not Claude Code it can never be a client side app.

Cost arbitrage like this is short lived, until the org changes pricing.

For example Anthropic could release say an ultra plan at $500-$1000 with these restrictions removed/relaxed that reflects the true cost of the consumption, or get cost of inference down enough that even at $200 it is profitable for them and they will stop caring if higher bracket does not sell well, Then $200 is what market is ready to pay, there will be a % of users who will use it more than the rest as is the case in any software.

Either way the only money here i.e. the $200(or more) is only going to Anthropic.

[1] Perceived or real there is huge gulf in how Sonnet 4.5 is seen versus GPT 5.2-codex .

ankit219•41m ago
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.
wg0•37m ago
I don't understand what's the threat from a CLI which is useless without AI models and Anthropic could be one of them?
stanmancan•32m ago
Switching models is too easy and the models are turning into commodities. They want to own your dev environment, which they can ultimately charge more when compared to access to their model.
eikenberry•21m ago
They want to be the next JetBrains.

Show HN: Chklst – A Minimalist Checklist

https://www.chklst.xyz/
1•rgbjoy•43s ago•0 comments

Opinion: Why tech leaders can't regulate AI before releasing them?

1•lauraorchid•1m ago•0 comments

Vibe Coding Paradox

https://blog.kaplich.me/vibe-coding-paradox/
1•skaplich•1m ago•0 comments

Show HN: I built a satellite forensic engine to detect fraud in Carbon Markets

1•kccanarch•1m ago•0 comments

Google is shutting down the Tenor API

https://www.reddit.com/r/webdev/s/ZjlFO8kiW4
1•kull•2m ago•0 comments

Bubblewrap: A nimble way to prevent agents from accessing your .env files

https://patrickmccanna.net/a-better-way-to-limit-claude-code-and-other-coding-agents-access-to-se...
1•0o_MrPatrick_o0•3m ago•0 comments

Is passive investment inflating a stockmarket bubble?

https://www.economist.com/finance-and-economics/2026/01/14/is-passive-investment-inflating-a-stoc...
1•andsoitis•5m ago•0 comments

I beat Factorio on 1k Floppy disks [video]

https://www.youtube.com/watch?v=cTPBGZcTRqo
1•simonpure•5m ago•1 comments

ISS astronauts return to Earth early due to illness of crew member

https://www.cbc.ca/news/science/nasa-crew11-early-return-9.7045315?cmp=rss
2•gnabgib•7m ago•0 comments

2025 Berggruen Prize Essay Competition Winners

https://berggruen.org/eu/news/2025-berggruen-prize-essay-competition-winners
2•i7l•7m ago•0 comments

AgentDiscover Scanner – Multi-layer AI agent detection (code, network, K8s eBPF)

https://github.com/Defend-AI-Tech-Inc/agent-discover-scanner
1•DefendAI•7m ago•0 comments

Skrillex Releases Kora

https://skrlx.com/
2•Lucasoato•13m ago•0 comments

Kutt.ai – Free AI Video Generator, Text and Image to Video

https://kutt.ai/
1•zuoning•14m ago•1 comments

Personal Intelligence: Connecting Gemini to Google Apps

https://blog.google/innovation-and-ai/products/gemini-app/personal-intelligence/
1•simonpure•15m ago•1 comments

Mapping Nostr keys to DNS-based internet identifiers

https://github.com/nostr-protocol/nips/blob/master/05.md
1•gjvc•22m ago•0 comments

WAPlus' Guide to WhatsApp CRM

https://waplus.io/blog/whatsapp-crm
2•bocaiconnie•24m ago•1 comments

Verizon Is Down

https://www.macrumors.com/2026/01/14/verizon-is-down-iphone-sos/
7•vapemaster•27m ago•4 comments

Verizon outage today (but not on their map)

https://www.verizon.com/about/california-outage-map
5•kalu•27m ago•3 comments

Show HN: Quick Beats – minimalistic webapp (mobile and desktop) drum machine

https://alganet.github.io/quick-beats/
2•gaigalas•28m ago•0 comments

Ask HN: What is best way to provide continuous context to models?

2•nemath•28m ago•0 comments

Trump would want military action in Iran to be Swift and decisive, sources say

https://www.nbcnews.com/politics/white-house/trump-want-military-action-iran-swift-decisive-sourc...
4•mickle00•29m ago•1 comments

Sadly, I can't recommend KeePassXC anymore

https://rubenerd.com/i-can-t-recommend-keepassxc-anymore/
3•mikece•32m ago•0 comments

Go.mod Hackery for Compatibility Testing

https://engineering.kablamo.com.au/posts/gomod-hackery-for-compat-testing/
2•boyter•35m ago•0 comments

Zorin OS 18 passes 2M downloads in under 3 months

https://www.windowscentral.com/microsoft/windows/zorin-os-18-has-reached-2-million-downloads-with...
2•teleforce•36m ago•0 comments

Young men want to get big. For some, it's becoming an obsession

https://www.npr.org/2026/01/14/nx-s1-5671789/bigorexia-dysmorphia-eating-disorder-boys
4•kianN•37m ago•3 comments

US Senate narrowly blocks effort to rein in Trump's Venezuela war powers

https://www.reuters.com/world/us/us-senate-blocks-effort-rein-trumps-venezuela-war-powers-2026-01...
7•mickle00•41m ago•0 comments

Dust Properties of the Interstellar Object 3I/Atlas

https://arxiv.org/abs/2601.08591
3•bikenaga•44m ago•2 comments

Americans are paying hundreds more in rent

https://www.reuters.com/markets/on-the-money/americans-are-paying-hundreds-more-rent-2026-01-14/
7•JumpCrisscross•45m ago•0 comments

Building AI-Generated Dashboards with A2UI Custom Component Catalogs

https://a2aprotocol.ai/blog/2026-a2ui-rizzcharts-tutorial
3•czmilo•48m ago•1 comments

Evidence for modified gravity at low acceleration from Gaia observations

https://phys.org/news/2023-08-smoking-gun-evidence-gravity-gaia-wide.html
2•cpncrunch•48m ago•0 comments