Pi is an extensible terminal AI coding agent with a deliberately small core. It helps developers inspect files, run commands, and work through multi-step tasks from a terminal, using their own model subscriptions, API keys, or local models. It serves people who want a coding agent they can reshape, through a TypeScript extension system, instead of accepting a fixed workflow.[1][2][3]
Quick verdict
Developers who live in the terminal and want to shape their own agent workflow gain the most from Pi. Its concrete advantage is a minimal core plus a TypeScript extension system for tools, commands, shortcuts, and interfaces, combined with free choice of model provider. The material constraint is that Pi assumes developer comfort: installation, model credentials, and configuration are all on you, and there is no managed edition. If you want an open-source terminal agent you can extend and run on your own models, choose Pi; if you want a desktop app or IDE-first experience with less setup, choose OpenCode instead.[1][2][3]
Key features
Minimal terminal agent loop Give Pi a goal and a working folder and it inspects files, runs commands, and edits content through multi-step software, research, writing, or data tasks.[1]
Bring-your-own-model setup Connect a supported subscription or provider API key through /login, point Pi at a local GGUF model through the llama.cpp router, or add OpenAI, Anthropic, or Google-compatible endpoints to a configuration file.[1]
Tree-structured session history Returning to an earlier point never erases the branch you leave: move within a session with /tree, spin alternatives off with /fork, or copy the active branch with /clone.[1]
TypeScript extension system Add tools, commands, keyboard shortcuts, events, custom editors, status bars, and overlays, then bundle them as packages shared through npm or git instead of forking the agent.[1]
Scripted and embedded modes Drive one-off tasks through print mode, consume structured output through a JSON event stream, control a separate process through RPC mode, or run Pi inside an application with the TypeScript SDK.[1]
Three install paths Use the pi.dev shell or PowerShell installer, install the npm package globally, or add the Nix flake; the runtime needs Node.js 22.19 or newer and updates with a single command.[1]
Context and cost controls Automatic compaction keeps older history summarized as context fills, /export and /share produce HTML, JSONL, or viewer links, and /session reports message counts, token usage, and cost.[1]
MIT-licensed open core The repository grants the MIT License with copyright to Mario Zechner from 2025, and the project is free software with model costs paid to the user's own providers.[1][2]
Who will love it
Terminal-first developers who customize tooling fit the small core plus extensions, which match people who would rather build their own plan modes and shortcuts than adopt a fixed workflow.[1][2]
Teams standardizing on their own models fit the subscription sign-in, stored API keys, environment-variable credentials, and local-model routers documented for provider setup.[1]
Automation builders fit the print, JSON event stream, RPC, and SDK surfaces that let scripts and applications embed agent runs without an interactive session.[1]
Who should avoid it
Non-technical users should avoid it: installation, model credentials, configuration files, and TypeScript-based extensions all assume developer comfort, and no guided non-technical setup is documented.[1][2]
Buyers needing stated enterprise assurances should avoid it: no SSO statement, support SLA, or vendor data-location documentation was found on the observed official pages.[1]
Teams wanting a managed edition should avoid it: no hosted Pi edition is documented, and session sharing through exports or uploaded artifacts is sharing, not managed hosting.[1][2]
Alternatives and compatibility
OpenCode competes with Pi as an editorial inference, not a vendor endorsement: both are open-source terminal AI coding agents where the user connects their own models, so a developer choosing an extensible terminal agent would evaluate either.[1][2][3]
Earendil now stewards Pi: October 2026 press reports state Earendil acquired Pi in spring 2026 with creator Mario Zechner remaining involved, and the canonical repository lives under the earendil-works organization.[1][2]
The underlying providers work standalone: Pi requires user-supplied subscriptions, keys, or local models, so staying with direct provider access remains valid where an agent harness is unnecessary.[1]
Questions worth asking
What is the best Pi alternative for non-technical users?
Neither Pi nor its closest open-source peers target non-technical users, since all assume model credentials and developer setup. If someone technical handles setup, OpenCode is the conditional pick for day-to-day use because it also ships a desktop app and IDE extension alongside the terminal.[1][2]
Is Pi really no-code?
How much does Pi cost per month?
Can you self-host Pi?
Sources and editorial review
Source research. Reviewed on October 12, 2026. Written by Sanjib Sah. AI assisted; reviewed by a human editor.
We have not run or tested this product.
- Pi documentation index
official · Observed October 12, 2026
Official docs index: terminal agent use, model choice, sessions, configuration, SDK/RPC/JSON automation modes, CLI reference, platform help, and Security page.
- Pi model docs
official · Observed October 12, 2026
Model docs: /login for subscriptions, stored credentials, or environment-variable keys; /model picker; local models via llama.cpp or compatible endpoints; offline-cached catalog data.
- Pi sessions docs
official · Observed October 12, 2026
Sessions docs: tree storage with /tree, /fork, /clone; automatic and manual compaction; local session storage; /export and /share; /session cost reporting.
- earendil-works/pi repository
official · Observed October 12, 2026
Repository page: AI agent toolkit description, star/fork counts, npm package, pi.dev/Nix/npm install paths, Node.js 22.19+ requirement, TypeScript extension and package system.
- Pi LICENSE
official · Observed October 12, 2026
License text granting the MIT License, copyright Mario Zechner 2025.
- earendil-works/pi repository metadata
official · Observed October 12, 2026
Repository metadata: name pi under the earendil-works organization.
- OpenCode official homepage
official · Observed October 12, 2026
Competitor evidence: open-source AI coding agent for terminal, IDE, and desktop with 75+ providers, local models, and account login options.
- Pi 1.0 community report
community · Observed October 12, 2026
Third-party report on Pi 1.0, the Earendil takeover, Codemode MCP support, and the durable-agent sibling release.
- The Register report on Pi 1.0
published measurement · Observed October 12, 2026
Press report dated October 2, 2026 on the 1.0 milestone, MCP support, and the Earendil acquisition.
Compared with these products
No explicit proprietary baseline is recorded.