🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

pi-model-switch

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pi-model-switch

Model switching extension for pi coding agent

latest
npmnpm
Version
0.1.4
Version published
Weekly downloads
50
-52.83%
Maintainers
1
Weekly downloads
 
Created
Source

pi-model-switch

A Pi coding agent extension for direct model switching.

It provides one tool, switch_model, for model listing, search, and direct switching.

Foreground orchestration now lives in pi-orchestrate.

Installation

pi install npm:pi-model-switch

Restart Pi to load the extension.

Tool

switch_model

Parameters:

  • action: list | search | switch
  • search?: query for search and switch
  • provider?: provider filter

Behavior:

  • list: shows available authenticated models
  • search: filters by provider, id, or name
  • switch: resolves aliases first, then does exact or partial model matching

Aliases

Define aliases in:

~/.pi/agent/extensions/model-switch/aliases.json
{
  "cheap": "google/gemini-2.5-flash",
  "coding": "anthropic/claude-opus-4-5",
  "budget": ["openai/gpt-5-mini", "google/gemini-2.5-flash"]
}

Rules:

  • top-level value must be an object
  • alias names must be non-empty strings
  • each target must be provider/modelId
  • string alias: one exact model target
  • array alias: fallback chain; first available authenticated target wins

License

MIT

Keywords

pi-package

FAQs

Package last updated on 14 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts