frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

OpenCode – The open source AI coding agent

https://opencode.ai/
216•rbanffy•1h ago

Comments

ramon156•1h ago
The Agent that is blacklisted from Anthropic AI, soon more to come.

I really like how their subagents work, as a bonus I get to choose which model is in which agent. Sadly I have to resort to the mess that Anthropic calls Claude Code

lima•1h ago
You can still use OpenCode with the Anthropic API.
pimeys•1h ago
Yep. That's what I do. Just API keys and you can switch from Opus to GPT especially this week when Opus has been kind of wonky.
jatora•1h ago
'just API key' lol. just hundreds of dollars at a minimum
specproc•1h ago
This is the problem with this bollocks. Outsourcing our brains at a per token rate. It'd be exciting if I didn't hand to pay Americans for it.
fr33k3y•49m ago
I'm testing glm5 on Claude code and opencode just to stop consuming American... Soo good so far!
jen20•49m ago
Qwen works fine and requires paying no-one except a hardware vendor.
gwd•1h ago
Or have Claude write the code and Gemini review it. (Was using GPT for review until the recent Pentagon thing.)
stavros•49m ago
I pay $100/mo to Anthropic. Yesterday I coded one small feature via an API key by accident and it cost $6. At this rate, it will cost me $1000/mo to develop with Opus. I might as well code by hand, or switch to the $20 Codex plan, which will probably be more than enough.

I'd rather switch to OpenAI than give up my favorite harness.

xienze•41m ago
Yeah I had a similar experience one time. Which is why I laugh when people suggest Anthropic is profitable. Sure, maybe if everyone does API pricing. Which they won’t because it’s so damn expensive. Another way to think about it is API pricing is a glimpse into the future when everyone is dependent on these services and the subscription model price increases start.
mattmanser•26m ago
I don't get why people talk about ChatGPT as some great saviour though, they're in the same boat but just have more money to burn.
pczy•1h ago
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).
oldestofsports•57m ago
I dont understand this, what is the difference, technically!
hereme888•54m ago
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.

jwpapi•46m ago
about 30 times more cost
KronisLV•36m ago
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.

anonym29•31m ago
>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.

hackingonempty•35m ago
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.

miki123211•29m ago
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.

echelon•13m ago
- 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.

fnordpiglet•8m ago
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.
hereme888•57m ago
Was it not obvious what the OP meant by blacklisted?
enraged_camel•53m ago
No, it was not? For those whose native language is English, "blacklisted" implies Claude API will not allow OpenCode.
Maxatar•46m ago
Blacklisted usually means something is banned. OpenCode is not banned from using Anthropic's API.
wilg•39m ago
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.
Robdel12•15m ago
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?
cyanydeez•35m ago
a $3000 AMD395+ will get you pretty close to a open development environment.
anonym29•5m ago
There are boards starting in the $1500-$2000 range, and complete systems in the $2500-$2700 range. I actually don't know of any Strix Halo mini PCs that cost $3000, do you?
sergiotapia•1h ago
If I wanted to switch from Claude Code to this - what openai model is comparable to opus 4.6? And is it the same speed or slower/faster? Thank you!
rbanffy•1h ago
If you want faster, anything running on a Cerebras machine will do.

Never tried it for much coding though.

eli•43m ago
Outside of their (hard to buy) GLM 4.7 coding plans, it's also extremely expensive.
swyx•1h ago
do you care about harness benchmarks or no?
sergiotapia•1h ago
Just a data point, I would need to use it for my workflows. I do have a monorepo with a root level claude.md, and project level claude.md files for backend/frontend.
pimeys•1h ago
GPT 5.4 has been the winner this week. Last week Opus 4.6. You can use both in OpenCode.
nxpnsv•1h ago
Well not anymore with Claude pro…
arbuge•1h ago
How does it compare to using GPT 5.4 inside Codex?
avereveard•1h ago
isn't this the one with default-on need code change to turn off telemetry?
flexagoon•1h ago
No
avereveard•40m ago
https://github.com/anomalyco/opencode/issues/5554

