r/opencode • • 24d ago

Using claude sub to orchestrate deepseek v4 via opencode? any of u do this?whats the workflow

im on claude pro sub and want to route all the low complexity stuff to deepseek to avoid high token usage by claude. im tired of hitting limit mid task by claude. how much usage would i get out of this? i havent tried deepseek so how capable is it at following instructions and getting stuff done. my only other option is gemini flash which is beyond stupid that id rather not use it.

26 Upvotes

38 comments sorted by

4

u/rcs67 24d ago edited 24d ago

Deepseek is excellent. My Claude Pro sub lasts me all week if I have Opus creating tickets/reviewing and Deepseek building. You can build a lot with Deepseek for a $10 Go sub as it's actually $60 worth.

1

u/PapyOak 24d ago

*$100 worth now

1

u/rcs67 24d ago

Woot!

4

u/4SubZero20 24d ago edited 24d ago

I literally just finished setting up my claude -> opencode workflow; haven't given it something big, but my small tests looks promising.

This is also using opencode V2. At this point my opencode agents has already been configured (from previous sessions).

I start a opencode v2 server: opencode serve --host 127.0.0.1 --port 4098 & disown

I added this to my Claude.md:

"When I ask you to handle heavy code refactoring or multi-agent tasks, do not write the code sequentially yourself. Instead, pass the instructions to the OpenCode engine using the oc-ask command/script followed by the task. Wait for the server background process to complete, then inspect the repo shifts."

oc-ask.sh script (this was my FIRST script; claude refined it to make use of jq and other tools and error handling):

#!/bin/bash

SERVER_URL="http://127.0.0.1:4098" AUTH="opencode:your_password"

# 1. Create a session if one doesn't exist, or fallback to the primary workspace session

# 2. Issue a structured prompt to the underlying multi-agent scheduler curl -s -u "$AUTH"
-X POST "$SERVER_URL/api/sessions/prompt"
-H "Content-Type: application/json"
-d "{"prompt": "$*"}"


This was done without needing to add any skills, mcps, additional apps or any type of "bridges"; Got my tools to natively work together.

Edit: Formatting; Doing this on mobile, sorry if formatting is shoddy.

Edit #2: More formatting + Spelling

1

u/Legitimate-Onion-879 22d ago

How did you set up with your claude subscription and not an API

1

u/Amarsir 24d ago edited 24d ago

Just to check, were you already using Haiku to execute and you want the switch? Or are you coming from Opus doing it all? (And on what effort level?)

Deepseek is more than capable of executing. So are GLM flash, Mimo flash, Haiku, Luna, and others. So your plan will definitely work.

The least setup comes from one of two way:

  1. When you give the initial prompt, say "launch Deepseek subagents where appropriate". Opus will lean toward doing them more but won't go overboard that way.
  2. When you give the initial prompt, tell it to write out a detailed plan. Then open a new session with a new DS model and tell it to execute the plan. I like this method because it lets me review it and keep a record of what changes were made that I can ask future planners to refer to if we do something similar. (Basically establishing standards where decisions were made.)

If you want detailed use of subagents with clear awareness of what they're doing, get the oh-my-opencode-slim plugin for opencode. You'd set like 5 roles to the models of your choice and know that each got instructions about what to do or not do.

1

u/Unique_Stage1874 24d ago

I use opus low on everything

1

u/Amarsir 24d ago

Ah. Well according to benchmarks and Artificial Analysis's rankings, Haiku Max scores higher than Opus Low at half price per task. (Slower because more tokens, though.). So if you tried that swap and were happy with the results, it might help you stay under quota.

2

u/Illustrious-Many-782 24d ago

I do something like this but much more involved. OpenChamber runs nine long-running sessions, one as pm-orchestrator over the other eight orchestrators, each with their own repo. All running opus, but they assign work to one of my cheaper subscriptions.

It works extremely well.

https://x.com/daengbo/status/2115227434434068952?a=nSwgXuDmJm9Qya9OuMQ&s=19

2

u/LordMoridin84 24d ago

Put something like this in the AGENTS.md

It's for Pi but Open Code should be similar.

## Subagents and delegation extra rules

Delegate a task only when it is substantial, and do a short task yourself: each new subagent pays again to load the context. A skill that runs several subagents, such as code review or parallel wayfinder tickets, keeps its own split.

`implementer` is the default for implementation work whose brief names the design, the files and the checks. Choose `strong-implementer` when a wrong judgement is expensive:

  • the agent must decide questions that the design leaves open
  • the change must keep many parts consistent across layers
  • an `implementer` run on the same work came back wrong on points its brief had already decided.
Give a substantial investigation to a `scout`. Its result is a finding, such as how a flow works, every place a change must touch, or whether a claim holds. You will not need the raw reads of that work again. Name that finding in the brief.

