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

Source: https://fullbytedeveloper.com/blog/ai-terminals-pi-oh-my-pi-opencode-claude
Published here: 2026-11-20, updated 2026-12-03

Part 2 after [AI terminals beyond Claude Code and Codex in 2026](/blog/ai-terminals-beyond-claude-codex). 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.

```bash
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"
done
```

Captured output on 2026-12-03:

```text
200 https://pi.dev/
200 https://omp.sh/
200 https://opencode.ai/
200 https://code.claude.com/docs/en/overview
```

Pin npm `latest` the same way:

```bash
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"
done
```

Captured output on 2026-12-03:

```text
@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.233Z
```

Public curl installers on the primary sites (run only on hardware you control) [1][3][6][9]:

```bash
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 | bash
```

Claude Code version strings come from `claude --version` after you install; this draft environment did not ship that binary [9].

<figure>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 300" role="img" aria-label="Pick an agent by job shape: extensible core, IDE-wired fork, open multi-client stack, or Claude-first surfaces">
  <defs>
    <marker id="arrowAiTerminalsPi" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto">
      <path d="M0,0 L8,3 L0,6 Z" fill="#14b8a6"/>
    </marker>
  </defs>
  <rect x="0" y="0" width="720" height="300" rx="12" fill="#0b1f3a"/>
  <text x="24" y="36" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="16" font-weight="700">Job shape</text>
  <text x="24" y="58" fill="#cbd5e1" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">repo, account, IDE need</text>
  <path d="M220 48 H268" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#arrowAiTerminalsPi)"/>
  <rect x="276" y="24" width="168" height="56" rx="8" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="288" y="48" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">Minimal core + DIY</text>
  <text x="288" y="68" fill="#f59e0b" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">extensions</text>
  <path d="M444 52 H492" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#arrowAiTerminalsPi)"/>
  <rect x="500" y="24" width="196" height="56" rx="8" fill="#123052" stroke="#f59e0b" stroke-width="2"/>
  <text x="512" y="56" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14" font-weight="700">Pi [1]</text>
  <path d="M360 80 V112" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#arrowAiTerminalsPi)"/>
  <rect x="276" y="120" width="188" height="56" rx="8" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="288" y="144" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">IDE wired, Rust core</text>
  <text x="288" y="164" fill="#cbd5e1" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">Pi lineage fork</text>
  <path d="M464 148 H512" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#arrowAiTerminalsPi)"/>
  <rect x="520" y="120" width="176" height="56" rx="8" fill="#123052" stroke="#f59e0b" stroke-width="2"/>
  <text x="532" y="152" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14" font-weight="700">Oh My Pi [3]</text>
  <path d="M360 176 V208" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#arrowAiTerminalsPi)"/>
  <rect x="248" y="216" width="200" height="56" rx="8" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="260" y="240" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">Open + multi-client</text>
  <text x="260" y="260" fill="#cbd5e1" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">Models.dev wiring</text>
  <path d="M448 244 H496" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#arrowAiTerminalsPi)"/>
  <rect x="504" y="216" width="192" height="56" rx="8" fill="#123052" stroke="#f59e0b" stroke-width="2"/>
  <text x="516" y="248" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14" font-weight="700">OpenCode [6]</text>
  <path d="M180 88 V244" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#arrowAiTerminalsPi)"/>
  <rect x="24" y="216" width="200" height="56" rx="8" fill="#123052" stroke="#64748b" stroke-width="2"/>
  <text x="36" y="240" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">Claude subscription</text>
  <text x="36" y="260" fill="#cbd5e1" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">terminal, IDE, web</text>
  <path d="M224 244 H248" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#arrowAiTerminalsPi)"/>
  <text x="128" y="272" fill="#f59e0b" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14" font-weight="700">Claude Code [9]</text>
</svg>
</figure>

*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](https://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](https://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](https://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](/blog/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.

Image: Four unlabeled terminal-class stations in a row on a dark navy floor: a minimal core rod, a core rod with side wiring arms, an open multi-client hub with several small client cubes, and a tall official terminal slab, with no scoreboard, logos, or typography.
https://fullbytedeveloper.com/media/ai-terminals-pi-oh-my-pi-opencode-claude/ai-terminals-pi-oh-my-pi-opencode-claude-venice.webp
Pick by surface and wiring, not by a bakeoff score. Measure the stack on your own repos.

Image: Dark comparison table of Pi, Oh My Pi, OpenCode, and Claude Code across primary surface, model wiring, built in versus DIY, install signal, and live site checks, with a footer note that Conductor is excluded.
https://fullbytedeveloper.com/media/ai-terminals-pi-oh-my-pi-opencode-claude/decision-table.webp
Job-shape axes only. Re-check npm and product sites on install day.

## Sources

1. [Pi (pi.dev), accessed 2026-12-03](https://pi.dev/)
2. [Pi npm @earendil-works/pi-coding-agent, accessed 2026-12-03](https://registry.npmjs.org/@earendil-works/pi-coding-agent)
3. [Oh My Pi (omp.sh), accessed 2026-12-03](https://omp.sh/)
4. [Oh My Pi npm @oh-my-pi/pi-coding-agent, accessed 2026-12-03](https://registry.npmjs.org/@oh-my-pi/pi-coding-agent)
5. [Oh My Pi GitHub (can1357/oh-my-pi), accessed 2026-12-03](https://github.com/can1357/oh-my-pi)
6. [OpenCode (opencode.ai), accessed 2026-12-03](https://opencode.ai/)
7. [OpenCode CLI npm @opencode/cli, accessed 2026-12-03](https://registry.npmjs.org/@opencode/cli)
8. [OpenCode GitHub (anomalyco/opencode), accessed 2026-12-03](https://github.com/anomalyco/opencode)
9. [Claude Code overview, accessed 2026-12-03](https://code.claude.com/docs/en/overview)
10. [Conductor joining Meta announcement, accessed 2026-12-03](https://www.conductor.build/announcement)
