Skip to main content
Pi supports custom OpenAI-compatible providers through models.json.

1. Install Pi

Check the installation:

2. Set your API key

PowerShell:

3. Add Floodgate models

Create or edit ~/.pi/agent/models.json:
openai-completions is the standard and most reliable Pi API mode for Floodgate.

4. Run Pi

Use /model or press Ctrl+L, then select a model under floodgate. Pi reloads models.json whenever you open the model picker. Run a one-shot task: