Pi (install and connect to Flash API)
Pi (pi coding agent) is a lightweight coding agent for the terminal. It can hold several model providers at once, so you can switch between Claude and GPT mid-session.
Recommended: one-line setup
bash
# macOS / Linux / WSL / Git Bash
curl -fsSL https://sh.flashapi.top/pi.sh | bashpowershell
# Windows PowerShell
irm https://sh.flashapi.top/pi.ps1 | iexDetails: Pi one-line setup.
Manual setup
Install Node.js 22+: Install Node.js
Install Pi:
bashnpm i -g @earendil-works/pi-coding-agent@latestFollowing the examples in one-line setup · Files the script writes, edit
~/.pi/agent/models.jsonand~/.pi/agent/settings.json(%USERPROFILE%\.pi\agent\on Windows) and swap in your own keys.Verify:
pi -p "Reply with exactly: OK"