Skip to content

pi

Terminal coding agent you extend with packages, skills and prompt templates

Permissive (OSI) · MIT AI-native
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

80

Health

Thriving

Overview

Stars

123,644

Last commit

today

Nov 2026

Repository age

1 year

since Aug 2025

Latest version

v1.6.0

Nov 2026

Contributors

–

11 active in 90 days

Releases

25

last 12 months

Language

TypeScript

Pi is a coding agent that runs in your terminal. You start it inside a project directory, connect a model provider with /login using a subscription or an API key, and give it tasks. It is written in TypeScript, licensed MIT, and runs on Linux, macOS and Windows. It needs Node.js 22.19 or newer.

The design is deliberately small. Pi leaves out features such as sub-agents and plan mode, and you add what you want through extensions, skills, prompt templates and themes. You can bundle these as Pi packages and share them through npm or git. Beyond interactive use, you can run it in print or JSON mode, control it over RPC, or embed it with the TypeScript SDK.

The repository is a monorepo. It also contains a multi-provider LLM API library, an agent runtime and a terminal UI library. You can install it with a shell script, npm, Homebrew or Nix. It is not a hosted service, and it has no specific proprietary product it maps to, but it fills the same role as other terminal-based AI coding assistants.

Who it's for

Developers who want to shape their own coding agent

Extensions, skills and prompt templates let you add only the behavior you want.

Skip if: You want sub-agents and plan mode built in from the start.

Teams building tools on top of an agent

Print and JSON modes, RPC control and a TypeScript SDK allow embedding it in other software.

Skip if: You only need an editor plugin and no programmatic control.

Nix users who want reproducible builds

A Nix flake builds Pi from source on ARM64 and x86-64 for Linux and macOS.

Skip if: You do not use Nix and prefer a graphical interface.

The problem it solves

Many AI coding assistants come with a fixed set of behaviors and tie you to one workflow. Pi gives you a minimal agent that you extend or script yourself, and it works with several model providers.

Strengths

  • MIT license with an active release cadence: 25 releases in the last year
  • Extensions, skills, prompt templates and themes ship as packages through npm or git
  • Runs interactively, in print or JSON mode, over RPC, or through a TypeScript SDK
  • Installs through a shell script, npm, Homebrew or Nix on Linux and macOS
  • Multi-provider LLM library covers OpenAI, Anthropic and Google

Trade-offs

  • Sub-agents and plan mode are not included; you build or install them
  • Requires Node.js 22.19 or newer
  • Terminal only, with no graphical app
  • New contributors' issues and pull requests are auto-closed by default

pi replaces

Self-host pi

Self-hostable
No (desktop or local app)

Quick start

curl -fsSL https://pi.dev/install.sh | sh

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Pi free and open source?

Yes. It is released under the MIT license. You still pay your model provider if you use an API key or subscription.

Which platforms does it run on?

Linux, macOS and Windows, from the command line. Installers exist for all three, and Nix supports ARM64 and x86-64 on Linux and macOS.

Can I self-host Pi?

Pi is a local command-line tool and not a server application. You run it on your own machine and connect it to the model provider of your choice.

How do I extend it?

Use extensions, skills, prompt templates and themes. You can bundle them as Pi packages and share them via npm or git.

Other Claude Code alternatives

Compare all 8 Claude Code alternatives →

Similar tools in AI coding assistants

Goose

AI coding assistants

Open source AI agent with desktop app and CLI that works with 85+ model providers

57k 6.7k today Thriving Apache-2.0

Replaces Claude CoworkClaude Code

Aider

AI coding assistants

Terminal AI pair programmer that commits its edits to git, for use with any LLM

50k 5.2k 6 months ago Dormant Apache-2.0

Replaces Claude Code

T3 Code

AI coding assistants

Desktop, web and phone interface for running Claude Code, Codex and other coding agents

76k 13k today Active MIT

Qwen Code

AI coding assistants

Terminal AI coding agent with MCP, subagents and any OpenAI-compatible model

31k 3.6k today Thriving Apache-2.0

open-code-review

AI coding assistants

Command-line AI code reviewer that checks Git diffs with your own LLM endpoint

56k 4.6k today Thriving Apache-2.0