
Pi is a minimal, highly extensible terminal coding agent supporting 15+ LLM providers and hundreds of models. Unlike opinionated tools, pi deliberately omits sub-agents, plan mode, and MCP — instead providing TypeScript extension primitives so you build exactly the workflow you need. Sessions are stored as trees for branching/navigation.
The most composable terminal agent available — if you want custom workflows instead of adapting to an opinionated tool, pi gives you primitives to build exactly what you need.
Key points
- 1
15+ providers: Anthropic, OpenAI, Google, Azure, Bedrock, Mistral, Groq, Ollama, and more — switch models mid-session
- 2
Tree-structured session history — branch from any previous point and continue from there
- 3
Deliberately omits sub-agents, plan mode, MCP, todos — build them as TypeScript extensions or install packages
- 4
Package system via npm/git: bundle extensions, skills, prompts, themes and share them
- 5
4 integration modes: Interactive TUI, Print/JSON for scripts, RPC for non-Node integrations, SDK for embedding