What is Pi?
Minimal agent harness you extend with TypeScript extensions, skills and packages.
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.
- 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.
Sign in to rate. One rating per account.
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
- Repository
- earendil-works/pi
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.
OpenAI's coding agent that edits repos, runs tools and opens PRs.
Anthropic's coding agent in the terminal, IDE and cloud.
Open source AI coding agent for the terminal, desktop and IDE that works with any model.
AI agent on your own computer that writes code, runs commands and automates tasks with any model.
An open-source coding agent running with zero setup.
Qwen team's agent that edits files and runs shell commands, on Qwen, other APIs or local models.
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.