https://www.reddit.com/r/LocalLLaMA/comments/1rv690j/opencod...

?

flexagoon•21m ago
You can scroll down literally two messages in the Github issue you linked:

> there isnt any telemetry, the open telemetry thing is if you want to get spans like the ai sdk has spans to track tokens and stuff but we dont send them anywhere and they arent enabled either

> most likely these requests are for models.dev (our models api which allows us to update the models list without needing new releases)

cgeier•1h ago
I‘m a big fan of OpenCode. I’m mostly using it via https://github.com/prokube/pk-opencode-webui which I built with my colleague (using OpenCode).
khimaros•1h ago
i've been using this as my primary harness for llama.cpp models, Claude, and Gemini for a few months now. the LSP integration is great. i also built a plugin to enable a very minimal OpenClaw alternative as a self modifying hook system over IPC as a plugin for OpenCode: https://github.com/khimaros/opencode-evolve -- and here's a deployment ready example making use of it which runs in an Incus container/VM: https://github.com/khimaros/persona
riedel•1h ago
Very cool! I have been using opencode, as almost everybody else in the lab is using codex. I found the tools thing inside your own repo amazing but somehow I could not get it to reliably get opencode to write its own tools. Seems also a bit scary as there is pretty much not much security by default. I am using it in a NixOS WSL2 VM
nopurpose•1h ago
Claude Code subscription is still usable, but requires plugin like https://github.com/griffinmartin/opencode-claude-auth
canadiantim•1h ago
Sure but will you get banned by anthropic anyway?
ftchd•1h ago
minus Claude login
vadepaysa•1h ago
Things that make an an OpenCode fanboy 1. OpenCode source code is even more awesome. I have learned so much from the way they have organized tools, agents, settings and prompts. 2. models.dev is an amazing free resource of LLM endpoints these guys have put together 3. OpenCode Zen almost always has a FREE coding model that you can use for all kinds of work. I recently used the free tier to organize and rename all my documents.
softwaredoug•57m ago
The team also is not breathlessly talking about how coding is dead. They have pretty sane takes on AI coding including trying to help people who care about code quality.
siliconc0w•56m ago
I reach for OpenCode + Kimi to save tokens on lower priority stuff and because it's quite fast on Fireworks AI.
__mharrison__•55m ago
This replaced Aider for me a couple months back.

I use it with Qwen 3.5 running locally when my daily limits run out on my other subscriptions.

The harness is great. Local models are just slow enough that the subscription models are easier to use. For most of my tasks these days, the model's capability is sufficient; it is just not as snappy.

cyanydeez•26m ago
I'm curious: I'venever touched cloud models beyond a few seconds. I run a AMD395+ with the new qwen coder. Is there any intelligence difference, or is it just speed and context? At 128GB, it takes quite awhile before getting context wall.
p0w3n3d•54m ago
For some reason opencode does not have option to disable streaming http client, which renders some inference providers unavailable...

There's also a request and a PR to add such option but it was closed due to "not adhering to community standards"

QubridAI•53m ago
OpenCode feels like the “open-source Copilot agent” moment the more control, hackability, and no black-box lock-in.
hereme888•53m ago
The reason I'm switching again next month, from Claude back to OpenAI.
hungryhobbit•51m ago
Yeah, support the company that promised to help your government illegally mass surveil and mass kill people, because they support a use case slightly better than the non-mass-murdering option.
stavros•48m ago
Both of them promised to help their government illegally mass surveil and mass kill people. One of them just didn't want it done to US citizens.

I'm not a US citizen, so both companies are the same, as far as I'm concerned.

hungryhobbit•41m ago
You are absolutely correct that both are evil ... as are most corporations.

Still, I feel like "will commit illegal mass murder against their own citizens" is a significant enough degree more evil. I think lots of corporations will help their government murder citizens of other countries, but very few would go so far as to agree to murder their own (fellow) citizens ... just to get a juicy contract.

stavros•34m ago
I see your viewpoint but, to me, "both will happily murder you but one is better because they won't murder ME!" isn't very compelling. Like, I get it, but also it changes nothing for me. They're both bad.
cyanydeez•23m ago
watching trump get elected twice; you can see why americanos have no problemos with mental backflips when choosing.

