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:
Looking for contributors
This project is actively seeking help, join the community!
Repository details
Updated 6/12/2026, 4:00:52 PM
View RepositoryCompare 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
🤯 Lobe Chat - an open-source, modern design AI chat framework. Supports multiple AI providers (OpenAI / Claude 4 / Gemini / DeepSeek / Ollama / Qwen), Knowledge Base (file upload / RAG ), one click install MCP Marketplace and Artifacts / Thinking. One-click FREE deployment of your private AI Agent application.
MiMoCode
An open-source terminal-native AI coding agent with cross-session memory, multiple agents, and support for any LLM provider.
Onyx
Open-source AI chat and enterprise search platform with RAG that works with every LLM.
Glean
Open WebUI
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
OpenCode
OpenCode is an open source agent that helps you write code in your terminal, IDE, or desktop.
