r/opencode • • 27d ago

claude code sub can be used in opencode now?

idk if there is a catch??? i dont have claude sub, someone pls confirm!!!!

7 Upvotes

11 comments sorted by

5

u/torrso 27d ago edited 27d ago

Haven't checked but maybe it's done the same way as in jcode. It imitates claude's system prompt, extra headers and even renames some of the internal tools and parameters so that it looks like claude.

Edit: no. It uses claude agent sdk which talks to claude code over mcp, so it's running requests through the official harness, which will do the tool calls etc, so its not really the same as using anthropic models in opencode.

2

u/Fun-Understanding862 27d ago

damn, but i was wondering if anthropic is going to start a ban wave.

5

u/partypooperx 27d ago

Instead of imitating Claude Code, OpenCode launches the real Claude Code binary and lets it make the API calls. From Anthropic's side, it's genuine Claude Code traffic on your genuine login, nothing to ban.

4

u/Fun-Understanding862 27d ago

fair enough thank you for clarifying!

5

u/geearf 27d ago

If it's delegating it all to Claude Code, like Just Code does, there should be no reason.

1

u/torrso 27d ago

Using the agent sdk is ok in their tos.

1

u/Fun-Understanding862 27d ago

but it had a weird grey area where you cannot build a competitive product. thats why im a bit confused xD

1

u/Low-Guarantee-3437 27d ago

I had my own Claude review skill to do this. You need to provide it enough context, such as relevant files and a prompt with your objective. It's useful. I wonder what the new opencode solution does.

2

u/daniel-sousa-me 27d ago

Oh, that's actually pretty cool

Not as good as getting rid of Claude Code altogether, but before Haiku 5.5 I'd have loved a setup like this to have agents delegate tasks to models of appropriate size/cost (but right now imo Anthropic provides the best value in basically every tier, so...)

1

u/Tarquinen 26d ago

It uses opencodes tools, almost everything it does is native opencode behavior not Claude code