Pi is an open-source AI agent toolkit with 116,000+ stars on GitHub that bundles a unified LLM API, an agent loop, a terminal UI and a ready-to-use coding agent CLI.
Building an agent usually means stitching together a model client, a tool-calling loop, streaming handling and some kind of interface before you can test a single idea. Pi ships those pieces as one coherent toolkit. Its unified API smooths over the differences between LLM providers, so the same agent code can talk to different models without rewrites. On top of that sits a production-shaped agent loop that handles tool execution, message flow and state, a terminal user interface for interactive sessions, and a coding agent CLI you can use directly for software tasks. The project is MIT licensed and under very active development, with repository updates landing in October 2026. For developers who build agents rather than just use them, Pi is a batteries-included starting point that stays hackable all the way down.
Pi is completely free and open source under the MIT license. Your only cost is the LLM API usage of whichever provider you connect.
Developers building custom AI agents and coding tools who want a unified model API and a solid agent loop without adopting a heavyweight framework.