opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Ollama Cloud AUTH Login

Open SerenityNrrd opened this issue 1 year ago • 14 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Using Ollama Cloud has been aswesome but right now i have to use it through my local or server Ollama instance... can you add the https://ollama.com and then an API key add to use Ollama Directly from the cloud. ? also you can fetch models https://docs.ollama.com/cloud

SerenityNrrd avatar Nov 21 '25 09:11 SerenityNrrd

Yeah we just need to add it to models.dev

rekram1-node avatar Nov 22 '25 07:11 rekram1-node

It's pretty easy to do so, if you are up for it a PR would be welcome

rekram1-node avatar Nov 22 '25 07:11 rekram1-node

Then we can document how to do it here in provider.mdx file

rekram1-node avatar Nov 22 '25 07:11 rekram1-node

PR raised for this in models.dev: https://github.com/sst/models.dev/pull/419

fifthfrankie avatar Nov 22 '25 14:11 fifthfrankie

Okay I merged it

rekram1-node avatar Nov 22 '25 18:11 rekram1-node

ollama cloud model kimi k2 thinking not working . just not getting any response from the ollama what so ever . please resolve this issue .

I am getting this error : OllamaError : Unable to connect. is the computer able to access the url ?

hemangjoshi37a avatar Nov 23 '25 11:11 hemangjoshi37a

I resolved the issue by adding /v1 to the provider url to the ollama one and the problem got resolved.

hemangjoshi37a avatar Nov 23 '25 12:11 hemangjoshi37a

Tryed the ollama cloud access with api-key today. I get the following error on all models.

OllamaError: model 'gpt-oss:20b-cloud' not found

Is it a me problem or is the ollama cloud option currently broken?

bf-frieder avatar Nov 30 '25 12:11 bf-frieder

You need to pull the model information first: ollama pull gpt-oss:20b-cloud

Full info here: https://opencode.ai/docs/providers/#ollama-cloud

fifthfrankie avatar Dec 02 '25 22:12 fifthfrankie

Where do I add the ollama api key and in which format? export something?

621625 avatar Jan 12 '26 06:01 621625

Hey is this issue solved?

itsthekidash3 avatar Feb 05 '26 01:02 itsthekidash3

Hey, just wanted to flag that this looks like it's already been resolved. Ollama Cloud was added to models.dev back in November (via anomalyco/models.dev#419), so /connect will show it in the provider list when you search for it. The docs are also live at https://opencode.ai/docs/providers/#ollama-cloud with full setup steps.

Might be worth closing this one out if the maintainers agree everything is working as expected.

AJIredale avatar Feb 27 '26 14:02 AJIredale

To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

github-actions[bot] avatar Apr 29 '26 03:04 github-actions[bot]

I confirm that, today 14-Aug-2026, this connection problem between OpenCode and Ollama-cloud models still remains the same. OpenCode simply cannot authenticate with the API key in Ollama-cloud.

To work, I needed to configure a provider for Ollama, directly in OpenCode.json, pointing to the model stored in the cloud. Before using in OpenCode; I first need to start Ollama locally, so it can serve as a proxy for the cloud connection:

  1. ollama pull qwen3.5:397b-cloud
  2. ollama run qwen3.5:397b-cloud
  3. carry out all work within OpenCode, and at the end of all:
  4. ollama stop qwen3.5:397b-cloud

It's a lot of work, but it's the only way I found to use the credits I put into Ollama Cloud without knowing about this problem.

I have already canceled my subscription to Ollama Cloud.

fllsilva avatar Aug 14 '26 17:08 fllsilva