Run Berget AI models inside Pi.
pi install npm:@bergetai/pi-providerRestart Pi or run /reload to load the extension.
This provider supports two authentication methods. API key authentication takes precedence when both are configured.
Set your API key using one of the following methods.
Environment variable (recommended):
export BERGET_API_KEY=your-api-key~/.pi/agent/auth.json:
{
"berget": {
"type": "api_key",
"key": "your-api-key"
}
}~/.pi/agent/models.json:
{
"providers": {
"berget": {
"baseUrl": "https://api.berget.ai/v1",
"apiKey": "your-api-key"
}
}
}If you have a Berget Code plan, authenticate interactively through your browser:
/login
Select "Use a subscription" and then "Berget AI".
Once authenticated, Berget AI models are available in Pi. Select one with:
/model
Or cycle through models with Ctrl+P. Models are prefixed with berget/.
List all available models from the command line:
pi --list-modelsSee CONTRIBUTING.md for development setup, testing, and architecture details.
MIT