← Back to research
·9 min read·company

Pi

Pi is a minimal, extensible terminal coding agent created by Mario Zechner (libGDX creator), now stewarded by Earendil — 61K+ stars, the engine behind OpenClaw, emphasizing primitives over features.

Key takeaways

  • Pi powers OpenClaw (378K+ stars) — the minimal core that made the viral personal assistant possible
  • In April 2026 Mario Zechner joined Earendil, a venture-backed public benefit corporation co-founded by Armin Ronacher; pi moved to the earendil-works org and stays MIT
  • Only 4 tools (read, write, edit, bash) plus the shortest system prompt of any agent — everything else is extensible
  • Mid-session model switching across 15+ providers lets you use Claude for exploration, GPT for a second opinion, Gemini for large context
  • An ecosystem is forming around pi — Paseo drives it from mobile/desktop, plus official pi-chat, pi-review, and the Gondolin micro-VM sandbox

FAQ

What is Pi coding agent?

Pi is a minimal terminal coding agent with only 4 tools (read, write, edit, bash) that emphasizes extensibility over built-in features — the engine behind OpenClaw.

How is Pi different from Claude Code?

Pi has a smaller core (4 tools vs 20+), supports mid-session model switching across 15+ providers, and makes everything extensible via TypeScript hooks rather than baking features in.

Who created Pi?

Mario Zechner (@badlogic), creator of libGDX, the cross-platform game framework with 23K+ GitHub stars. Since April 2026 pi is owned and stewarded by Earendil, where Zechner is a shareholder in charge of pi decisions.

Is Pi still open source after the Earendil acquisition?

Yes — the core pi agent remains MIT licensed, per Earendil's RFC 0015. Earendil has said some future pi-related components may be Fair Source or proprietary, but the agent itself stays open.

What's the relationship between Pi and OpenClaw?

OpenClaw uses Pi as its core coding engine via Pi's SDK mode. Pi handles the LLM interaction; OpenClaw adds messaging integration and the personal assistant layer.

Executive Summary

Pi is a minimal terminal coding agent that powers OpenClaw, created by Mario Zechner (creator of libGDX). With only 4 core tools and the shortest system prompt of any major agent, Pi takes an aggressively extensible approach — features that other agents bake in can be built yourself via TypeScript extensions, skills, or pi packages. In April 2026, Zechner joined Earendil — a venture-backed public benefit corporation co-founded by Armin Ronacher — bringing pi with him; the repo moved from badlogic/pi-mono to earendil-works/pi, and the core remains MIT.

AttributeValue
CreatorMario Zechner (@badlogic)
Founded2024
OwnerEarendil (public benefit corporation, since April 2026)
FundingEarendil is venture-backed; pi itself is free OSS
GitHub Stars61.7K ★ (as of June 2026)
LicenseMIT

Product Overview

Pi is a terminal-native coding agent designed for developers who prefer primitives over features. The philosophy: if you want something Pi doesn't do, ask Pi to build it — or install an extension that does.

Unlike Claude Code or Cursor which bundle features, Pi ships with four tools (read, write, edit, bash) and expects you to extend it. This keeps the core minimal while enabling infinite customization. The approach works — OpenClaw (378K+ stars as of June 2026) uses Pi's SDK to power its entire assistant layer. An ecosystem has formed around it: Paseo wraps pi (alongside Claude Code and Codex) in a self-hosted control layer you can drive from desktop, web, and mobile, and Earendil ships official companions including pi-chat (Slack/chat automation), pi-review, pi-tutorial, and the Gondolin micro-VM sandbox.

Key Capabilities

CapabilityDescription
Minimal Core4 tools, shortest system prompt of any agent
Multi-ModelMid-session switching across 15+ providers
Tree SessionsBranch history, never lose work
ExtensionsTypeScript hooks for tools, commands, UI
SkillsAgent Skills standard, on-demand loading
SDK ModeEmbed in apps (how OpenClaw works)

Product Modes

ModeDescriptionUse Case
InteractiveFull TUI experienceDaily coding
Print/JSONpi -p "query" for scriptsAutomation
RPCJSON protocol over stdin/stdoutNon-Node integration
SDKEmbed in Node.js appsBuilding agents

Technical Architecture

Pi's architecture reflects its philosophy: small core, maximum extensibility.

Core Design

┌─────────────────────────────────────────────┐
│                   Pi Core                    │
├─────────────────────────────────────────────┤
│  4 Tools: read, write, edit, bash           │
│  Minimal system prompt (~200 lines)         │
│  Tree-structured JSONL sessions             │
│  Multi-provider LLM support                 │
└─────────────────────────────────────────────┘
           ↓           ↓           ↓
    ┌──────────┐ ┌──────────┐ ┌──────────┐
    │Extensions│ │  Skills  │ │ Prompts  │
    │(TypeScript)│(Markdown)│ │(Markdown)│
    └──────────┘ └──────────┘ └──────────┘

Key Technical Details

AspectDetail
LanguageTypeScript (Node.js)
Deploymentnpm global install or standalone binary
Providers15+ (Anthropic, OpenAI, Google, Azure, Bedrock, Mistral, Groq, xAI, OpenRouter, Ollama, etc.)
Session FormatJSONL tree (branches preserved)
Open SourceYes (MIT)

What's NOT in Pi (By Design)

Pi intentionally omits features that other agents include:

