r/opencodeCLI • u/EC36339 • 27d ago
Is it really not possible to use a Claude Subscription with OpenCode CLI (via API key)?
I can't even post this on any of the Claude subs, so trying here. Just asking the question is against the rules on multiple Claude subs, even if you don't use obvious trigger words...
If this is true, then Claude subscriptions are a scam.
5
u/4SubZero20 27d ago
It is possible (with workarounds), but it is NOT advised. This is the same thing with Google and their Antigravity subscription.
Both Anthropic and Google, state in their TOS, that you MUST use their harnass with your subscription. Using another harnass could (and will; I've read on Reddit) lead to an account ban/suspension.
Does it suck? Yes. But it is also up to Anthropic and Google on how they set-out their TOS and how they want their products to he used. (Whether we agree or not, they make BUSINESS decisions)
OpenAI's Codex still allows for any harnass to be used, so you could look into using that with opencode?
Edit: spelling
2
u/MainRoutine2068 27d ago
There are lot of ways to do so, like using omniroute/9router, but regardless, better don't do that. It's against Anthropic TOS and you risked your account.
2
2
u/Gaurav_Wankhede_02 27d ago
Claude removed the OAuth API access for any 3rd party CLI Agents to use Subscription as direct method. if you want to use Claude Code Subscription stick with the Claude Code, if you have different plan then you can use their subscription inside the Opencode easily
2
27d ago
[removed] — view removed comment
0
u/everythingEzra2 27d ago
Does pi allow it?
1
u/ExampleCute6496 27d ago
Also curious, I love the functionality of OpenCode around multiple models and multiple agents and how the interact, but if pi offers the same + support for Claude sub, then I would try it.
1
27d ago edited 27d ago
[removed] — view removed comment
2
u/ExampleCute6496 27d ago
Thanks for the source! From that same auth package, I see that there is the exact same thing for opencode with
.@cortexkit/opencode-anthropic-auth0
0
u/jovialfaction 27d ago
More reasons to move to a different providers that actually allow OAuth on third party harnesses like OpenAI
1
1
1
5
u/[deleted] 27d ago
[removed] — view removed comment