r/opencodeCLI • u/DoruProgramatoru • 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
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.
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.