← Catalog

@vtstech/pi-ollama-sync

Ollama model sync extension for Pi Coding Agent

Package

Install

Install with PiG

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

Install with Pi

pi install npm:@vtstech/pi-ollama-sync
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./ollama-sync.js"
  ]
}

README

Written by the package's publisher, shown as published in version 1.3.2 (README.md). PiG does not review it.

@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 as part of the bundle
pi install git:github.com/VTSTech/pi-coding-agent

# Or install individually
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

License

MIT — VTSTech