inf pi routes Pi through https://api.inference.net/v1 using the openai-completions API. Pi uses two config files. Pi’s own auth.json sign-in state is never touched.
Config files
inf writes fields in ~/.pi/agent/models.json and ~/.pi/agent/settings.json (JSON, two targets). inf owns fields in those files, not the whole files. auth.json is not touched so off cannot sign you out of your own Pi account.
inf pi on
See Model mapping for supported aliases and limits.
What gets written
models.json providers.inference object:
settings.json:
The
glm-5.2-fast registry entry carries contextWindow 262,144 and maxTokens 128,000.
inf pi status
status reports partial state.
inf pi off
off restores unchanged owned fields. It keeps fields that you edited after on.
Examples
Select the Fast-tier alias:on or off. See Troubleshooting for drift, recovery, and key revocation.