Skip to main content
OpenSourceAlternatives

Pi

Open source · OSI-approvedStatus: unknownNewAcquired

Extensible terminal AI coding agent with model choice and tree-structured sessions

Reviewed lifecycle notice

This Project is marked acquired. These are reviewed catalogue facts and are separate from repository archive, license-change, move, and security observations.

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?

No. The terminal interface is text-driven, and real use needs installation, provider credentials, and configuration files, plus TypeScript for custom extensions. Developer work is required before and during any agent run.[1][2]

How much does Pi cost per month?

Pi itself costs nothing: it is free and open source under the MIT License, as confirmed against the license text in October 2026. You still pay your model providers' own subscriptions or API usage, plus any machine you run it on.[1][2]

Can you self-host Pi?

Yes. Pi runs locally from your terminal under the MIT License with no documented edition restriction, installing from the pi.dev script, npm, or Nix with Node.js 22.19 or newer. The documented local install, local session storage, and local credential handling together establish this.[1][2]

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. Pi LICENSE

    official · Observed October 12, 2026

    License text granting the MIT License, copyright Mario Zechner 2025.

  6. earendil-works/pi repository metadata

    official · Observed October 12, 2026

    Repository metadata: name pi under the earendil-works organization.

  7. 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.

  8. 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.

  9. 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.

Similar projects

Related projects with shared categories, technologies, or licensing.

Orca

OrcaAIOpen

Agent development environment running coding agents in parallel

Stars90.2K
Commitjust now
LicenseMIT

Orca is a free, open-source agent development environment that runs Claude Code, Codex, and other coding agents in parallel, each in its own git worktree.

OpenCode

OpenCodeAIOpen

AI coding agent for terminal, editor, and desktop

Stars202.9K
Commit8h ago
LicenseMIT

OpenCode is an MIT-licensed AI coding agent available through terminal, desktop, and IDE clients. It supports hosted providers and local models. Code handling depends on the selected provider; optional session sharing uploads conversation history to OpenCode's sharing service.

Kilo

KiloAIOpen

Open-source AI coding agent in the IDE, CLI, and cloud

Stars27.6K
Commitjust now
LicenseMIT

Kilo is an open-source AI coding agent that works inside VS Code, JetBrains IDEs, and Visual Studio, with a command-line build and a cloud runner on the way. It reads the existing codebase and carries out engineering tasks from natural-language instructions, proposing file edits, running commands, and verifying its own work.

Aider

AiderAIOpen

Terminal pair-programming assistant that edits codebases with LLMs

Stars49.3K
Commit3mo ago
LicenseApache-2.0

Aider is a terminal-based pair-programming tool that applies LLM-suggested edits directly to files in new or existing codebases.

Continue

ContinueAIOpen

Open-source AI coding assistant for VS Code and JetBrains

Stars36.1K
Commitjust now
LicenseApache-2.0

Continue is an open-source AI code assistant for VS Code, JetBrains, and the terminal.

T3 Code

T3 CodeOpen

Open-source control plane for coding agents

Stars27.2K
Commitjust now
LicenseMIT

T3 Code is an open-source control surface for coding agents that drives the Codex, Claude, Cursor, Grok Build, OpenCode, and Antigravity subscriptions on your machine from one desktop, web, and mobile app.