But you're still choosing evil when you could try local models

kykat•13m ago
Will you send me an H100?
cyanydeez•4m ago
Are you doing something that actually demands it? Have you tried local models on either the mac or AMD395+?
Robdel12•12m ago
> mass kill people

https://www.washingtonpost.com/technology/2026/03/04/anthrop...

thefnordling•47m ago
opus/sonnet 4.6 can be used in opencode with a github copilot subscription
solomatov•23m ago
Does github copilot ToS allow this?
swingboy•15m ago
I don't see why not. It's just using the Github Copilot API.
Frannky•43m ago
I don't use it for coding but as an agent backend. Maybe opencode was thought for coding mainly, but for me, it's incredibly good as an agent, especially when paired with skills, a fastapi server, and opencode go(minimax) is just so much intelligence at an incredibly cheap price. Plus, you can talk to it via channels if you use a claw.
caderosche•41m ago
I feel like Anthropic really need to fork this for Claude Code or something. The render bugs in Claude Code drive me nuts.
jedisct1•39m ago
For open models with limited context, Swival works really well: https://swival.dev
everlier•39m ago
OpenCode is an awesome tool.

Many folks from other tools are only getting exposed to the same functionality they got used to, but it offers much more than other harnesses, especially for remote coding.

You can start a service via `opencode serve`, it can be accessed from anywhere and has great experience on mobile except a few bugs. It's a really good way to work with your agents remotely, goes really well with TailScale.

The WebUI that they have can connect to multiple OpenCode backends at once, so you may use multiple VPS-es for various projects you have and control all of them from a single place.

Lastly, there's a desktop app, but TBH I find it redundant when WebUI has everything needed.

Make no mistakes though, it's not a perfect tool, my gripes with it:

- There are random bugs with loading/restoring state of the session

- Model/Provider selection switch across sessions/projects is often annoying

- I had a bug making Sonnet/Opus unusable from mobile phone because phone's clock was 150ms ahead of laptop's (ID generation)

- Sometimes agent get randomly stuck. It especially sucks for long/nested sessions

- WebUI on laptop just completely forgot all the projects at one day

- `opencode serve` doesn't pick up new skills automatically, it needs to be restarted

anonym29•34m ago
Just remember, OpenCode is sending telemetry to their own servers, even when you're using your own locally hosted models. There are no environment variables, flags, or other configuration options to disable this behavior.¹

At least you can easily turn off telemetry in Claude Code - just set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC to 1.

You can use Claude Code with llama.cpp and vLLM, too right out of the box with no additional software necessary, just point ANTHROPIC_BASE_URL at your inference server of choice, with any value in ANTHROPIC_API_KEY.

Some people think that Anthropic could disable this at any time, but that's not really true - you can disable automatic updates and back up and reuse native Claude Code binaries, ensuring Anthropic cannot change your existing local Claude Code binary's behavior.

With that said, I like the idea of an open source TUI agent that won't spy on me without my consent and no way to disable it much better than a closed source TUI agent that I can effectively neuter telemetry on, but sadly, OpenCode is not the former. It's just another piece of VC-funded spyware that's destined for enshittification.

¹https://github.com/anomalyco/opencode/blob/4d7cbdcbef92bb696...

hippycruncher22•26m ago
this is a big red flag
kristopolous•20m ago
I've point thought about making things that just send garbage to any data collecting service.

You'd be surprised how useless datasets become with like 10% garbage data when you don't know which data is garbage

debazel•16m ago
Are you sure that endpoint is sending all traffic to opencode? I'm not familiar with Hono but it looks like a catch all route if none of the above match anything and is used to serve the front-end web interface?
flexagoon•13m ago
You are correct, it is indeed a route for the web interface
anonym29•8m ago
updated post accordingly
flexagoon•14m ago
They don't. That is just the route for their WebUI, which is completely optional.
ianschmitz•10m ago
That linked code is not used by the opencode agent instance though right? Looks related to their web server?
cyanydeez•5m ago
Does opencode still work if you blackhole the telemetry?
hippycruncher22•34m ago
I'm a https://pi.dev man myself.
brendanmc6•32m ago
I’ve been extraordinarily productive with this, their $10 Go plan, and a rigorous spec-driven workflow. Haven’t touched Claude in 2 months.

