Install Gab AI as a Pi model provider with first-use API key setup, model switching, and Gab API tools.
Install the official Gab AI package from npm: You can also try the package for one Pi run without installing it globally:
Start Pi and run the Gab command. Pi prompts for your Gab AI API key once and saves it in Pi's normal auth store. Environment variables also work for scripted or temporary sessions:
If you select a Gab model before setup, the package prompts for your API key on first use. GAB_AI_API_KEY is accepted as an alternative environment variable.
Gab models appear in Pi's normal model picker under the gab provider. Switch models from inside Pi with:
The package also registers Gab API tools so Pi agents can use Gab capabilities directly during tool-calling workflows.
pi install npm:@gabai/pi-gab-ai
pi --no-extensions -e npm:@gabai/pi-gab-ai --models "gab/*"
/gab
export GAB_API_KEY="YOUR_GAB_API_KEY"
pi --models "gab/*"
If you select a Gab model before setup, the package prompts for your API key on first use. GAB_AI_API_KEY is accepted as an alternative environment variable.
pi --list-models gab
pi --provider gab --model arya
pi --model gab/gpt-5-5
pi --models "gab/*"
/gab arya
/gab gpt-5-5
/gab status
/gab logout
Use gab_generate_image to create one image of a red square centered on a white background.