@neuron-mr-white/pi-zenmux
v1.0.1
Published
ZenMux provider extension for Pi — dynamic model discovery with caching
Maintainers
Readme
pi-zenmux
ZenMux provider extension for Pi. Auto-discovers and registers all available models from the ZenMux API gateway.
Install
pi install npm:@neuron-mr-white/pi-zenmuxSetup
Set your ZenMux API key:
export ZENMUX_API_KEY="your-api-key"Usage
Start pi normally — ZenMux models appear under the zenmux provider:
piSelect a model with /model or use zenmux/<model-id> directly.
Commands
/zenmux-refresh— Force refresh model list from API
How it works
On startup, the extension:
- Reads cached model list from
~/.cache/pi-zenmux/models.json(24h TTL) - If cache hit: registers models synchronously (zero latency)
- If cache miss: registers empty provider, fetches models in background
- Writes cache for next startup
Development
Test locally without publishing:
ZENMUX_API_KEY="your-key" pi -e ./extensions/index.ts