Pi is a minimal, MIT-licensed terminal coding agent that you shape with extensions, skills and packages. HagiCode is a workbench that runs Pi as its executor and adds sessions, proposals and commit tooling around it.
- Is Pi free?
- Pi is MIT-licensed and free to install. You pay only for the models you connect, through an API key or a provider subscription you sign in to with /login. See pi.dev for current details.
- How do I install Pi?
- On macOS or Linux run curl -fsSL https://pi.dev/install.sh | sh. On Windows run powershell -c "irm https://pi.dev/install.ps1 | iex". You can also run npm install -g --ignore-scripts @earendil-works/pi-coding-agent, which needs Node.js 22.19 or newer.
- Does Pi have sub-agents or a plan mode?
- Not by default. Pi skips them on purpose and lets you add them through extensions, skills or packages.
- Can I use Pi with HagiCode?
- Yes. HagiCode lists Pi as an Agent CLI. Install Pi and run /login, then select it in HagiCode; HagiCode starts Pi for you and leaves your Pi setup unchanged.
- Does HagiCode replace Pi?
- No. HagiCode is the workbench around Pi, adding sessions, proposals, commits and history. It needs Pi installed and signed in to run.
- Pi vs HagiCode: which should I pick?
- Pick Pi alone if you want a minimal agent you extend yourself. Add HagiCode if you want ready-made parallel sessions, proposals and history around Pi.