Pi is a minimal, extensible agent harness with a unified multi-provider LLM stack, terminal UI, and interactive coding agent CLI. Customize it with extensions, skills, packages, and automate via print, JSON, or RPC modes.
Overview
Pi is a minimal, extensible agent harness that ships with defaults for working with large language models but lets you adapt behavior through extensions, skills, prompt templates, themes, and shareable Pi packages via npm or git. The monorepo includes libraries for a unified multi-provider LLM API, agent runtime with tool calling, durable conversation state, terminal UI rendering, and an interactive coding agent CLI.
Users install the command-line interface on macOS, Linux, or Windows, start Pi in a working directory, and connect a built-in AI provider with a subscription or API key. Pi can be used interactively, run in print or JSON mode for automation, controlled over RPC, or embedded in applications with the TypeScript SDK.
The project documents containerization patterns when stronger isolation is needed, because Pi runs with the permissions of the user who launched it and does not ship a built-in permission sandbox. Nix builds are supported on Linux and macOS for ARM64 and x86-64. Separate packages cover telemetry contracts and optional chat automation workflows.
Pi is positioned as a toolkit you extend rather than a fixed product with every workflow built in; contributors can add features or install community packages that implement patterns such as sub-agents or plan mode.
Key features
- Interactive coding agent CLI
- Unified multi-provider LLM API
- Extensions, skills, and Pi packages
- Terminal UI with differential rendering
- Print, JSON, and RPC automation modes
- TypeScript SDK for custom apps
- Agent runtime with tool calling
- Durable conversation and task state
Use cases
- Interactive AI-assisted coding in the terminal
- Automating agent tasks in scripts or CI
- Building custom apps on the Pi SDK
- Sharing customized agent setups as packages
- Sandboxed agent runs via Docker or VMs