aicoolies logo
pi dev code
pi dev code

Pi

Minimal terminal coding harness

open sourceupdated Aug 16, 2026

Pi Coding Agent is an MIT-licensed Node.js CLI from earendil-works for building and running coding agents in a local terminal. The current package describes a read/bash/edit/write toolset and session management, while the repo positions Pi as a unified LLM API, agent loop, TUI, and coding-agent CLI. It is best framed as a lean, self-extensible BYO-model toolkit rather than a managed IDE.

Read our Pi review

A detailed review by the aicoolies team — click to read

Pi Coding Agent is an MIT-licensed terminal coding-agent toolkit now canonical at github.com/earendil-works/pi. GitHub redirects the older badlogic/pi-mono path to the earendil-works/pi repository, which currently shows 66K+ stars, active pushes, and release v0.80.2. The npm package @earendil-works/pi-coding-agent is also at 0.80.2 and describes a coding-agent CLI with read, bash, edit, write tools and session management.

The safest product framing is not a polished managed IDE or enterprise admin layer. Pi is a local Node.js CLI and agent toolkit for developers who want an inspectable loop, terminal UI, and bring-your-own-model workflow they can reason about and extend. The repository description positions it as a unified LLM API, agent loop, TUI, and coding-agent CLI, while pi.dev and package metadata reinforce the terminal-agent orientation rather than a hosted SaaS promise.

That makes Pi most relevant for experienced developers and teams comparing lightweight coding-agent harnesses with larger tools such as Claude Code, OpenCode, or Cursor. Use it when local control, source visibility, and extensibility matter more than turnkey governance dashboards. Avoid brittle copy about exact prompt size, unsupported provider lists, or old repository paths; keep the page anchored to the canonical repo URL, MIT license, current npm/release version, and the read/bash/edit/write plus session-management toolset that public package metadata supports.

Pricing

Free (bring your own API key)

Platforms

CLI (Node.js)

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

Grok logo

Grok Build

Top Pick

xAI's terminal coding agent with parallel subagents and worktree-aware automation

Grok Build is xAI's terminal-first coding agent for planning, editing, testing, and reviewing code from a local CLI. The early beta exposes subagent controls, worktree mode, headless JSON output, best-of-N parallel attempts, sandbox profiles, and experimental memory. It fits developers comparing Claude Code, Codex, and Gemini CLI for local agentic workflows with deeper parallel execution.

paid
Ghostty logo

Ghostty

Top Pick

Fast, native terminal emulator

GPU-accelerated terminal emulator written in Zig by Mitchell Hashimoto (HashiCorp co-founder). Native UI rendering on macOS and Linux. Supports ligatures, true color, Kitty graphics protocol, and splits/tabs. Configurable via a simple key-value file with sensible defaults. Open-source with 20K+ GitHub stars and a focus on correctness, speed, and minimal resource usage. Growing as a modern alternative to iTerm2, Alacritty, and WezTerm.

Open Source
Claude Code logo

Claude Code

Top Pick

Anthropic's agentic coding CLI

Anthropic's agentic CLI coding tool that delegates complex tasks to Claude directly from the terminal. Understands entire codebases via automatic context gathering, edits multiple files, runs shell commands, and manages Git workflows autonomously. Supports CLAUDE.md for persistent project instructions, integrates with VS Code and JetBrains, and uses Claude Opus/Sonnet with extended thinking for complex architectural decisions. Built for terminal-first developers.

paid
Codex logo

Codex

Top Pick

OpenAI coding agent for app, editor, terminal, and cloud work

Codex is OpenAI's coding agent for software development across the Codex app, editor, terminal, and cloud tasks. It helps write, review, debug, refactor, and automate code, with ChatGPT plan access for managed surfaces and API-key usage for CLI, SDK, and IDE workflows. The open-source CLI and SDK support local repository work, while cloud features add GitHub review, Slack/Linear integrations, worktrees, skills, MCP, and automations.

freemium
Every Code logo

Every Code

Community fork of Codex CLI with Auto Drive, browser integration, and multi-agents

Open-source terminal coding agent (npm `@just-every/code`) — a substantive community fork of OpenAI's Codex CLI adding Auto Drive orchestration, browser/CDP integration, multi-agent commands, theming, and Auto Review, while staying upstream-compatible.

freeOpen Source
Nanocoder parent Nano Collective mark

Nanocoder

Community-built, local-first terminal coding agent — bring your own model

An open-source terminal coding agent from the non-profit Nano Collective. Runs agentic coding on the model of your choice — local via Ollama or any OpenAI-compatible API — with no paid tiers and nothing gated behind a vendor.

freeOpen Source

Used in Stacks

Comparisons

Pi Coding Agent vs Claude Code: Minimal Agent Harness or Production Coding CLI?

Pi Coding Agent is a compact, MIT-licensed agent harness for developers who want to inspect and extend the coding-agent loop, while Claude Code is Anthropic's integrated coding-agent CLI with a stronger official product surface for professional teams. Claude Code is the better default for most teams because it offers the more complete, documented, vendor-backed coding workflow; Pi is best for local experimentation, custom extensions, and agent-loop research.

FAQ

What is Pi?

Pi Coding Agent is an MIT-licensed Node.js CLI from earendil-works for building and running coding agents in a local terminal. The current package describes a read/bash/edit/write toolset and session management, while the repo positions Pi as a unified LLM API, agent loop, TUI, and coding-agent CLI. It is best framed as a lean, self-extensible BYO-model toolkit rather than a managed IDE.

Is Pi free?

Yes — Pi is open source and free to use. Free (bring your own API key)

Is Pi open source?

Yes — Pi is open source.

What are the best Pi alternatives?

The top editor-verified Pi alternatives are OpenCode, Crush, Codebuff.

How does Pi score in our review?

Our hands-on review scores Pi 84/100 overall, based on speed, privacy, and developer-experience testing.