Skip to content

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.

bash
# macOS / Linux / WSL / Git Bash
curl -fsSL https://sh.flashapi.top/pi.sh | bash
powershell
# Windows PowerShell
irm https://sh.flashapi.top/pi.ps1 | iex

Details: Pi one-line setup.

Manual setup ​

  1. Install Node.js 22+: Install Node.js

  2. Install Pi:

    bash
    npm i -g @earendil-works/pi-coding-agent@latest
  3. Following the examples in one-line setup · Files the script writes, edit ~/.pi/agent/models.json and ~/.pi/agent/settings.json (%USERPROFILE%\.pi\agent\ on Windows) and swap in your own keys.

  4. Verify: pi -p "Reply with exactly: OK"

One base URL for GPT, Claude and Gemini