I sprinkle in some billed API usage to power my task-planner and reviewer subagents (both use GPT 5.4 now).

The ability to switch models is very useful and a great learning experience. GLM, Kimi and their free models surprised me. Not the best, not perfect, but still very productive. I would be a wary shareholder if I owned a stake in the frontier labs… that moat seems to be shrinking fast.

arikrahman•31m ago
Can anyone clarify how this compares with Aider?
lairv•30m ago
I tried to use it but OpenCode won't even open for me on Wayland (Ubuntu 24.04), whichever terminal emulator I use. I wasn't even aware TUI could have compatibility issues with Wayland
Gigachad•29m ago
Probably vibe coded
pixelmelt•16m ago
Some of the more recent versions of it had memory leaks so you couldn't just leave it on in the background
flexagoon•25m ago
> I wasn't even aware TUI could have compatibility issues with Wayland

They shouldn't, as long as your terminal emulator doesn't. Why do you think it's Wayland related?

samtheprogram•25m ago
Definitely not Wayland related, or so I doubt. I'm on wayland and never had any issues, and it's a TUI, where the terminal emulator does or does not do GPU work. What led you to that conclusion?
smetannik•21m ago
This shouldn't be related to Wayland.

It works perfectly fine on Niri, Hyprland and other Wayland WMs.

What problem do you have?

solomatov•25m ago
Do they have any sandbox out of the box?
kristopolous•22m ago
Geminis cli is clearly a fork of it btw
Duplicake•15m ago
Why is this upvoted again on hacker news this is an old thing
zer0tonin•11m ago
Because this site is basically dead for any other subject than vibecoding and AI agents.
planckscnst•10m ago
I love OpenCode! I wrote a plugin that adds two tools: prune and retrieve. Prune lets the LLM select messages to remove from the conversation and replace with a summary and key terms. The retrieve tool lets it get those original messages back in case they're needed. I've been livestreaming the development and using it on side projects to make sure it's actually effective... And it turns out it really is! It feels like working with an infinite context window.

https://www.youtube.com/live/z0JYVTAqeQM?si=oLvyLlZiFLTxL7p0

advael•6m ago
Seems interesting, but at a glance I can't find a repo or a package manager download for this. Have you made it available anywhere?
busfahrer•9m ago
I haven't been able to successfully get their CLI to reliably edit files when using local models, anybody else having the same problem?
aimarketintel•9m ago
One thing that makes coding agents really useful is structured data access via MCP servers. Instead of the agent trying to scrape a webpage to understand your project's context, you give it a direct API to query structured data from 9+ sources (GitHub repos, Stack Overflow questions, arXiv papers, npm packages).

The biggest bottleneck I've seen isn't the coding — it's the agent not having enough context about the ecosystem it's working in.

For Banksy, crime does actually pay

https://www.nationalreview.com/2026/03/for-banksy-crime-does-actually-pay/
1•hhs•3m ago•0 comments

Rawq – semantic code search for AI agents (4x fewer wasted tokens, Rust, OSS)

https://github.com/auyelbekov/rawq
1•Yerzhigit•3m ago•0 comments

Kevin Lewis: My AI Coding Setup (March 2026)

https://lws.io/blog/my-ai-coding-setup-march-2026/
2•nadis•3m ago•0 comments

The Acqui-Hire Is No Longer a Distress Sale

https://www.heavybit.com/library/article/the-acqui-hire-is-no-longer-a-distress-sale
1•nadis•3m ago•0 comments

Production Is Where the Rigor Goes

https://www.honeycomb.io/blog/production-is-where-the-rigor-goes
1•kiyanwang•4m ago•0 comments

Elon Musk Misled Twitter Investors Before 2022 Buyout, Jury Says

