
Pi
Open-source, extensible coding agent framework with 15+ model provider support.
About Pi
Pi is an open-source framework for building AI coding agents rather than a fixed product with a set feature list. It ships as a minimal foundation that developers extend with TypeScript extensions, skills, prompt templates, and themes, which can be packaged and shared through npm or git. It connects to more than 15 model providers, including Anthropic, OpenAI, Google, Bedrock, Mistral, and Groq, so teams are not locked to a single model vendor. The framework is aimed at developers and teams who want granular control over how their coding agent behaves, rather than accepting the constraints of a pre-built assistant. It supports several ways of running: an interactive terminal UI, a print/JSON output mode, an RPC protocol, and an SDK for programmatic use, so it can be driven by a human, scripted, or embedded in another system. Session history is tree-structured and shareable, supporting branching conversations, and Pi includes context engineering features like customizable system prompts, auto-compaction, and real-time steering so users can redirect an agent mid-run. Because Pi is a framework rather than a turnkey assistant, getting value from it requires setup and, for non-trivial workflows, writing or installing extensions, unlike agents that work out of the box.
At a glance
- Company
- Earendil Inc.
- Platforms
- API
- API
- Available
- Last verified
- August 2026
Who It's For
- •AI developers and researchers
- •Tech-savvy programmers familiar with command-line tools
- •Teams working on AI agent orchestration
- •Open-source AI community members
- •Developers needing customizable and extensible AI workflows
How It Works
- 1Pi operates as a command-line interface that can be extended with plugins and skills.
- 2It supports multiple AI providers and models, switchable mid-session via commands or shortcuts.
- 3Users can build, customize, and share packages of extensions, tools, prompts, and themes.
- 4It uses a tree-structured session history for context management and retrieval.
How to Use Pi
- 1Install Pi via package managers like npm or git.
- 2Run Pi in terminal and load or develop extensions, skills, and prompts.
- 3Switch models and providers using commands or shortcuts.
- 4Utilize different modes like interactive, JSON output, RPC, or SDK for integration.
- 5Create, manage, and share packages with others.
Key Features
- •Extensible via TypeScript extensions, skills, prompt templates, themes
- •15+ model provider support
- •Interactive TUI, JSON, RPC, and SDK modes
- •Tree-structured shareable sessions
- •Context engineering (custom system prompts, auto-compaction)
- •Real-time steering of running agents
Use Cases
- •Building a custom coding agent for a team's workflow
- •Embedding an agent into another application via SDK
- •Scripting agent runs via JSON/RPC output
- •Sharing agent extensions via npm or git packages
Pros & Cons
Advantages
- •Highly customizable and extensible architecture
- •Supports a wide range of AI models and providers
- •Terminal-based, lightweight, and flexible
- •Shareable packages for community collaboration
Disadvantages
- •Requires command-line proficiency
- •May have a learning curve due to its extensibility
- •Focused on advanced users, less user-friendly for non-technical users
Alternatives
- Aider
- OpenCode
- Claude Code
Reviews for Pi
Based on 0 reviews
Rating Distribution
No Reviews Yet
Be the first to share your experience with Pi!
Frequently Asked Questions
What is Pi?
Pi is an open-source framework for building AI coding agents rather than a fixed product with a set feature list. It ships as a minimal foundation that developers extend with TypeScript extensions, skills, prompt templates, and themes, which can be packaged and shared through npm or git.
How much does Pi cost?
Pi uses custom pricing — contact the vendor for a quote.
Is Pi free?
Pi is a paid tool and does not offer a free plan.
What are the best Pi alternatives?
Popular Pi alternatives include Aider, OpenCode, Claude Code.
What is Pi used for?
Pi is commonly used for Building a custom coding agent for a team's workflow, Embedding an agent into another application via SDK, Scripting agent runs via JSON/RPC output.
Does Pi have an API?
Yes, Pi offers an API for developers.
What platforms does Pi support?
Pi is available on API.
Information Accuracy
Please note: While we regularly update all tool information including descriptions, features, pricing, and other details, this information may change over time as tools evolve and update their offerings. For the most current and accurate information, we recommend visiting the official website directly. Our goal is to provide you with comprehensive and up-to-date information to help you make informed decisions.