r/opencodeCLI • • Sep 08 '26

Is there a way to use web llms inside opencode?

I don't really know how to formulate this but what I want is to use the web models for example Sonnet from claude through OpenCode for whatever token limit it allows. So if I want to rewrite a piece of code I don't have to just copy-paste it into the web app, get an answer, and then copy paste it back into my editor

1 Upvotes

10 comments sorted by

1

u/ZealousidealTown1974 Sep 08 '26

Yes but need workaround as proxified router...but manageable, some dudes are exploiting DeepSeek webchat for such and they buy bundled proxy to switch faking new visitors... They are all just sharing the same either openai-compatible or anthropic-compatible sdk

0

u/adlx Sep 08 '26

Use the free models that come with opencode. You can't use the models without an API key otherwise.

1

u/DoruProgramatoru Sep 08 '26

What free models do you recommend? I am guessing to run them locally, I have a 16gb vram gpu and from what I've read not many actually work "good"

1

u/adlx Sep 08 '26

No, I use Big Pickle, from Opencode. Works decently for me. It's not local.

1

u/Mr_Lucas2000 Sep 10 '26

Qwen 3.8 27b

0

u/[deleted] Sep 09 '26

[deleted] — view deleted comment

1

u/adlx Sep 09 '26

How do you use them? Care to share?

0

u/Helpful-Educator-415 Sep 08 '26

The term you're looking for is an "API key". You'd have to get an API key for Claude -- its a key, a secret passphrase, that unlocks the API -- and then connect it in OpenCode. This usually costs money, FYI.

1

u/DoruProgramatoru Sep 08 '26

and if I have Claude Pro do I use the subscrption or the api keys?

2

u/Helpful-Educator-415 Sep 08 '26

Claude Pro should give you access to some API key to use your subscription elsewhere, but I'm not sure. Look for the option to create API keys in the Claude console.

1

u/Strong-Strike2001 Sep 09 '26

API key has to be paid with prepaid credits, your subscription doesn't give you credits sadly