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.
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.
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.
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...)
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.