Before you begin
Make sure you have:Configure a Pi provider
To register Modular Cloud as a provider in Pi:-
Open (or create) the
~/.pi/agent/models.jsonconfiguration file. - Choose the model that you want from our list of shared endpoints or use a dedicated endpoint if applicable.
-
Add Modular Cloud as a provider:
models.json
api value depends on the API you’re using:
- For the chat completions API, use
openai-completions. - For the responses API, use
openai-responses.
models.json file, run /model in Pi and select the Modular
Cloud model to use.
The example above demonstrates a basic provider and model configuration. To see
the complete list of configuration options, see the Pi documentation on Custom
Models.