Interactive TUI for discovering and managing local AI model endpoints. Works with llama.cpp, oMLX, Ollama, vLLM, SGLang, LM Studio, and any OpenAI-compatible server.
- Auto-detect server type from headers and model data (no manual config)
- Read real server-reported configs — context window, max tokens, reasoning flags, input modalities
- Fine-tune per-model overrides — set context window, max tokens, reasoning toggles
- Multi-endpoint management — add, scan, and register multiple local servers
- LLM-callable tool — the
discover_modelstool lets the agent discover endpoints on your behalf - Persistent storage — providers saved across sessions in
~/.pi/agent/model-discovery.json
# Via npm
pi install npm:@maheidem/model-discovery
# Via git
pi install git:github.com/Maheidem/model-discovery@v0.1.0Run /discover in pi to open the management TUI:
- Add endpoint — enter a URL, probe it, review models, register
- Scan existing — re-scan registered endpoints for fresh model lists
- Edit per-model — override context window, max tokens, reasoning flags
- Remove — unregister and delete saved endpoints
/discover http://192.168.1.100:8080 # jump straight to adding this endpoint
The discover_models tool can be called by the agent:
discover_models(url="http://localhost:8080", providerName="my-llama", apiKey="optional-key")
Discovered providers are persisted in ~/.pi/agent/model-discovery.json.
- pi coding agent with TUI support
- Access to OpenAI-compatible model servers on your network
MIT