pi-ollama-cloud-models

pi extension that auto-discovers Ollama Cloud models from ollama.com and registers them as an `ollama-cloud` provider.

Packages

Package details

extension

Install pi-ollama-cloud-models from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-ollama-cloud-models
Package
pi-ollama-cloud-models
Version
0.1.0
Published
Jul 16, 2026
Downloads
156/mo · 156/wk
Author
rgesulgon
License
MIT
Types
extension
Size
10.9 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-ollama-cloud-models

A pi extension that keeps your Ollama Cloud model list up to date automatically. It fetches the models available on ollama.com and registers them under a dedicated ollama-cloud provider, so they show up in /model without manually editing ~/.pi/agent/models.json.

Cloud models are reached through your local Ollama daemon (http://127.0.0.1:11434/v1) using the :cloud / -cloud name suffix, so this extension is non-destructive: it does not touch any existing ollama provider you have configured.

Install

pi install npm:pi-ollama-cloud-models

Or try it without installing:

pi -e npm:pi-ollama-cloud-models

What it does

  • On startup, registers an ollama-cloud provider populated from https://ollama.com/v1/models, enriched with per-model capabilities and context length from https://ollama.com/api/show.
  • Caches the list for 1 hour at ~/.pi/agent/extensions/.ollama-cloud-cache.json; falls back to a stale cache if the network is down.
  • Adds a /ollama-cloud-refresh command to force-refresh the list and re-register the provider immediately (no /reload needed).

Requirements

  • A running local Ollama daemon (ollama serve) at http://127.0.0.1:11434.
  • An Ollama account signed in (ollama sign in) so cloud models can be offloaded from your machine.

Model metadata

Field Source
id <base>:cloud (untagged) or <base>-cloud (tagged)
reasoning true when /api/show reports the thinking capability
input ["text", "image"] when vision is reported
contextWindow <arch>.context_length from model_info

License

MIT