Skip to main content
Configure Pi to call the Modellix LLM gateway. Pi does not ship a built-in Modellix provider, so add a custom provider in ~/.pi/agent/models.json that points at Chat Completions on POST /v1/chat/completions.
This page covers LLM text only (https://llm.modellix.ai). For Pi media packages and skills (image, video, speech), see Plugin and Skill.Modellix model IDs are provider/name (for example openai/gpt-5.5). Put that full string in each model id under your custom provider. See Models & Pricing.

Set Up Pi

1

Get a Modellix API Key

Create a Modellix API key in the console and export it so models.json can resolve $MODELLIX_API_KEY:
Add the same line to your shell profile (for example ~/.zshrc) for persistent use.
2

Add a Custom Provider

Create or update ~/.pi/agent/models.json:
Merge the modellix entry into an existing providers object if you already use custom models. Add or remove entries under models as needed.
Use a custom provider key such as modellix. Overwriting Piโ€™s built-in openai or anthropic providers sends traffic to the vendor endpoints instead of Modellix.
You do not need a separate Anthropic base URL. Register anthropic/... and google/... IDs on the same Modellix provider; traffic goes through OpenAI-compatible Chat Completions on https://llm.modellix.ai/v1.
3

Select a Modellix Model

In an interactive Pi session, run /model and choose a Modellix entry (for example openai/gpt-5.5 under the modellix provider).Or start Pi with the provider and model on the command line:
Pi reloads models.json each time you open /model, so you can edit the file during a session without restarting.
If a Modellix model appears in the file but stays unavailable in /model, confirm $MODELLIX_API_KEY is set. Pi requires auth before custom models become selectable.
4

Start Pi

Start Pi as usual:
Or with Modellix selected up front:

Troubleshooting