Skip to content

Pi Coding AgentOpen-Source Agentic Coding CLI

A minimal, extensible terminal coding harness by Mario Zechner. MIT licensed. 15.7k GitHub stars.

What is Pi?

Pi is an open-source AI coding agent CLI (MIT licensed) created by Mario Zechner. Rather than being a monolithic tool, Pi is designed as a minimal terminal coding harness that adapts through extensibility.

The project is structured as a monorepo with focused packages:

Quick Start

bash
# Install globally
npm install -g @mariozechner/pi-coding-agent

# Set your API key
export ANTHROPIC_API_KEY=sk-ant-...

# Launch
pi

That is it. Pi drops you into an interactive coding session. Type your request, and the agent works with full file system and bash access.

Why Pi?

What Pi DoesWhat Pi Does NOT Do
Provides multi-provider LLM accessDictate a single workflow
TypeScript extension APILock you into MCP protocol
Session branching and historyForce permission popups
Skills, prompts, themesInclude bloated built-in features
npm/git package ecosystemRequire a specific editor or IDE

Pi's philosophy: the core stays minimal; any workflow is possible through extensibility.

Pi Coding Agent SOP Documentation