Pi coding agent in Mira: the minimal harness, next to your other agents
Pi is a minimal, MIT-licensed coding agent you extend yourself. How to install it, and how to run it in Mira next to Claude Code and Codex.


The short answer
Pi is a minimal agent harness for coding, made by Earendil and its contributors and released under the MIT license. It ships with a short system prompt and few built-in features, and you add what you need through extensions, skills, prompt templates and themes. Mira is a desktop app that runs that same Pi as one of its eleven agents. Mira is not an official Pi app.
- Next to Claude Code and Codex
- Pi in one pane, other agents in the next
- Your providers, or Mira credit
- The models you set up in Pi, keys you add in Mira, or Mira's built-in models
- On your phone
- Read and reply away from your desk
- With your team
- Several people in one Pi session
Use Mira when you want Pi in a desktop window, alongside other agents, on your phone, or in a session your team shares.
Install Pi
- macOS and Linux
curl -fsSL https://pi.dev/install.sh | sh- Windows
powershell -c "irm https://pi.dev/install.ps1 | iex"- npm
npm install -g --ignore-scripts @earendil-works/pi-coding-agent(pnpm and bun work too)
Pi works with more than 15 model providers, including Anthropic, OpenAI, Google, xAI, Mistral, OpenRouter and Ollama, signed in with an API key or OAuth. Switch models mid-session with /model. In Mira, the models you already set up in Pi show up in the composer, next to Mira's own.
What makes Pi different
- A short system prompt; replace or extend it per project with a SYSTEM.md, and give project rules in AGENTS.md.
- No subagents or plan mode by default. Ask Pi to build the feature you want, or install a package that adds it.
- Extensions, skills, prompt templates and themes, shared as Pi packages through npm or git.
- Sessions stored as a tree: go back to any earlier message with
/treeand continue from there, or export a session. - Four modes: interactive, print or JSON output, RPC and an SDK.
Article · Claude Code alternatives: ten coding agents, and why you might not have to choose → Pi and the other agents you can run next to Claude Code.
Questions
- Is Mira an official Pi app?
- No. Pi is Earendil's. Mira is a separate desktop app that runs it alongside other coding agents.
- Will Mira change my Pi setup?
- It adds one extension to Pi's extensions folder, which only does something when Mira starts Pi. Your logins, models, sessions and skills stay as they are.
- Do I need my own API keys?
- Not in Mira: Pi can run Mira's built-in models on Mira credit. With your own keys or the providers you set up in Pi, the provider bills you.
- Does Pi work on Windows?
- Yes. Pi has a PowerShell installer, and Mira runs on Windows, macOS and Linux.
Sources
The details about Pi were checked against pi.dev on November 8, 2026. Pi changes quickly, so check pi.dev and its documentation for the latest.
Keep reading

Fixing OpenAI and Codex 403 “unsupported_country_region_territory”
Why OpenAI and Codex return 403 unsupported_country_region_territory, how to fix false positives on VPNs or cloud IPs, and compliant alternatives.

Running Claude Code and Codex on Amazon Bedrock, Vertex AI, and Microsoft Foundry
Connect Claude Code and Codex to Amazon Bedrock, Vertex AI, and Microsoft Foundry: env vars, config.toml, auth, model pinning, and limits.

Using Claude Code with Chrome and Codex Browser: live debugging, Playwright, and previews
How to connect Claude Code to Chrome (extension, console logs, login limits) and use Codex Browser or Playwright, plus live dev-server previews in Mira.