Pi provider
Pi settings and models are installed readonly, so the llama.cpp provider is declared in chezmoi source and installed as ~/.pi/agent/models.json:
,llama-cpp serve
pi --model llama-cpp/nemotron-3.5
pi --model llama-cpp/qwen3.6-35b-a3b
pi --model llama-cpp/qwen3.6-35b-a3b-instruct
The provider declares the llama.cpp router ids:
| Field | Value / reason |
|---|---|
| Models | llama.cpp router ids |
| Base URL | http://127.0.0.1:8080/v1 |
| API mode | openai-completions |
| Template compatibility | Qwen thinking-compatible |
apiKey | !command form (!printf ...) |
Provider keys use $ENV_VAR or !command syntax. Pi's startup migration therefore has nothing to rewrite and never attempts to write the read-only ~/.pi/agent/models.json.
If llama-server starts with --api-key, export LLAMA_CPP_API_KEY before launching Pi.