Pi Coding Agent with a Custom LLM via models.json
Pi Coding Agent is a terminal-based coding agent that is minimal and highly customizable, shipping with four core tools by default: read, write, edit, and bash. One of Pi’s strengths is that it lets you freely choose the LLM provider behind the agent — from major providers such as Anthropic, OpenAI, and Google, to self-hosted OpenAI-compatible APIs like Ollama, vLLM, LM Studio, or your own internal proxy.
This post walks you through installing Pi and configuring it to use a custom LLM (your own LLM/proxy) through a models.