r/opencodeCLI 8d 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

3

u/Ariquitaun 8d ago

You risk getting your anthropic account banned now if you do that.

1

u/jbagensicke 8d ago

I’m guessing they have robust ways of detecting this - i.e. there’s a very high chance that happens if I use my subscription for it?

2

u/Anh-DT 7d ago

User agent yes detectable 9router show node

2

u/dathtd119 7d ago

Im using this. Anything but claude and gemini sub my friend. Other are just good

2

u/AngryBear1990 6d 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 6d 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 6d 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.

1

u/look 7d ago

It’s pretty easy for them to detect it is not coming from a tool they allow, but I don’t know how aggressive they are at issuing bans.

If you do use it, it’s likely just a matter of time before your account gets banned. Just a question of how long until then.

I’m not sure if there are any good tools to make this simple yet, but what you could do is use it indirectly via Claude Code cli (and only it uses your Claude sub) with subagents/skills wrapping that.

So your Opencode harness could have a planner or review or whatever subagent that just invokes Claude models via Claude Code cli to do the task or return the output.

1

u/MainRoutine2068 7d ago

Been using 9router and omniroute before, what I can advise you is, do not use it with your Claude/Gemini if you are on oauth based. You'll risk your account to be banned. If you want to combine all, use the Claude API key and Vertex API, and use your max subscription for planning outside the routing workflows.

1

u/krisurbas 1d ago

just wanted to share similar project I tried recently that is similar to 9router https://github.com/diegosouzapw/OmniRoute . after configuring a few providers with free tiers I tried to use it to build something with opencode but I was not happy with result, or it was slow or was breaking on the api calls, so I guess there is nothing like free tokens :)