https://www.bloomberg.com/news/articles/2026-03-20/elon-musk-misled-twitter-investors-before-2022...
3•toomanyrichies•6m ago•1 comments

Neugebauer Lutnick Confrontation hints at trouble with data center project

https://www.politico.com/news/2026/03/20/confrontation-ceo-and-lutnick-00838496
1•defrost•6m ago•0 comments

One Battle After Another: PTA and the Death of Revolutionary Cinema

https://old.reddit.com/r/TrueFilm/comments/1nv83g1/one_battle_after_another_paul_thomas_anderson_...
1•kaycebasques•8m ago•0 comments

How 30+ AI agent frameworks handle context rot, memory and tools

https://github.com/vasilyevdm/ai-agent-handbook
1•rocketrider•8m ago•0 comments

User Interface Hall of Fame (1999)

http://hallofshame.gp.co.at/mfame.htm
1•12_throw_away•9m ago•0 comments

Stash: Fast and easy local-first file sync for agents

https://github.com/telepath-computer/stash
3•stlhood•9m ago•0 comments

The Anti-Portfolio

https://www.bvp.com/anti-portfolio
1•gone35•11m ago•0 comments

After nearly $1M in donations,78‑year‑old DoorDash driver says he's not retiring

https://www.nbcdfw.com/news/national-international/doordash-driver-not-retiring-1m-donations/3998...
1•teleforce•13m ago•0 comments

AI Fatigue

https://thethinkingbuilder.substack.com/p/on-ai-fatigue
3•kondov•15m ago•0 comments

What Happened to Gem?

https://dfarq.homeip.net/whatever-happened-to-gem/
2•naves•16m ago•0 comments

GrapheneOS adds experimental Pixel 10a support

https://grapheneos.org/releases
1•cf100clunk•16m ago•0 comments

Fisher Traction – at-home spinal decompression devices for neck and back pain

https://www.fishertraction.com/products/fisher-traction-neck-traction
1•denseroll•17m ago•0 comments

Wine Registry Seeks Co-Founder

1•Chelper•17m ago•0 comments

Notre Dame – families with incomes under $150k will pay zero tuition

https://news.nd.edu/news/notre-dame-announces-that-families-with-incomes-under-150-000-will-pay-z...
2•b_mc2•17m ago•0 comments

When Do We Become Adults, Really?

https://www.newyorker.com/culture/annals-of-inquiry/when-do-we-become-adults-really
1•benbreen•19m ago•1 comments

Skills Are Grown, Not Written

https://medium.com/@derwiki/skills-are-grown-not-written-7839e4a2bb36
1•derwiki•20m ago•0 comments

Claude Tried to Hack 30 Companies.Nobody Asked It To

https://trufflesecurity.com/blog/claude-tried-to-hack-30-companies-nobody-asked-it-to
2•ki4jgt•22m ago•0 comments

CEOs Don't Steer

https://www.ribbonfarm.com/2017/11/09/ceos-dont-steer/
2•vinhnx•24m ago•0 comments

Pull requests are dead, long live pull requests

https://gieseanw.wordpress.com/2026/03/20/pull-requests-are-dead-long-live-pull-requests/
2•andyg_blog•24m ago•0 comments

SlopFilter – uBlock Origin for AI-generated content

https://github.com/dilipShaachi/slopfilter
2•dilipa•27m ago•0 comments

Wine 11.5 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://www.winehq.org/announce/11.5
3•neustradamus•28m ago•1 comments

The First Quantum Internet Protocol

https://qi.quantumcloud.one
1•wakanda-island•28m ago•0 comments

Stop Leading with the Affirmative Condition

https://idealchorus.com/posts/stop-leading-with-the-affirmative-condition
2•rubyrules•30m ago•0 comments

Technological Speed Limit

https://metastable.org/speed-limit/
1•pbw•30m ago•0 comments

Why AI Analysis Gives You the Wrong Specific Answers

https://opinionatedintelligence.substack.com/p/why-ai-analysis-gives-you-generic
2•nano81•32m ago•0 comments