Welcome to Pi
Pi is a minimal terminal coding harness that puts you in control. Unlike other coding agents, Pi doesn’t force you into a specific workflow. Instead, you adapt Pi to match how you work — without forking or modifying Pi internals.What Makes Pi Different
Pi ships with powerful defaults but intentionally skips features like sub-agents and plan mode. Instead, you can:- Ask Pi to build exactly what you need
- Install third-party Pi packages that match your workflow
- Create custom extensions, skills, and prompt templates
- Share your customizations via npm or git
Quick Start
Get Pi running in minutes with a simple npm install
Installation
Detailed setup for all platforms and API providers
Interactive Mode
Learn the powerful terminal interface
Customization
Extend Pi with custom tools and workflows
Key Features
Four Flexible Modes
Four Flexible Modes
- Interactive: Full terminal UI with session management
- Print/JSON: One-shot responses for scripting
- RPC: Process integration over stdin/stdout
- SDK: Embed Pi in your own applications
Extensibility First
Extensibility First
- Extensions: TypeScript modules for custom tools, commands, and UI
- Skills: On-demand capabilities following Agent Skills standard
- Prompt Templates: Reusable prompts with variable substitution
- Themes: Customizable colors and styles with hot-reload
- Pi Packages: Bundle and share via npm or git
Multi-Provider Support
Multi-Provider Support
Pi supports 20+ LLM providers through unified APIs:Subscriptions (OAuth):
- Anthropic Claude Pro/Max
- OpenAI ChatGPT Plus/Pro (Codex)
- GitHub Copilot
- Google Gemini CLI
- Google Antigravity
- Anthropic, OpenAI, Azure OpenAI
- Google Gemini, Vertex AI, Amazon Bedrock
- Mistral, Groq, Cerebras, xAI
- OpenRouter, Vercel AI Gateway, and more
- Any OpenAI-compatible API (Ollama, vLLM, LM Studio)
Session Management
Session Management
- Sessions stored as JSONL with tree structure
- In-place branching without creating new files
/treecommand to navigate and switch branches- Manual and automatic context compaction
- Export to HTML or share as GitHub gist
Built-in Tools
Built-in Tools
Pi gives models access to your codebase through tools:
read- Read files with offset/limit supportwrite- Create new filesedit- Make precise edits to existing filesbash- Execute shell commandsgrep,find,ls- Optional file search tools
Philosophy
Pi is aggressively extensible so it doesn’t have to dictate your workflow. Features that other tools bake in can be built with extensions, skills, or installed from third-party Pi packages.
Packages Overview
Pi is built as a monorepo with multiple packages:| Package | Description |
|---|---|
| @mariozechner/pi-coding-agent | Interactive coding agent CLI |
| @mariozechner/pi-ai | Unified multi-provider LLM API |
| @mariozechner/pi-agent-core | Agent runtime with tool calling |
| @mariozechner/pi-tui | Terminal UI library |
| @mariozechner/pi-web-ui | Web components for AI chat |
| @mariozechner/pi-mom | Slack bot integration |
| @mariozechner/pi-pods | CLI for managing vLLM deployments |
Next Steps
Get Started
Install Pi and run your first session
Providers & Models
Set up your LLM provider authentication
Architecture
Understand how Pi works under the hood
Examples
Browse extension and SDK examples