omp packages

pi-provider-ollama-cloud0.0.5

Pi provider extension for Ollama Cloud (ollama.com), direct connection without a local server.

diwu507 Published 7 hours ago MIT ~124 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-provider-ollama-cloud

English · 简体中文

A custom Pi provider extension that connects directly to Ollama Cloud.

Developed and verified against Pi 1.8.0; the host Pi range is declared in peerDependencies.

What it is

Registers the ollama-cloud provider. It does not go through a local Ollama server; it connects directly to the Ollama hosted API (https://ollama.com/v1). Cloud models are called through the OpenAI-compatible Chat Completions protocol, and /v1/models + /api/show dynamically discover models that support tool calls.

Who it is for

Developers with an Ollama Cloud API Key who want to use cloud models in Pi directly, without a local Ollama service.

How to run

pi install npm:pi-provider-ollama-cloud
# or local development (this workspace path)
pi -e /Users/diwu/Workspace/Codes/Githubs/pi-extensions/pi-provider-ollama-cloud
# or, from the repository root
pi -e .

Configure the API key (either way):

export OLLAMA_API_KEY=your-ollama-cloud-api-key
# or choose ollama-cloud after /login inside Pi

Then pick a model under ollama-cloud with /model, or run:

pi --model ollama-cloud/glm-5.2

Development, tests, and public contracts

Directories and entry points

  • index.ts — extension entry: provider registration, authentication, dynamic discovery, and compatibility mapping.
  • doc/ — document map in doc/README.md: current mechanism and protocol in doc/规格/, hard-to-reverse decisions in doc/决策档案/, sources and verification evidence in doc/references/.
  • test/ — provider registration, discovery parsing, and compatibility behavior tests.

Verification

npm run check   # type-check
npm test        # behavior tests
pi --list-models | grep ollama-cloud