Versus · AI tools

Pi vs Claude Code

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • Claude Code if you want the most complete agent out of the box and you are happy on Claude models.
  • Pi if you want to switch models freely, run local models, keep the agent tiny, and build your own workflow on top.

Compared here

  • 01Claude Code
  • 02Pi coding agent

Short answer

Pi is a small, open-source coding agent you shape yourself. Claude Code is Anthropic's big, batteries-included one. Pi is free software under the MIT licence from Earendil, works with 15+ model providers including Anthropic, OpenAI, Google, OpenRouter and local models through Ollama, and deliberately skips sub-agents, plan mode, permission popups and built-in to-dos. You pay only for the model you plug in. Claude Code needs a paid Claude plan (Pro at $20 a month, $17 billed yearly; Max $100; Ultra $200) or an Anthropic Console account, and comes with sub-agents, MCP, hooks, skills, IDE plugins, a desktop app and the web. Prices in US dollars as shown to us on 3 December 2026.

Pick Claude Code if you want the most complete agent out of the box and you are happy on Claude models. Pick Pi if you want to switch models freely, run local models, keep the agent tiny, and build your own workflow on top. Below: the side by side table, what Pi leaves out on purpose, the real cost of each, and who should use which.

See Claude plans

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

From pi.dev, the Pi GitHub README, code.claude.com docs and claude.com/pricing, read 3 December 2026. Prices in US dollars as shown to us.
Claude CodePi
Made byAnthropicEarendil Inc. and contributors
LicenceProprietaryMIT (open source)
Price of the toolIncluded with Claude Pro, Max, Ultra or Team; or pay per use with a Console API keyFree software; you pay your model provider
ModelsAnthropic's Claude models; CLI, VS Code and JetBrains also support third-party providers15+ providers: Anthropic, OpenAI, Google, Azure, Bedrock, Mistral, Groq, xAI, OpenRouter, Ollama and more
Where it runsTerminal, VS Code, JetBrains, desktop app, web, mobileTerminal (interactive), print/JSON mode, RPC, TypeScript SDK
Sub-agentsYes, built inNo, on purpose; build with extensions
Plan modeYes (plan review in VS Code)No, on purpose
Permission promptsYesNo popups, on purpose
MCPYesPage is contradictory: says No MCP, then says MCP is built in and extensions supported
Project instructions fileCLAUDE.md, can read AGENTS.mdAGENTS.md, plus SYSTEM.md to replace the system prompt
SessionsResume, move between surfaces, cloud sessionsTree-shaped sessions in one file, branch from any point, export to HTML
Scheduling and cloudCloud and desktop scheduled tasks, cloud sessions, GitHub ActionsNot offered; use your own tools

Money first. The Claude button goes through our /go/ link. We know of no Anthropic affiliate program, so it most likely earns us nothing. Pi is free software with nothing to sell us. Nobody is paying for this verdict.

Method, honestly: we did not run a hundred hours with each. We read Pi's site, its GitHub README, the Claude Code docs and Claude's pricing page on 3 December 2026. If a feature is not on those pages, we say so instead of guessing.

The short version

Claude Code is a fully kitted truck. Pi is a bare frame and a good engine, and you bolt on what you need.

Both live in the terminal, both read your project, edit files and run commands. The difference is philosophy. Anthropic keeps adding: sub-agents, plan mode, hooks, skills, MCP, a desktop app, cloud sessions, scheduled tasks. Pi's makers keep removing. Pi's own page has a section called "What we didn't build," and it is the most interesting part of the site.

What Pi is

Pi describes itself as "a minimal agent harness" that you adapt "to your workflows, not the other way around." It comes from Earendil Inc. and contributors, under the MIT licence.

What you get, per its pages:

  • Four ways to run it: interactive in the terminal, print or JSON mode for scripts, RPC to control it from another program, and a TypeScript SDK to build your own apps on it.
  • 15+ model providers: Anthropic, OpenAI, Google, Azure, Bedrock, Mistral, Groq, Cerebras, xAI, Hugging Face, Kimi For Coding, MiniMax, NVIDIA, OpenRouter and Ollama. You can switch models mid-session and add custom providers.
  • Login with API keys or OAuth, through /login inside Pi.
  • Tree-shaped sessions stored in one file. /tree lets you jump around and branch from any earlier point. /export turns a session into HTML; /share posts it to a GitHub gist.
  • AGENTS.md project instructions, loaded from your home config, parent folders and the current folder. SYSTEM.md can replace or extend the system prompt per project.
  • Extensions, skills, prompt templates and themes, bundled as Pi packages and shared through npm or git.

Install is one line. On macOS and Linux the README gives curl -fsSL https://pi.dev/install.sh | sh; Windows has a PowerShell line; there is an npm package and a Nix route too. Pi needs Node.js 22.19 or newer.

What Pi leaves out on purpose

This is the list from Pi's "What we didn't build" section:

  • Sub-agents. No built-in team of helper agents.
  • Permission popups. It will not stop and ask before every command.
  • Plan mode. No separate plan-then-execute switch.
  • Built-in to-dos. Use a TODO.md file.
  • Background bash. Use tmux.

And then MCP, where Pi's page contradicts itself: the heading says "No MCP," but the text under it says MCP is built in alongside something it calls Codemode, and MCP extensions are supported. We would not plan a workflow around MCP in Pi until you have checked it on your own machine.

Why skip all that? The argument is context and control. Every built-in feature adds instructions the model has to read on every turn. A tiny harness leaves more room for your code and your rules. Whether that matters to you depends on how long your sessions run and how much you like tinkering.

