@pi-vault/pi-custom-providers
Pi extension that enables custom providers for Pi
Package details
Install @pi-vault/pi-custom-providers from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@pi-vault/pi-custom-providers- Package
@pi-vault/pi-custom-providers- Version
0.1.1- Published
- May 25, 2026
- Downloads
- not available
- Author
- lanhhoang
- License
- MIT
- Types
- extension
- Size
- 34.9 KB
- Dependencies
- 1 dependency · 0 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@pi-vault/pi-custom-providers
A Pi custom provider package for adding third-party model providers to Pi.
Disclaimer: This is an unofficial, community-maintained package. Individual providers included here may be backed by third-party services that are not affiliated with this package.
Note: This package only provides model providers. It does not include provider API keys or subscriptions.
Providers
Current providers included in this package:
- Command Code
More providers can be added over time without changing the package structure Pi installs.
Models
Available models change over time. See the official Command Code model list:
Install
pi install npm:@pi-vault/pi-custom-providers
Then reload Pi:
/reload
Setup
Set up the provider you want to use in Pi.
For Command Code, use one of these methods:
1. Pi login (recommended)
In Pi, run:
/login
Then select Command Code from the provider list.
2. Environment variable
export COMMAND_CODE_API_KEY="user_..."
Legacy compatibility:
export COMMANDCODE_API_KEY="user_..."
3. Auth file
Create ~/.commandcode/auth.json:
{
"apiKey": "user_..."
}
Or use Pi's auth file at ~/.pi/agent/auth.json:
{
"commandcode": "user_..."
}
Usage
After installing and setting up a provider, select one of its models in Pi.
For Command Code, an example is:
/model deepseek/deepseek-v4-flash
Any query will then use the Command Code API.
You can list available models in Pi:
/models
Publish
npm login
npm publish --access public
License
MIT