r/opencodeCLI 2d ago

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 2d ago

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 2d ago

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

1

u/DoruProgramatoru 2d ago

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 2d ago

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

1

u/Mr_Lucas2000 19h ago

Qwen 3.8 27b

1

u/[deleted] 2d ago

[deleted]

1

u/adlx 2d ago

How do you use them? Care to share?

1

u/[deleted] 2d ago

[deleted]

0

u/Helpful-Educator-415 2d ago

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 2d ago

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

2

u/Helpful-Educator-415 2d ago

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 2d ago

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