Pi is an open-source terminal coding agent and agent harness created by Mario Zechner (badlogic, creator of libGDX) and published under MIT by Earendil. Its philosophy is radical minimalism: by default the model gets a small set of tools — read, write, edit, bash — and everything else, from subagents to plan mode, lives in TypeScript extensions. That keeps the loop fast, the context clean, and the behavior fully under your control. It supports 30+ model providers with mid-session switching, session branching and compaction for long tasks, and custom OpenAI-compatible providers via a simple models.json.
Bars show editorial scores from hands-on testing. Percentages showPi's live community win rate in head-to-head votes.
Runs on: Terminal (macOS, Linux, Windows) · RPC / SDK embedding|Best for: Developers who want a fast, minimal, hackable terminal agent with full control over context and models
Pi takes a custom OpenAI-compatible base URL. Point it at Standard Compute and get unlimited LLM compute at one flat monthly price — no rate limits, no per-token billing.
Yes — Pi is MIT-licensed and free. You bring your own model access: an API key from any of its 30+ supported providers, or a flat-price unlimited plan via Standard Compute configured as a custom OpenAI-compatible provider in models.json.
Pi is best for developers who want a fast, transparent terminal agent they fully control. Its radical minimalism — four core tools and TypeScript extensions for everything else — keeps the agent loop quick and the context clean, and makes custom behavior a small script away.
OpenCode ships more out of the box — LSP integration and a polished TUI — while Pi is leaner, faster, and more hackable via extensions. Developers who want batteries included pick OpenCode; those who want a minimal harness they can shape pick Pi. Both are free and OpenAI-compatible, so trying both costs nothing.
Oh My Pi (omp) is a coding-first fork of Pi by Can Bölük that trades Pi's minimalism for an IDE-grade tool surface: hash-anchored edits, LSP, debugger control, subagents, and a Rust core. Same lineage, opposite philosophy — pick Pi for control and speed, omp for built-in power tools.