A terminal based coding agent with multi provider LLM support and a TypeScript extension system.

Pi is an open-source web app and server that serves as a terminal-based coding agent designed to assist with software development through a command line interface. The software operates as a modular set of packages that manage LLM interactions, tool calling, and state management, allowing it to function as an interactive assistant within a developer's local environment.
Users deploy Pi as a CLI tool to interact directly with their codebase. It utilizes a unified API to connect with various large language model providers and includes a specialized terminal UI library that supports differential rendering for a more efficient display of information. This setup allows the agent to perform coding tasks while maintaining a minimal core architecture.
The architecture is split into several specialized packages to separate concerns. The core runtime handles the logic of agent state and tool execution, while the AI package abstracts the differences between various LLM providers. Because the agent runs with the permissions of the user who launches it, the project provides specific patterns for sandboxing the process. These include using plain Docker containers or OpenShell to restrict filesystem, process, and network access.
To ensure stability and security, the project implements strict supply-chain hardening. Direct external dependencies are pinned to exact versions, and the published CLI package includes a shrinkwrap file to pin transitive dependencies. This approach prevents accidental updates from breaking the agent's functionality during installation.
Pi is intended for developers who prefer a terminal-centric workflow and require a flexible agent that can be extended with custom TypeScript workflows.
A self-hosted control center for running autonomous coding agents to plan and ship changes across codebases.
A collaborative platform to build, schedule, and operate AI agents that handle long running automated tasks.
Join our newsletter to get shiny new open source software delivered to your inbox. Unsubscribe anytime.