pi-provider-ollama-cloud0.0.5
Pi provider extension for Ollama Cloud (ollama.com), direct connection without a local server.
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.
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
- Development and contribution rules:
AGENTS.mdanddoc/README.md. - Tests:
test/README.mdandtest/provider.test.ts; behavior checks cover provider registration, discovery parsing, and compatibility mapping. - Public contract: the current endpoint, authentication, discovery, and compatibility rules are in
doc/规格/Ollama-Cloud-接口事实.md(Chinese); the implementation isindex.ts. Source links, probe records, and snapshots are indoc/references/and are not current authority.
Directories and entry points
index.ts— extension entry: provider registration, authentication, dynamic discovery, and compatibility mapping.doc/— document map indoc/README.md: current mechanism and protocol indoc/规格/, hard-to-reverse decisions indoc/决策档案/, sources and verification evidence indoc/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