Skip to main content
P

Pi Coding Agent

Minimal, extensible terminal coding agent you can shape to your workflow

Pi Coding Agent homepage
Default cover

Introduction

Pi is a minimal coding agent for the terminal that adapts to existing developer workflows. It works as an extensible framework, so you can add commands, tools, providers, or UI tweaks through TypeScript packages from npm or git. It runs as an interactive TUI, in print mode for scripts, in RPC mode, or through an SDK.

Added on
Nov 2, 2026
Website
pi.dev
Pricing model
Free

Product information

What is Pi Coding Agent?

Pi is a terminal-based coding harness that leaves out built-in sub-agents, plan modes, and permission prompts, so developers can add those their own way.

How to use Pi Coding Agent?

Install it with npm, pnpm, bun, or curl, then start the interactive TUI, run pi -p for scripting, and switch models with /model or Ctrl+L.

Core features of Pi Coding Agent

  • Minimal terminal harness that adapts to your workflow
  • Extensible through TypeScript modules, skills, and templates
  • 15+ AI providers and hundreds of models
  • Tree-structured sessions you can branch, export, and share
  • Context handling with auto-summarization and project instructions
  • Interactive, print/JSON, RPC, and SDK modes

Use cases of Pi Coding Agent

  1. 1Generating shell scripts in print mode
  2. 2Building custom workflows with hot-reloaded extensions
  3. 3Branching from earlier points in a session history
  4. 4Loading project instructions and prompt templates on demand

Frequently asked questions about Pi Coding Agent

Why does Pi Coding Agent skip sub-agents and plan mode?+

Pi is built as a set of primitives rather than a locked-down product, so it leaves those features to extensions or tools such as tmux.

How can I share Pi Coding Agent sessions?+

Sessions are stored as trees. You can browse them with /tree, export to HTML with /export, or publish to a GitHub gist with /share.

Which model providers does Pi Coding Agent support?+

Over 15 providers, including Anthropic, OpenAI, Google, Azure, Bedrock, Mistral, Groq, and Ollama, with mid-session switching.

Which category is Pi Coding Agent in?+

Pi Coding Agent is listed under AI Agents, AI Code Editor, AI Code Assistant.

Tags

ai agentai code assistantai developer toolsai code generator

Pi Coding Agent alternatives

V

Free, open-source code editor with built-in AI agents

G

Google's workspace for prototyping with Gemini models and API keys

J

Build AI customer-service agents that work across phone, web and chat

Z

Fully managed vector database built on Milvus, for search, RAG and AI applications at scale.

Z

Cloud platform for deploying code, frontends, backends and databases with pay-as-you-go pricing.

Z

Free AI chat assistant for making slides, writing text, coding and doing research.