How to choose: Pi vs Oh My Pi vs OpenCode vs Claude Code
Pick by surface and wiring, not stars. npm pins re-checked 2026-12-03. No bakeoff winner.
Published here , updated · 10 sources · Resume reading
Part 2 after AI terminals beyond Claude Code and Codex in 2026. Pi, Oh My Pi, OpenCode, and Claude Code are four live terminal-class agents. None wins a bakeoff here. Match primary surface, model wiring, and how much you want built-in versus DIY, then install one stack and measure on your repos [1][9].
Quick start: prove the sites and npm pins
Before you quote an installer or version string, hit the product pages and npm. The loop below checks HTTP status only; it does not run install scripts.
for u in \
https://pi.dev/ \
https://omp.sh/ \
https://opencode.ai/ \
https://code.claude.com/docs/en/overview
do
curl -sS -o /dev/null -w "%{http_code} %{url_effective}\n" --max-time 15 -A "Mozilla/5.0" "$u" || echo "FAIL $u"
doneCaptured output on 2026-12-03:
200 https://pi.dev/
200 https://omp.sh/
200 https://opencode.ai/
200 https://code.claude.com/docs/en/overviewPin npm latest the same way:
for pkg in @earendil-works/pi-coding-agent @oh-my-pi/pi-coding-agent @opencode/cli; do
curl -sS "https://registry.npmjs.org/$pkg" | python3 -c "import sys,json; d=json.load(sys.stdin); t=d['dist-tags']['latest']; print(f\"{sys.argv[1]} latest={t} time={d['time'][t]}\")" "$pkg"
doneCaptured output on 2026-12-03:
@earendil-works/pi-coding-agent latest=1.7.0 time=2026-11-27T16:58:41.018Z
@oh-my-pi/pi-coding-agent latest=19.4.1 time=2026-12-01T18:53:25.478Z
@opencode/cli latest=2.4.4 time=2026-12-03T00:36:04.233ZPublic curl installers on the primary sites (run only on hardware you control) [1][3][6][9]:
curl -fsSL https://pi.dev/install.sh | sh
curl -fsSL https://omp.sh/install | sh
curl -fsSL https://opencode.ai/v2/install | bash
curl -fsSL https://claude.ai/install.sh | bashClaude Code version strings come from claude --version after you install; this draft environment did not ship that binary [9].
Match surface and wiring first; npm pins and curl installers only prove the stack is live before you pick.
Pi: minimal core you extend
pi.dev markets Pi as a minimal agent stack you adapt to your workflows [1]. Extensions, skills, templates, themes, and shareable Pi packages ship via npm or git. Modes include interactive, print/JSON, RPC, and SDK, with steering while tools run [1].
The npm package @earendil-works/pi-coding-agent exposes read, bash, edit, and write tools plus session management [2]. Pi loads AGENTS.md from ~/.pi/agent/, parents, and the project tree, with optional SYSTEM.md overrides [1]. Provider choice spans many vendors and local options; you can switch models mid-session [1].
Reach for Pi when you want a small core and you are willing to add sub-agents, permission flows, or plan tools via extensions or packages. Prefer something else when you want IDE-native tooling and a large built-in surface on day one [1][3].
Oh My Pi: Pi lineage with IDE wiring
omp.sh markets a coding agent with the IDE wired in, from Stencil Labs, with a native Rust core [3]. The GitHub README states it is a fork of Pi by Mario Zechner and lists curl, Homebrew, bun, and Nix install paths [5]. Version numbers on @oh-my-pi/pi-coding-agent are not comparable to @earendil-works/pi-coding-agent tags; treat them as separate release trains [2][4].
Oh My Pi is related to Pi, not interchangeable. The README counts built-in LSP and debug-adapter tools, a different posture than Pi's "primitives, not features" pitch [1][5].
Reach for Oh My Pi when you want Pi-adjacent workflows plus more built-ins on day one. Prefer Claude Code or OpenCode when your buying decision starts with Anthropic-only polish or MIT-licensed multi-client OpenCode instead of omp's Stencil stack [3][6][9].
OpenCode: open agent across clients
opencode.ai brands an open source coding agent for desktop, terminal, phone, and SDK use, with provider choice through Models.dev and permission controls on the marketing page [6][8]. Install docs emphasize the v2 path: curl -fsSL https://opencode.ai/v2/install | bash and npm install -g @opencode/cli [6][7]. Do not mix that with older opencode-ai 1.x package names without labeling the line [6][7].
Site copy mentions free models without an account, plus plugins, MCP servers, custom agents, and skills via SKILL.md [6]. Homepage star counts are marketing claims only [6].
Reach for OpenCode when you want one open codebase across terminal and other clients and you plan to bring your own model keys or subscriptions. Prefer Claude Code when you already standardize on Claude subscriptions, Console billing, and Anthropic's first-party IDE or desktop apps [6][9].
Claude Code: Anthropic surfaces on one engine
The official overview describes Claude Code as an agentic coding tool that reads a codebase, edits files, runs commands, and integrates with development tools across terminal, IDE, desktop, and browser [9]. Most surfaces need a Claude subscription or Anthropic Console account; terminal, VS Code, and JetBrains paths also document third-party providers in the same doc set [9].
Project instructions use CLAUDE.md, with AGENTS.md accepted when present [9]. Features called out in the overview include MCP, skills, hooks, parallel agents, piping CLI output, and scheduled tasks on some surfaces [9].
Reach for Claude Code when your team already lives in Claude accounts and you want one vendor to own terminal, IDE, web, and desktop. Prefer Pi or OpenCode when you refuse a Claude-first account path or you want to own the agent source code [1][6][9].
| Tool | Reach for it when | Prefer something else when |
|---|---|---|
| Pi | You want a small core you will extend | You want IDE wiring and many built-ins on day one |
| Oh My Pi | You want Pi lineage plus IDE-wired batteries | You want Anthropic's full multi-surface product |
| OpenCode | You want open source across terminal and other clients | You need Claude-only polish and Anthropic account features |
| Claude Code | You already live in Claude's account and docs | You refuse a Claude-first account path |
Common mistakes when you compare these four
Treating Oh My Pi and Pi as one product. They share lineage and similar npm descriptions, but omp is a Stencil fork with its own installer, Rust core, and version line [3][4][5]. Pick one stack per machine unless you enjoy config drift.
Installing legacy OpenCode package names. The live site pushes @opencode/cli and the v2 curl script [6][7]. Mixing 1.x package names into docs without a label confuses upgrade paths.
Treating the Claude Code terminal as the whole product. JetBrains and VS Code plugins expect the CLI installed separately on some paths [9]. Read the tab you actually use before you script CI around claude.
Expecting Pi's default permission model to match omp or OpenCode. Pi's site explicitly positions permission popups and plan mode as DIY or extension work [1]. OpenCode and Claude Code document permission tiers on their own pages [6][9]. Copying one team's settings.json across products rarely works.
Skipping account checks for Claude Code and paid OpenCode tiers. Free OpenCode models are real per the site, but paid tiers and Claude surfaces still need the vendor login flows [6][9]. Budget time for auth before you blame the installer.
Chasing README star counts between weekly installs. Homepage stars are marketing claims [6]. Re-check npm pins and your own task timings instead of wiping a working agent because another README number moved overnight [1][3][6][9].
Conductor footnote (not a fifth column)
Conductor's announcement still opens with joining Meta [10]. Treat it as continuity for existing Conductor users, not a fifth comparison row.
For Claude Code versus Cursor versus Codex, see Claude Code vs Cursor vs Codex.
When curl returns 200 and npm latest matches the pins you logged, install one product and run your own tasks.
Send this to the friend who reinstalls agents because the README star count changed overnight.


Keep this guide
Questions about this guide
Is Oh My Pi the same product as Pi?
No. Pi markets a minimal coding agent you adapt. Oh My Pi (omp) markets a coding agent with the IDE wired in and documents itself as a fork of the Pi line. Compare them as related but separate surfaces.
Which one is fastest or cheapest?
This page does not say. No side-by-side task timings or cost protocol were run for these four. Pick by surface fit, then measure on your own tasks.
Where does Conductor fit?
Footnote only. The live announcement still says Conductor is joining Meta, plans have changed, and Conductor will keep working as normal. It is not a recommended new daily driver on this page.
Sources
- Pi npm @earendil-works/pi-coding-agent, accessed 2026-12-03registry.npmjs.org
- Oh My Pi npm @oh-my-pi/pi-coding-agent, accessed 2026-12-03registry.npmjs.org
- OpenCode (opencode.ai), accessed 2026-12-03opencode.ai
- OpenCode CLI npm @opencode/cli, accessed 2026-12-03registry.npmjs.org
- Claude Code overview, accessed 2026-12-03code.claude.com
- Conductor joining Meta announcement, accessed 2026-12-03conductor.build