$ cat ~/map/pi-coding-agent-npm.md
@earendil-works/pi-coding-agent
The official npm package — install the Pi coding agent CLI with one command.
officialtools✓ Oct 16
Facts
- GitHub Stars
- —
- Forks
- —
- license
- —
- npm / mo
- 16.5M
- last push
- —
install
npm install -g --ignore-scripts @earendil-works/pi-coding-agent## TL;DR
The official npm package for pi — one documented global install provides the pi binary, a coding agent CLI with read, bash, edit, and write tools plus session management.
## Key points
- $Official scoped package maintained under @earendil-works; it provides the pi binary (bin: pi), and its npm description is a coding agent CLI with read, bash, edit, write tools and session management. The source lives in the coding-agent package of the earendil-works/pi monorepo.
- $The documented install is npm install -g --ignore-scripts @earendil-works/pi-coding-agent — --ignore-scripts disables dependency lifecycle scripts during install, and pi does not require install scripts for normal npm installs.
- $Installer alternative for Linux/macOS: curl -fsSL https://pi.dev/install.sh | sh; removal is npm uninstall -g @earendil-works/pi-coding-agent, with matching global remove commands for pnpm, Yarn, or Bun.
- $The package requires Node.js >=22.19.0 (engines field). Launch with pi in a project directory, then authenticate via /login for subscription providers or set an API key such as ANTHROPIC_API_KEY beforehand.
- $By default pi gives the model four tools — read, write, edit, and bash — and it runs in four modes: interactive TUI, print/JSON, RPC for process integration, and an SDK for embedding. Full documentation lives at pi.dev.
## FAQ
Q Why the --ignore-scripts flag?
It disables dependency lifecycle scripts during install. Pi works normally without them, so the flag avoids running third-party postinstall scripts you did not ask for.
Q How do I update or uninstall?
Re-run the global npm install (or your package manager's global update) to move to a newer version; uninstall with npm uninstall -g @earendil-works/pi-coding-agent — pnpm, Yarn, and Bun users should use their matching global remove command.
## References
## Related entries
$ CCompactor
Turns finished coding-agent sessions — Pi, Claude Code, Codex — into compact, verified, provenance-linked handoff artifacts, in TypeScript.
$ pi
The Pi monorepo: unified LLM API, agent loop, TUI, and the coding agent CLI itself.
$ pi2dsh
Compatibility bridge that lets DeepSeek Harness run unmodified pi ecosystem packages by mapping pi's public extension ABI onto DSH native services.
## Guides
Last updated: Aug 31, 2026