Pi
Open-source AI agent toolkit with an interactive coding agent CLI, unified multi-provider LLM API, and TUI libraries.
Open source alternative to:
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.
Categories:
Tags:
Build with:
Repository details
Updated 8/18/2026, 8:00:22 PM
View RepositoryRepository activity
Compare Pi with
Similar open source alternatives
Ollama
Get up and running with Llama 3.3, DeepSeek-R1, Phi-4, Gemma 3, Mistral Small 3.1 and other large language models.
Lobe Chat
Open-source AI chat and agent platform with multi-provider support, RAG, plugins, and an agent marketplace — self-hostable ChatGPT alternative.
Juggler
A self-hostable, GUI-first AI coding agent with editable conversation trees, plugin-based tools, and multi-client sessions.
Cursor
MiMoCode
An open-source terminal-native AI coding agent with cross-session memory, multiple agents, and support for any LLM provider.
Onyx
Onyx is an open-source AI chat and enterprise search platform with RAG that works with every LLM. Bring your own model, connect your tools, and unify all your team's knowledge.
Glean
Open WebUI
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
