@vtstech/pi-ollama-sync

Ollama model sync extension for Pi Coding Agent

Package details

extension

Install @vtstech/pi-ollama-sync from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@vtstech/pi-ollama-sync
Package
@vtstech/pi-ollama-sync
Version
1.2.1
Published
May 5, 2026
Downloads
2,338/mo · 31/wk
Author
vtstech
License
MIT
Types
extension
Size
9.7 KB
Dependencies
1 dependency · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./ollama-sync.js"
  ]
}

Security note

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

README

@vtstech/pi-ollama-sync

Ollama sync extension for the Pi Coding Agent.

Auto-populate models.json with all available Ollama models — works with local and remote instances.

Install

pi install "npm:@vtstech/pi-ollama-sync"

Commands

/ollama-sync                          Sync from models.json URL (or localhost)
/ollama-sync https://your-tunnel-url  Sync from a specific remote URL

Features

  • Queries Ollama /api/tags for available models (local or remote)
  • Writes the actual Ollama URL back into models.json so other extensions pick it up
  • URL priority: CLI argument → existing models.json baseUrl → OLLAMA_HOST env → localhost
  • Preserves existing provider config (apiKey, compat settings)
  • Defaults to openai-completions API mode
  • Sorts models by size (smallest first)
  • Auto-detects reasoning-capable models (deepseek-r1, qwq, qwen3, o1, o3, think, reason)
  • Merges with existing per-model settings
  • Per-model metadata in sync report (parameter size, quantization level, model family)
  • Registered as both /ollama-sync slash command and ollama_sync tool

Links

License

MIT — VTSTech