This connects the Pi coding agent to https://llm.apache.org/v1 with the pi-localllm-provider extension. You need Pi installed (pi --version; see pi.dev) and a personal access token from My Keys.
Install the extension:
pi install npm:pi-localllm-provider
Start Pi and open the extension:
/localllm
Choose Add server.
Apache LLMAO, or another name you prefer.https://llm.apache.org/v1Confirm the server. Pi lists the models the gateway offers. Enable all of them, or a subset. They then sit alongside your other providers. The current set includes gemma4-26b, qwen3-8b, and qwen3.8-27b. The Models page is the list.