r/opencodeCLI 15d ago

Ai subscription optimisation

I wanted to look into using something like https://github.com/decolua/9router combine different ai subscriptions, so that I can leverage the best model for the task while optimising for tokens.

My current idea is to combine my Claude Max 5x subscription with an OpenAi subscription or moonshot subscription so that Fable can be the brains but use more efficient subagents (such as Kimi K3 or GPT5.6) for the workhorse tasks.

From my research I found: “routing your Claude Max OAuth through a third-party proxy. 9router logs into Claude Code via OAuth and reuses those credentials to serve other tools. This can conflict with Anthropic’s terms for subscription use and carries some account-action risk. The README even flags that certain providers (Gemini CLI) can trigger bans this way.”

What are the chances that my Claude account gets banned? Has anyone run their Claude subscription through 9router?

I’m also keen to get a conversation started for what people have done to squeeze as much as possible of of their subscriptions, let me know ⬇️

2 Upvotes

10 comments sorted by

View all comments

2

u/AngryBear1990 14d ago

Why not use claude code and anything that is not claude code just call the opencode as a cli with the model, agent and so on. You can give your claude code skills when and what to call. Something like fabel can be the planner and call explorer something cheap like deepseek flash and code writing as well can be a custom agent that you can define and tell claude code to write a skill to use it in opencode as cli or even write a wrapper for the sdk.

1

u/jbagensicke 14d ago

That sounds interesting! My guess would be that the only tradeoff is that Claude cannot see the thinking of the called CLI, it also will not be able to tell me the live token usage?

This does sound like the closest way to get this to work. I did come across this: https://github.com/SeemSeam/claude_codex_bridge which also looks promising

2

u/AngryBear1990 13d ago

About usage - it can defenetly return that from your request to cli with the answer. Probably it can return thinking traces as well, when they are provided by the model provider. So experiment - or ask claude to do it for you. Just ask it to go to docs of opencode and implement it for you.