Pi
Open-source AI agent toolkit with an interactive coding agent CLI, unified multi-provider LLM API, and TUI libraries.
Pi is an open-source AI agent toolkit built by Earendil Works. It includes an interactive coding agent CLI that helps you write, refactor, and debug code in real time—similar to Claude Code and OpenAI Codex. The project also provides a unified multi-provider LLM API supporting OpenAI, Anthropic, Google, and others, plus a terminal UI library with differential rendering for building rich CLI experiences.
The monorepo is organized into focused packages: the coding agent CLI, an agent runtime with tool calling and state management, the unified LLM API layer, and a TUI library. Pi is designed to be self-extensible and treats security seriously, with supply-chain hardening measures like pinned dependencies, shrinkwrap generation, and npm audit integration.