pi-local-models

Pi extension for any local model harness - model discovery, per-project config

Packages

Package details

extension

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

$ pi install npm:pi-local-models
Package
pi-local-models
Version
0.1.0
Published
Jul 7, 2026
Downloads
269/mo · 45/wk
Author
merken
License
MIT
Types
extension
Size
7.1 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions/local-models.ts"
  ]
}

Security note

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

README

pi-local-models

Local model discovery for PI Coding Agent

This supports any openai-api spec provider

  • llama.cpp
  • Ollama
  • oMLX
  • llama-swap
  • MTPLX

Installation:

pi install npm:pi-local-models

Configuration

Create a minimal config for your local LLM harness:

{
    "url": "http://127.0.0.1:8080",
    "apiKey": "1234"
}

See a full example here

Store the file at user level: ~/.pi/agent/local-models.json Or at project level: ./.pi/agent/local-models.json

Run pi and perform the /models command to select any discovered [local-model].