logoalt Hacker News

edemyesterday at 6:23 PM5 repliesview on HN

So can I use this from Opencode? Because Anthropic started to enforce their TOS to kill the Opencode integration


Replies

tfehringyesterday at 6:50 PM

OpenAI models in general, yes - `opencode auth login`, select OpenAI, then ChatGPT Pro/Plus. I just checked and 5.3-codex isn't available in opencode yet, but I assume it will be soon.

avbyesterday at 8:57 PM

You can also use via Opencode Zen, Github Copilot, or probably any number of other model providers that Opencode integrates with.

Not sure why everyone stays focused on getting it from Anthropic or OpenAI directly when there are so many places to get access to these models and many others for the same or less money.

regularfryyesterday at 6:59 PM

I've tried opus 4.5 in opencode via the GitHub Copilot API, mostly to see if it works all. I don't think that broke any terms of service? But also I haven't checked how much more expensive I made it for myself over just calling them directly.

rs_rs_rs_rs_rsyesterday at 6:43 PM

You can use Anthropic models in Opencode, make an api key and you're good to do(you can even use the in house Opencode router, Zen).

What you can't do is pretend opencode is claude code to make use of that specific claude code subscription.

InsideOutSantayesterday at 6:57 PM

Yes, OpenAI said they'd allow usage of their subscriptions in opencode.