2

u/natdisaster 24d ago

T3 code. Ask Opus to setup your opencode. Give it the api key. Tell it to orchestrate X agent workers. That is all. Maybe tell it to make this a reusable Claude skill

2

u/Mountain_Opposite_94 23d ago

I use t3code, use Claude and codex subscriptions to orchestrate v4.1flash

2

u/Entire_Patient_8008 23d ago

i write a custom mcp that basically exposes a tui to be able to be controlled by another agent
or using acp if it supports acp, then i can get claude code to control opencode through that mcp
dm if you want the github repo, it has ALOT of bugs

1

u/sertdisk 24d ago

It entirely depends on your own working model. You won’t know until you try.

As for me, I’m at the point where I use DeepSeek V4.1 for almost everything.

1

u/burtcopaint 24d ago

You can do a lot. I have whatever decent model control Luna which comes from my gpt account

1

u/p3r3lin 24d ago

My go-to approach would be to ask Claude to build an orchestrator skill you can invoke with a defined task—whether an MD file or something else. Then the orchestrator skill can chunk and distribute it to sub‑agents in the order and dependencies it deems fit, using the smaller coding agent that already has DeepSeek added as a model. Claude should have no problem setting that up for you.

1

u/DuanLeksi_30 24d ago

If you use linux, you can ask claude to use tmux or screen as alternative screen for opencode. Claude can open, close, read and instruct the opencode from there.

1

u/rfly90 24d ago

Orca and/or paperclip are great for this.

1

u/Different-Monk5916 24d ago

You can totally do that with even flash as orchestrator. 

Orchestrator needs a long context and should have the ability to stick to plan, reason out alternatives, be a lie detector for subagents end report.

Hallucination comes from corrupted context, but that happens only when you overload the context. Offload the details to a md file, orchestrator is a pure manager who keeps the overview in context and details and communications to subagents via files.

You are confusing orchestrator with a designer or a planner in very complex cases. Designer needs to be smart. I iterate a lot with designer to get the initial design correct. That’s where the pitfalls originate

1

u/thejosess 24d ago

Anyone knows if you can use for example Kimi 3.1 for that purpose instead of Claude?

1

u/st00rz 24d ago

I do something similar, but I use Gemini 3.8 Flash. For a while now, I’ve been considering using OpenCode with DeepSeek... I wonder if I’ll notice a difference? Or does any model work for running it?

1

u/MeliousAI_HQ 24d ago

works really well. keep Opus for planning and reviewing, give DeepSeek small scoped tasks with the exact files it needs. the smaller the task, the better it follows instructions. most people doing this say their Pro sub suddenly lasts the whole week

1

u/Sea_Ear5201 24d ago

Do u guys use opus in high mode or medium? In medium it gives good usage

1

u/valdermito 24d ago

Usava o Codex mandando no claude

1

u/Aggravating-Worker42 23d ago

You are orchestrator. Use opencode/deepseek-v4-flash subagent for implementation task. Write rule to make it permanent.

1

u/_Heziode 22d ago

I use Paseo. With paseo agents :

  • Orchestrator : Opus 5.5 
  • Architect : Opus 5.5 High 
  • Dev : DeepSeek 4.1 Flash via OpenRouter/Pi/OMP (or Haïku 5.5 via CC, same result, mostly same price… Under 100k context)
  • Review : Codex Terra

0

u/seventyfivepupmstr 24d ago

How do you know what is low complexity? What you are asking for most likely is impossible. An actual achievable option is you determine an actual workflow where specific task types go to different services - you can do this with custom opencode agents. One thing to note is that you can't use a claude subscription with opencode out of the box - you will want to search the subreddit for instructions on how to do it

0

u/1waddupmynegr0 17d ago

start with one small worker tsk before adding an orchstration plugin. keep planning in Claude Code then hve OpenCode handle a bounded chnge n return diff plus test output. for DeepSeek connction Ofox is one option;  i work with them. connect Ofox with / connect, run opencode models ofox, and use the full DeepSeek ID it lists with opencode run -m. the worker uses Ofox API billin  seprately from Claude Pro. whther this saves money depends on how mch work Claude has to redo afterwards...

18

u/[deleted] 24d ago edited 24d ago

[removed] — view removed comment

1

u/deleted-account69420 24d ago

I get your point.
Yet, I just added Claude Ripple to Claude app, and I can use my opencode sub in there alongside Claude models.

1

u/sgsparks206 19d ago

Claude ripple?

1

u/[deleted] 22d ago

[removed] — view removed comment

1

u/deleted-account69420 22d ago

That's why I specified Claude Ripple.

That does work, Claude native models + ones from router, both main agent and subagents.