The permission point deserves a sober word. No popups means Pi will run what the model decides to run. Run it in a container or a throwaway checkout if you do not trust the model with your machine.

What Claude Code is

Anthropic's docs call Claude Code "an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools." The feature list is long:

  • Surfaces: terminal CLI, VS Code and Cursor extension, JetBrains plugin, a desktop app for macOS, Windows and Linux (beta), the web at claude.ai/code, and the Claude mobile app.
  • Sub-agents and background agents: a lead agent can split work across several agents; you can run full sessions in parallel and watch them from one screen.
  • MCP to connect Google Drive, Jira, Slack or your own tools.
  • CLAUDE.md instructions, auto memory, skills for repeatable workflows, and hooks to run commands before or after actions.
  • Plan review in VS Code, permissions you can tune, and an Agent SDK for custom agents.
  • Scheduling: cloud scheduled tasks that run with your computer off, desktop scheduled tasks, and /loop.
  • CI and review: GitHub Actions, GitLab CI/CD and automatic code review on pull requests.
  • Move between devices: Remote Control from your phone, teleport cloud sessions into your terminal.

The CLI, VS Code and JetBrains versions also support third-party providers, but the product is built around Claude models.

What each costs

Pi: the software is free. Pi's site lists no price. Your bill is whatever your model costs:

  • an API key, paid per token at your provider's rates;
  • a subscription you log in with, if your provider allows it in third-party tools (check their terms; Pi does not cover this);
  • or nothing but electricity, with a local model through Ollama, if your hardware can run a model good enough to code with.

Claude Code: comes with a paid Claude plan or pay-per-use API billing. From claude.com/pricing:

PlanPriceClaude Code
Free$0Not included
Pro$20 a month, or $17 a month billed yearly ($200 up front)Included
Max$100 a month, monthly onlyIncluded, 5x Pro usage
Ultra$200 a month, monthly onlyIncluded
TeamStandard $25 a seat monthly or $20 yearly; Premium $125 monthly or $100 yearlyIncluded

Our Claude Pro vs Max page explains when the bigger plans are worth it, and Claude API vs subscription does the math on paying per token instead.

The honest money read: if you already pay for Claude Pro, Claude Code costs you nothing extra and Pi only saves money if you move to cheaper models. If you live on open models or a mix of providers, Pi can be much cheaper, because you are not paying for a Claude plan at all.

Who should pick what

Pick Claude Code if:

  • you want the most complete agent today without building anything;
  • you work in VS Code or JetBrains and want diffs inline;
  • your team needs permissions, plan review, MCP connectors and CI integration;
  • you want cloud sessions and scheduled tasks;
  • you are happy on Claude models.

Pick Pi if:

  • you want to switch between Claude, GPT, Gemini, open models and local models in one tool;
  • you want an open-source agent you can read, fork and audit;
  • you like building your own workflow from small parts;
  • you want to embed an agent in your own app through RPC or the SDK;
  • you want long sessions with less built-in overhead.

Use both if you already have a Claude plan: Claude Code for daily work, Pi for experiments with other models. Keep your project rules in AGENTS.md; Pi reads it, and Claude Code can read it too.

What we could not verify

  • Pi's built-in tool list (read, write, edit, bash and so on). The pages we read do not list it.
  • Whether Pi has MCP built in today, given the page contradicts itself.
  • Any quality or speed comparison. Benchmarks we saw online pair each harness with different models, which tells you about the models as much as the tools. We ran none.
  • Whether your model provider lets you use a consumer subscription inside Pi.

Bar verdict: Claude Code is the agent you hand to a new teammate. Pi is the agent you build for yourself on a long weekend and then refuse to give up.

Questions people ask

Is Pi better than Claude Code?

Better for some people. Pi is smaller, open source and lets you pick any of 15+ model providers or a local model, and you add only the features you want. Claude Code does far more out of the box: sub-agents, plan mode, MCP, hooks, IDE plugins, a desktop app and cloud sessions. Tinkerers like Pi; teams usually want Claude Code.

Is Pi coding agent free?

The software is free under the MIT licence. Pi's site does not list a price. What you pay for is the model: an API key from Anthropic, OpenAI, Google or another provider, a subscription you log in with, or nothing at all if you run a local model through Ollama on your own hardware.

Can I use Claude models in Pi?

Yes. Pi lists Anthropic among its providers and supports API keys and OAuth login through its /login command. If you plan to log in with a Claude consumer subscription instead of an API key, read Anthropic's current terms on third-party tools first; Pi's page does not address that, and we did not verify it.

Why does Pi not have sub-agents or plan mode?

By design. Pi calls itself a minimal agent harness you adapt to your workflow, and its own page lists sub-agents, permission popups, plan mode, built-in to-dos and background bash as things it did not build. You can add them through extensions and packages, or use plain files like TODO.md and tools like tmux.

Does Pi read CLAUDE.md files?

Pi's page talks about AGENTS.md, loaded at startup from your home config folder, parent folders and the current folder, plus SYSTEM.md to replace or extend the system prompt. Claude Code reads CLAUDE.md and can also read an existing AGENTS.md. The simple trick for using both: keep your rules in AGENTS.md.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Pi home page (pi.dev), checked 3 Dec 2026
  2. Pi coding agent README on GitHub, checked 3 Dec 2026
  3. Claude Code docs: overview, checked 3 Dec 2026
  4. Claude pricing, checked 3 Dec 2026