FeaturePi's Approach
MCPBuild CLI tools with READMEs, or use mcporter
Sub-agentsSpawn pi instances via tmux, or build via extensions
Permission popupsRun in a container, or build your own via extensions
Plan modeWrite plans to files, or build via extensions
Background bashUse tmux directly

Strengths

  • Extensibility by design — TypeScript extensions can add tools, commands, UI components, even run Doom
  • Multi-model freedom — Switch from Claude Opus to GPT-5 to Gemini mid-session; use the right model for each subtask
  • Tree-structured sessions — Every branch preserved; rewind 10 messages, try something else, never lose work
  • Clean codebase — Armin Ronacher calls it "written like excellent software" — no flicker, low memory, very reliable
  • Powers OpenClaw — Proven at scale; if Pi breaks, OpenClaw breaks (378K+ stars depend on it)
  • No longer a one-man project — Earendil stewardship adds Armin Ronacher and team behind the core, with rapid releases (v0.79.1 shipped June 9, 2026)

Cautions

  • Opinionated minimalism — If you want features out of the box, you'll need to build or install extensions
  • Extension security — Extensions run with full system access and pi has no built-in permission system; the project's own docs tell you to containerize or sandbox it (OpenShell, Gondolin, or Docker)
  • No MCP support — Deliberate omission, but requires workarounds for MCP-dependent workflows
  • Corporate stewardship is new — pi is now owned by Earendil; the core stays MIT, but RFC 0015 says future pi-related components may be Fair Source or proprietary, and trademark enforcement is the stated protection mechanism
  • Gated contributions — New issues and PRs from first-time contributors are auto-closed by default (maintainers review daily), which some find off-putting
  • Terminal-only — No GUI, no VS Code integration; designed for developers who live in the terminal (though Paseo adds a mobile/desktop layer)

What Developers Say

  • "Claude Code, Codex, OpenCode are great places to start, but they limit what you believe is possible." — Alexander Holbreich, June 2026
  • "Written like excellent software" — Armin Ronacher, on pi's codebase (written before he became its corporate steward)
  • "We want Pi to continue to exist as a high-quality, open, extensible piece of software." — Armin Ronacher, announcing the Earendil move
  • Not everyone cheered the acquisition. One Hacker News commenter on the April 2026 announcement: "This was terrible branding, and is terrible branding. The clash between 'Earendil' and 'Pi' is so overdetermined…" — skepticism centered on naming and what corporate ownership means for an indie tool, not on the software itself.

Pricing & Licensing

TierPriceIncludes
Open SourceFreeFull functionality
API CostsVariableDepends on provider (Anthropic, OpenAI, etc.)

Licensing: MIT — use commercially, modify freely, no restrictions. Earendil's RFC 0015 commits the core agent to MIT, while reserving the option to ship future pi-related components under Fair Source or proprietary licenses.

Hidden costs: You pay for LLM API calls directly to providers. With Claude Pro/Max or GPT Plus subscriptions, Pi can use OAuth to leverage your existing subscription.


Competitive Positioning

Direct Competitors

CompetitorDifferentiation
Claude CodePi has smaller core, multi-model support, tree sessions
AiderPi has full TUI, extensions system, SDK mode
CursorPi is terminal-native, model-agnostic, fully open source
ClinePi has extension system, SDK mode, multi-provider

When to Choose Pi

  • Choose Pi when: You want a minimal base to extend, need multi-model flexibility, or are building your own agent (SDK mode)
  • Choose Claude Code when: You want batteries-included with Anthropic's models
  • Choose Cursor when: You prefer GUI-based coding with AI
  • Choose Aider when: You want simpler git integration without extensions

Ideal Customer Profile

Best fit:

  • Developers who live in the terminal
  • Teams building agents on top of Pi's SDK
  • Power users who want to customize everything
  • Multi-model users who switch providers mid-task

Poor fit:

  • Non-technical users wanting plug-and-play
  • Those who need MCP integrations out of the box
  • Developers preferring GUI-based tools
  • Teams requiring enterprise support contracts

Viability Assessment

FactorAssessment
Financial HealthBacked by Earendil (venture-backed PBC) since April 2026
Market PositionFoundation layer (powers OpenClaw, runs inside Paseo)
Innovation PaceRapid (1,500+ commits since Feb 2026; v0.79.1 on June 9, 2026)
CommunityActive Discord, responsive maintainers
Long-term OutlookStrong — Earendil's products are built on top of pi

Pi's viability strengthened materially in 2026. Stars grew from ~14K in February to 61.7K in June, OpenClaw (378K+ stars) still depends on it, and the move to Earendil replaced the single-maintainer risk with a funded team — Zechner remains in charge of pi decisions as an Earendil shareholder, alongside Armin Ronacher. The new risk is governance: corporate ownership means licensing of future adjacent components is at Earendil's discretion, though the MIT core could always be forked.


Bottom Line

Pi represents a philosophy: coding agents should provide primitives, not opinions. With only 4 tools and the shortest system prompt in the space, it's the anti-bloat alternative to feature-heavy competitors.

Recommended for: Developers building agents, terminal power users, and anyone who wants multi-model flexibility with a minimal footprint.

Not recommended for: Non-technical users, teams requiring enterprise support, or those wanting features without extension work.

Outlook: Pi's position as OpenClaw's engine guarantees relevance, and Earendil's backing turned a one-man project into a funded platform — with the usual caveat that corporate stewardship of a beloved indie tool cuts both ways. The extensible approach is proven — if you can run Doom in your coding agent, you can build whatever workflow you need.


Research by Ry Walker Research • methodology