Skip to content

DirectoryTools

Pi logo

Pi

Minimal agent harness you extend with TypeScript extensions, skills and packages.

Visit Pi

Coding & WebOpen SourceWe checked the prices on github.com on 8 Nov 2026.

Pi homepage screenshot

What is Pi?

Minimal agent harness you extend with TypeScript extensions, skills and packages.

Coding & WebCode Assistants & IDEsCoding agentTerminalExtensions

Who is Pi best for?

Pi is best for terminal-first developers who want a minimal coding agent they can reshape with their own extensions.

  • Model hoppers

    It works with 15+ providers, including Anthropic, OpenAI, Google, Mistral, OpenRouter and local Ollama, and switches models mid-session.

  • Building your own workflow

    TypeScript extensions add commands, tools, sub-agents, plan mode or permission gates, and Pi can write them for you.

  • Scripts and other apps

    Besides the interactive terminal UI, it runs in print or JSON mode for scripts, over RPC, or as an SDK inside your own app.

  • Sessions you come back to

    Sessions are stored as trees you can rewind and branch, then export to HTML or share as a GitHub gist.

How much does Pi cost?

Pi is free and MIT licensed; you pay only for the models it calls, through your own API keys or a subscription you sign in with.

Self-hosted$0MIT licence
  • Install script, npm, pnpm or bun
  • Runs locally in your terminal
  • Your own model keys or subscription

Pi has no paid plan. Model use is billed by the provider you connect, such as Anthropic, OpenAI or OpenRouter, or comes out of a subscription you link with /login. Full pricing on github.com. We checked these prices on .

How do readers rate Pi?

No one has rated Pi yet. Be the first.

No ratings yetThe score and its stars show once 3 readers have rated Pi.
Your rating

Sign in to rate. One rating per account.

Your rating of Pi

Is Pi open source?

Yes. Pi's code is public under the MIT licence, so you can run it on your own server.

On GitHub

121,671stars

+6,734 (+5.9%) in the last 30 days

Last commit
13 Nov
Repository age
15 months
Latest release
10 Nov
Licence
MIT
Self-hosted
Yes
Run it yourselfThe code and the steps to put it on your own server are in its repository on GitHub.View on GitHub
Host it on a serverRailway sets it up on a server for you with a one-click install.Host with Railway

What are the best Pi alternatives?

Pi is an open source alternative to Codex and Claude Code. OpenCode, goose, OpenHands and Qwen Code do the same job and are open source too.

Questions about Pi

What is Pi?

Minimal agent harness you extend with TypeScript extensions, skills and packages.

Who is Pi for?

Pi is best for terminal-first developers who want a minimal coding agent they can reshape with their own extensions.

Is Pi free?

Yes. Pi has a free Self-hosted plan: install script, npm, pnpm or bun.

Is Pi open source?

Yes. Pi's code is public under the MIT licence, so you can run it on your own server.

What are the best Pi alternatives?

The closest alternatives on Recaply are Codex, Claude Code, OpenCode, goose, OpenHands and Qwen Code.

Where can I try Pi?

On its official website, pi.dev.

Does Pi have sub-agents or a plan mode?

Not built in. Pi leaves out sub-agents, plan mode, permission pop-ups and to-do lists on purpose; you can add them with TypeScript extensions, install a package that does it, or run several Pi instances in tmux.