
Pi
Agent toolkit and coding agent CLIOpen source
About Pi
Pi is a coding agent CLI and an agent toolkit you can embed in your own apps. Its core is deliberately small: sub-agents, plan mode and permission prompts are not built in, and anything you need you ask Pi to write as an extension, or install from someone else's package. It suits developers who like to assemble their own tools.

What problem it solves
Most coding agents are finished products: the vendor decides the features and you adapt. Pi takes the other road. Missing a command, tool, model provider or UI detail? Ask Pi to write it, run /reload and carry on, then package it for others if it is useful.
The website keeps a list of what the team chose not to build. No sub-agents: run several Pi instances in tmux, or write an extension. No permission popups: use a container, or build your own confirmation flow. No plan mode: write the plan to a file. MCP used to be on that list too and is now built in. The system prompt is short, so you can see exactly what goes into context.
Pi is a minimal agent harness. Adapt Pi to your workflows, not the other way around.
Core capabilities
- Many models: more than 15 providers, including Anthropic, OpenAI, Google, Mistral, OpenRouter and Ollama, with API keys or OAuth, and you can switch models mid-session.
- Branching sessions: a session is stored as a tree in one file, so you can go back to any step and branch from there, or export it to HTML and share it.
- Four ways to run: an interactive terminal UI, print/JSON output for scripts, an RPC protocol over stdin/stdout, and a TypeScript SDK.
- Extensions and packages: extensions are TypeScript modules that can change tools, commands, shortcuts and the whole terminal UI; extensions, skills, prompts and themes install from npm or git.
Who uses it
As of 2026-11-12 the GitHub repository has about 121,622 stars and 15,678 forks, and the latest release is v1.5.2, published 2026-11-10. Version 1.0 shipped on 2026-10-01, and releases have kept coming quickly since.
Both the website and the README point to OpenClaw as a real integration built on the Pi SDK, and tools such as magpie list Pi as an agent they support. The project is maintained by Earendil Inc. and community contributors.
How it compares
Next to coding agents that bundle everything, Pi's trade-off is clear: a small core, a short system prompt, transparent behaviour and quick changes, at the cost of installing or writing the common features yourself. We have not seen an independent comparison of its success rate, speed or cost against other coding agents, so this trade-off rests on the project's own description.
Who it is for, and not for
It suits developers who like to shape their tools and are happy to write or install TypeScript extensions, and teams that want to embed a coding agent in scripts, CI or their own apps, since print/JSON output, RPC and the SDK are ready to use.
If you want sub-agents, plan mode and permission prompts out of the box, or you need strict limits on what the agent can touch but are not comfortable with containers, Pi is not for you yet.
Getting started
On macOS and Linux install with the official install.sh; on Windows use the PowerShell script. The installer is the recommended route: it pins every dependency, and pi update upgrades it later. Pi needs Node.js 22.19 or newer, which the installer can add for you.
Then run pi in your project directory, use /login to connect a subscription or API key, and give it a task.
Pricing & license
Pi itself is free and MIT licensed. Your costs come from the model providers or plans you connect.
Risks & limits
Pi does not run in a sandbox by default: it can reach every file, process, network and credential that the user who launched it can reach. For stronger isolation the project points to a micro-VM, a Docker container or a policy sandbox. This is the main condition to accept before using it, especially on real repositories or production systems.
The core is also deliberately thin. Sub-agents, plan mode and permission prompts are not built in, so you install an extension or write one. For people who like to customise, that is the point; for people who want things to work out of the box, it is extra work, and you have to judge the quality of third-party packages yourself.
The project is now run by Earendil, a venture-backed public benefit corporation, and the core code is still MIT. Earendil has said that Fair Source licensing and proprietary add-ons will follow. That does not change the terms for using it today, but if you plan to treat Pi as long-term infrastructure, factor in that the licensing may change.
Our verdict
Pi takes the idea that a coding agent should be yours to change further than anyone else: the core is lean, switching models, branching sessions and growing features through extensions are all well designed, and other tools really do embed it. Its community and release pace show this is not a weekend project.
It is for developers who already assemble their own tools and are willing to run the agent inside a container. If you want permission prompts, plan mode and sub-agents out of the box, today's Pi is not that product, and there is no need to change how you work for it.
Sources
Official
- Pi website · Accessed Nov 12, 2026
- Pi README · Accessed Nov 12, 2026
- earendil-works/pi on GitHub · Accessed Nov 12, 2026
- Pi releases · Accessed Nov 12, 2026
- Pi LICENSE (MIT) · Accessed Nov 12, 2026
Media & third party
- Earendil: Announcing Pi & Lefos · Accessed Nov 12, 2026
- Earendil RFC 0015: Pi Licensing · Accessed Nov 12, 2026