pi-private-models
pi extension that keeps private model providers out of the published models.json
Package details
Install pi-private-models from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-private-models- Package
pi-private-models- Version
0.1.1- Published
- Sep 29, 2026
- Downloads
- 278/mo · 15/wk
- Author
- jalaxy33
- License
- Apache-2.0
- Types
- extension
- Size
- 42.8 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/private-models/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-private-models
English | 简体中文
pi extension that keeps private model providers out of the published models.json
<agent-dir>/models.json public, committed
<agent-dir>/models.private.json private, kept out of the repository
{
"providers": {
"my-gateway": {
"baseUrl": "http://10.0.0.5:8123/v1",
"api": "openai-completions",
"apiKey": "$GATEWAY_API_KEY",
"models": [
{ "id": "glm-5.3", "reasoning": true, "contextWindow": 200000, "maxTokens": 32000 },
// ...
]
}
}
}
Install
From npmjs:
pi install npm:pi-private-models
From GitHub:
pi install git:github.com/jalaxy33/pi-private-models
Add models.private.json to your .gitignore. A missing file does nothing.