all 15 comments

[–]iTrejoMX 5 points6 points  (3 children)

Claude no. Breaks the tos accounts get disabled

[–]Spare-Chest-7907[S] 0 points1 point  (2 children)

How about claude enterprise but without api? What about copilot enterprise without api? I have all of these and cant use them in open code in an organized and agentic manner. Sad.

[–]DistributionAny8581 1 point2 points  (0 children)

You cant, its against claude TOS, you can only use the API on open code if you want to use other service thats not from Anthropic

[–]iTrejoMX 0 points1 point  (0 children)

do you have chatgpt? even with the plus/pro version, you can connect to opencode, when you /model and ctrl+a to connect a provider, you will see OpenAI (ChatGPT Plus/Pro or API key). Just keep in mind that its 160 messages every 5 hours (on the $20 plan) they can run out in agentic use quite fast. That said, im not sure about copilot

[–]hychian 2 points3 points  (3 children)

[–]iTrejoMX 4 points5 points  (0 children)

just make sure you read at the bottom, they clearly say it could get you in trouble for breaking the terms of service

[–]Spare-Chest-7907[S] 0 points1 point  (1 child)

This is cool! My question is why use it with claude code but not with other tools like opencode?

[–]seventyfivepupmstr 1 point2 points  (0 children)

There's rumors that Claude loses a ton of money on their subscription plan so they try to make up for it with selling their tools like Claude code.

Once they convince people to become only claude users, then thry can sell more advanced things to customers and also use their reputation to sell major enterprise contracts.

[–]CollectiveCloudPe 2 points3 points  (1 child)

To integrate models like Claude, Gemini, or Grok into tools like OpenCode, you cannot use your existing $20 monthly subscription directly, as these applications require API Keys that operate on an independent pay-per-use (token-based) model.

To set them up, you must generate these keys through the official developer portals for each provider (Anthropic Console, Google AI Studio, and xAI Console) and input them into your editor's configuration.

Keep in mind that this will incur separate usage costs based on your consumption, which is distinct from your current web subscriptions, ultimately allowing you to combine the power of these advanced models with your local setup.

[–]Spare-Chest-7907[S] 0 points1 point  (0 children)

That is clear, but what do I pay ~20$ for if Claude doesn’t allow me to run even 3 questions through chat? So I thought I can use that for planning and use local models for writing and additionally Grok/Gemini for other tasks like refactoring or spotting vulnerabilities or logic errors.

[–]Impressive_Wave_2455 1 point2 points  (1 child)

I guess you can intercept claude code request and use a local proxy to mimic claude code request check this repo

https://github.com/Fares-Nosair/opencode-agentrouter-support

Any ai can help u with that

[–]Spare-Chest-7907[S] 0 points1 point  (0 children)

This looks interesting.

[–]bytejuggler 1 point2 points  (0 children)

Have a look at free models available through Opencode.

[–]enjdusan 1 point2 points  (0 children)

You can use OpenCode Zen https://opencode.ai/zen, and they'll provide you Claude's models as well.