pi-cloud-ollama
v1.0.0
Published
Pi extension: Ollama Cloud provider with model discovery and metadata mapping
Maintainers
Readme
pi-cloud-ollama
A pi-coding-agent extension that registers the Ollama Cloud OpenAI-compatible endpoint as a provider.
Features
- Model discovery. Fetches the live model list from
ollama.com/api/tags(fallback:GET https://ollama.com/v1/models), with a 10 s timeout and graceful degradation. - Metadata mapping. Known models get accurate context windows, max tokens, reasoning and vision flags;
:cloudand date-stamped tag suffixes (:0731) are normalized for lookup. Unknown models fall back to sensible defaults. - Refresh support.
refreshModelsre-discovers the catalog when pi refreshes models (only when network access is allowed).
Installation
pi install npm:pi-cloud-ollamaConfiguration
Set your Ollama API key:
export OLLAMA_API_KEY=ollama_...Then select the ollama-cloud provider in pi.
