@pipilot/cli
v0.9.2
Published
PiPilot in your terminal - an AI build agent that runs on your machine, on your PiPilot plan. No API key required.
Maintainers
Readme
pipilot
PiPilot's build agent, in your terminal. Runs on your machine, on your PiPilot plan.
npm i -g pipilot
pipilot login
pipilot "add a dark mode toggle to the header"No API key
There is no API key to paste, and none is embedded in this package. You sign in with your PiPilot account; model calls go through PiPilot's proxy, which holds the provider keys server-side and applies your plan's quota.
That is a deliberate design choice, not a convenience. A key shipped inside a client is a key its
owner can read — HTTPS_PROXY plus any intercepting proxy recovers it in minutes, and this package
is open source besides. Authenticating the user instead is the only version of this that is
actually secure, and it is what makes quota, rate limits and revocation possible at all.
Commands
| Command | What it does |
| --- | --- |
| pipilot <prompt> | Build in the current directory |
| pipilot login | Sign in with your PiPilot account (OAuth 2.1 + PKCE) |
| pipilot logout | Forget the stored session |
| pipilot whoami | Show the account, where credentials live, and connected stacks |
Options
| Flag | Default | Notes |
| --- | --- | --- |
| --tier <pilot\|lite\|nitro> | nitro | Model tier. Premium tiers downgrade server-side on free plans. |
| --yes, -y | off | Auto-approve tool calls. Without it, anything that writes, deletes or runs a command asks first. |
| --max-turns <n> | 40 | Stop after n agent turns. |
| --cwd <path> | . | Working directory. |
Your connected stacks work here
Providers you have connected in the PiPilot web app — Vercel, Netlify, Cloudflare, GitHub, Supabase, Stripe, npm — are read from your own account and passed to the agent's shell, so their CLIs are authenticated with no login flow. They are held in memory for the run and never written to disk by this CLI.
Where credentials are stored
The OS keychain when the optional native module is available, otherwise
~/.pipilot/credentials.json with 0600 permissions. pipilot whoami tells you which one you
actually got. What is stored is your PiPilot session — per-user, quota-bound and revocable — not a
provider key.
Requirements
Node 20+. That is all: the agent runs against your real filesystem, so there is no container to pull and no sandbox minutes to spend.
Environment
| Variable | Purpose |
| --- | --- |
| PIPILOT_API_ROOT | Override the API origin (default https://pipilot.dev) |
| PIPILOT_LLM_BASE | Override the model proxy |
| PIPILOT_OAUTH_CLIENT_ID | Use a different OAuth client |
| PIPILOT_FORCE_RELAY_AUTH | Use the relay sign-in instead of loopback OAuth (locked-down machines) |
MIT licensed.
