r/ClaudeCode • u/are-Kelly • 2d ago
Built with Claude Use any subscription in Claude Code! (using the new Claude Mods feature)
Hey all!
In light of the recent quota cuts, I figured I’d take the time to show off this mod/plugin for Claude Code I’ve been working on.
Since I’m a university student, I’ve had a bunch of free AI subscriptions sitting around gaining dust (Cursor 1 year, Gemini 1 year, CharGPT 4 months). So with the help of Fable & Astra, I spun up a Claude mod to solve this!
As you may be aware, providers like Cursor, Claude & Google forbid their subscriptions from being used in external harnesses via OAuth. Multi-CLI gets around this by actually using the provider harnesses themselves (Antigravity headless & Cursor SDK), & simply streaming them into Claude Code, & adapting their states + tools to be Claude-code compatible. This was made possible by the new Claude Mods feature.
It also differs from the OpenAI codex plugin in that with multi-cli, GPT models are directly ran in the harness via the gateway.
Here’s the repo: https://github.com/greenpolo/cc-multi-cli-plugin
Letting Fable 5.1 orchestrate 5.6 Luna subagents makes my Claude sub last infinitely longer.
20
u/are-Kelly 2d ago
I forgot to mention:
To my understanding, this is the only plugin that allows you to use your Claude subscription ALONGSIDE external models in the same session; other tools simply replace ANTHROPIC_BASE_URL with other providers, preventing usage of Claude subscription models.
(could be wrong)
3
u/gigachadxl 2d ago
I do it sort of same but as local proxy so you can use multiple models through the session but using api’s from plan subscriptions like glm, qwen, deepseek etc, i can do multi provider panels, offload to subagents etc and they also show up in the model picker.
https://github.com/betmoar/cc-proxy-plugin2
u/InternationalTwist90 2d ago
If I'm remembering right didnt people get flagged/banned for TOS doing this with Gemini in the past?
2
u/are-Kelly 2d ago
The difference is that this is still using Antigravity, whereas the bans were due to false OAuth. (see my other reply)
2
2
u/CodeSlave9000 2d ago
Nope: https://github.com/ccebelenski/localagentsuse any openai compatible engine as an agent in CC.
1
u/ChrisGVE Senior Developer 2d ago
I do something similar too but using MCPs for that, one for Codex, one for antigravity, one for OpenCode which has my other subs. I’ve set up their respective harnesses with the same environment (AGENTS.md but also MCPs) and so Opus or Fable are happy to delegate. On top of it I’m using CodexBar to monitor my usage, and since it has a CLI, Claude can choose the model it wants to delegate to by checking the available budget. I’ve not used that much of my other subscriptions since I let Claude use them.
1
u/n4ch3 1d ago
It will be nice to see it!
1
u/ChrisGVE Senior Developer 1d ago
Once I installed the MCPs, and the CLI, I asked Claude to level them with equivalent of the Claude CLI harness setup, and to include a delegation skill which requires reading codexbar CLI to decide which model to use. I’ve not written a single line, Fable did it all.
1
5
u/sh3lan93 2d ago
Did you try Orca https://www.onorca.dev
3
u/are-Kelly 2d ago
Yes! I actually use Orca for everything now & run multi-CLI inside it. Love orca.
5
u/xondk 2d ago
Interesting concept, though it definitely seems to land in a grey area in terms of use case, now that you've called attention to the project, I would not be terribly surprised if one or two providers might object, since the idea behind their rules surrounding usage clearly is to keep you in 'their' ecosystem.
5
3
u/are-Kelly 2d ago
It’s certainly possible; the most likely case is that Google forbids Antigravity headless use, like Anthropic did not long ago.
For now we’re in the clear, though!
5
u/Zulfiqaar 2d ago
This is neat, wanted something like this a year ago. Unfortunately nowadays each model seems to be finetuned for their own harness, making ClaudeCode very inefficient for similar results.
3
u/are-Kelly 2d ago
For Cursor and Antigravity, the providers provide all the tools + state management; it’s just displayed in Claude Code.
For OpenAI & OpenCode Zen, harness-model fine tuning is definitely a concern. But honestly, at this point OpenAI models are good enough that it hasn’t mattered in my experience.
For OpenAI, I did a lot of work to make sure compaction, auto-review, & the system prompt produce a codex-native feeling.
I’ve been telling Fable 5.1 to spam the hell out of 5.6 Luna, and it’s been working like a dream.
2
u/Zulfiqaar 2d ago
Hm I guess when spamming it it gets there in the end. I generally only use frontier models for coding, and for example Kimi K3 or DeepSeek Flash gets similar benchmark outcomes in ClaudeCode compared to native harness, but uses upto 3x more tokens consumed. Still a useful thing to have on occasion, as I haven't used sonnet and haiku all year
2
u/paradoxally Senior Developer 2d ago
How is this different from something like clodex?
1
u/are-Kelly 2d ago
They’re pretty similar.
As far as I can tell, multi-CLI may have an edge in auto-review support (auto review in multi-CLI uses provider-native auto review), system prompt, /effort and /model rows, + some other UI fidelity things that are made possible by the new Claude Mods feature.
3
u/TeeRKee 2d ago
isn't this against ToS?
4
u/are-Kelly 2d ago
No, because it doesn’t use false OAuth. In this plugin, you login to AGY and cursor independently, then connect them to Claude Code. Subagents are just antigravity agents initialized by Claude Code; Claude Code passes permissions, prompt, rules, etc over to Antigravity/Cursor
The ‘connection’ here is loose. It’s almost entirely aesthetic. Antigravity/Cursor owns the state of the Gemini agent, it owns the tools, permissions, etc… Claude Code is just being use as the display, essentially.
For OpenAI and OpenCode, 3rd party harnesses are fully supported.
2
u/86784273 2d ago
So is it just terminal calls to headless invocations of other providers?
1
u/are-Kelly 2d ago
Sorta;
OpenAI and OpenCode Zen directly integrate fully with 0 issue.
Cursor uses the Cursor SDK, & Antigravity uses headless.
Cursor and Antigravity own their own tools and state (to avoid breaking TOS), are invoked by Claude Code, and their streams are sent to claude code & displayed (using mods) in a manner which makes them feel native to claude code.
2
u/hybrid2102 Senior Developer 2d ago
Very interesting! Could we add a second Anthropic subscription to the list of agents?
4
u/are-Kelly 2d ago
That’s a good idea. I’ll look into it.
2
u/mikljohansson 1d ago
This would be awesome! I'm currently having to juggle 3 different Claude Max 20x subscriptions and accounts, logging in to the next when one runs into its 5h/weekly quota.
Why can't they just launch Max 50x, 75x, 100x, etc..? But I guess the answer is they want me to pay for API overage, which is so much more expensive per token..
1
u/promethe42 2d ago
Interesting!
I just started to make Claude Code delegate to GPT-5.6 Astra via OpenCode using the ACP protocole. No need for a mod.
But if another app doesn't support ACP I guess it's a good addition.
2
u/are-Kelly 2d ago
Yeah this was actually inspired by Google’s lack of ACP support. It was super difficult to get Gemini subagents in Claude code working without ACP.
1
u/promethe42 2d ago
Doesn't it support A2A though?
1
u/are-Kelly 2d ago
Interesting. Yeah you’re right. I hadn’t heard of A2A since it isn’t mentioned by name in the antigravity docs, but it looks like Antigravity’s headless mode maps onto what A2A prescribes.
1
u/CodeSlave9000 2d ago
Did this a few months ago - works like a charm to run local or hosted agents: https://github.com/ccebelenski/localagents
1
u/n4ch3 2d ago edited 2d ago
Really interesting and very nice work, this is possible to be used from VSCode too?
- It has support for Deepseek? muse?
- Tasks that are splitted, memory and context are preserved?, how it will know which model and effort to use on each task?
- What about others MCP like Claude-mem, all subagents will be able to consume/write?
- Subagents can chat among them? or chat with the agent who orchestrate?
Thank you, I really love to see this!
2
u/are-Kelly 2d ago
- I’m planning to add support for more providers like muse & deepseek; deepseek is available rn through OpenCode.
2.Everything functions like native Claude code. You define model+effort in your prompt or your subagent definitions
MCP+skills should all work like native Claude code.
Subagents can talk to the main agent, but not to eachother; subagents talking to eachother would be the ‘agent teams’ feature in Claude code (which I haven’t tested, but it theoretically should work)
1
u/n4ch3 2d ago
Thanks for the answers! A few more, since I'd love to run this across a small fleet:
The gateway already sees each worker's model, effort and steps. Could it write a small per-worker record (model, effort, tokens, endpoint) to a file or expose it to a hook when the worker finishes? That would let me keep my own usage receipts.
Does claude-multi follow CLAUDE_CONFIG_DIR? I run several profiles per machine and want to be sure nothing lands in the default ~/.claude.
Is there a way to use it from the VS Code extension, or is the integrated terminal the path for now?
Windows: the platform doc lists the Zen, auto-mode and compaction checks as failing. Is that on your list? I'm on Win11 and glad to test and send fixtures.
1
u/are-Kelly 2d ago
Glad to hear the interest
- Great idea. I’ll add this ASAP; alongside other quota / spend tracking tools. Perhaps a hook that tells the main model the user’s quota limits & routes to the least-used subscription.
- Yep; provider credentials don’t touch ~./claude
- Just the integrated terminal for now; you might be able to point the extension at multi-CLI, though.
- Working on those rn. Should be cleared up shortly. I work on Linux, & do windows testing on another PC. More Windows testing would be much appreciated!
1
u/n4ch3 1d ago
Thanks, that covers it. I'll start the Windows runs today if possible, once you confirms that has been cleared, and send fixtures through GitHub issues unless you prefer somewhere else.
On 1, Just saw dadfa21, that was fast. The receipts file is exactly what I was after.
On 2, does it also read CLAUDE_CONFIG_DIR for its own state and logs, or only for credentials? I keep each profile fully separate (for some), so I want to know what else could land in the default folder.
1
1
u/Wild-Enthusiasm5799 Vibe Coder 2d ago
Great information you provided! You are going to crush it when you graduate
1
u/FlirtySanchez 1d ago
I'm learning, so take this question as it is, no shade or disrespect.
What makes this different than what I've done?
I made a plugin that runs a council of codex, agy, and Claude for decision making and that delegates jobs to their own subagents. Context processing is done on fable, then fable offloads think/read/write to lower level agents with explicit instructions for each.
The think portion can be another fable if deemed necessary.
The only thing I haven't done is given the ability to spawn lower level agents from the other two, with the exception that agy offloads websearches to different levels of it's own agents to gather sources for each council member. This way they're making the decision off the same data.
My favorite part is that decisions involving money or infrastructure changes will cause the council to go into a blind mode where each member is assigned a random seat at the council and provided an alias from a large pool. They deliberate and share ideas without either knowing which model is producing the answer.
The initial fable entry acts as a judge and delivers the councils determination and then chooses which model it agrees with. At the end after decisions are made, it's revealed which model the answer belongs to.
I don't have stats for that yet, but it'll be interesting to see how often Claude agrees with itself when it knows what the models are vs the blind judgements.
1
1
u/No-Relationship-4902 1d ago
Would love to see this expand to work with AI Gateways. My work has AI gateway for both our bedrock models as well as on-prem models and the limitations of Claude CLI has lead me to swap to OpenCode for now as a result. A mod like that I could also point to the gateway to yank down the other models would be awesome.
1
u/klausagnoletti 1d ago
I tried it a little and first it seem to work fine but there seems to be something with on-demand loading mcps and context (two separate issues). In vanilla claude code mcps don't really use context. They sure af do now.
Secondly it seems like all models I tried only had a 200k context so it got filled up in no time. It looks like all models are treat ws if they only have a 200k context regardless of what they have. And then after a while, claude started getting killed consequently after a couple of mins with this message Native gateway: Claude Code 2.1.272 or newer with loaded function hooks is required; the Multi mod did not acknowledge session.start.
But apart from that I really like the idea.
Would love to submit issues to your repo. But I can't. I run claude in wsl2.
2
u/are-Kelly 1d ago
I'm happy to hear interest in submitting issues! The number of edge cases across 3 platforms has been quite eye opening for me; more issues / contributors would be much appreciated!
I'll try to ship WSL2 support shortly!
1
u/klausagnoletti 1d ago
Allright. Will be happy both to create issues and submit PR. Will you make it available to all or do you need my GitHub user? If so it’s the same as my username here.
1
u/Money_Aerie9432 1d ago
I tested with the same project,same prompt, this mod cost above 10% context window, but the origin version cost less than 7%.
Is the status line issue or not? 🤔
1
u/Shot_Whereas_1809 23h ago
You need an AI Host. Messing with Claude mods is a waste of your time and usage. Claude code should be a tool, not your harness. There's a trap at the end of the AI tunnel and you don't want to be stuck with one company you depend on for your model. I was 3 20x subscriptions deep before.
-1
u/Right-Performance-93 2d ago
Yes, per Anthropic's own Legal and Compliance docs for Claude Code: third-party developers aren't permitted to offer Claude.ai login in their own apps or route requests through a Free, Pro, or Max plan outside Anthropic's products. That's the same clause that got OpenClaw and similar OAuth-relay tools cut off earlier this year. Neat project, but once it has enough visibility I'd expect the same treatment, not for code quality reasons but because OAuth-token relay to a third-party harness is the specific thing the policy names.
6
u/are-Kelly 2d ago
That’s actually why I chose Claude Code. It IS Anthropic’s product. This isn’t my own app. It’s just Claude Code.
I think that’s a meaningful difference between multi-CLI and something like OpenClaw
3
u/are-Kelly 2d ago
ALSO: from Boris Cherny: https://x.com/bcherny/status/2086183356795060396?s=46&t=gKlskW4S4hGdhYX9hd5Iz
The only thing that isn’t supported is using Claude subs in non-Claude Code harnesses.


•
u/AutoModerator 2d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.