Pi coding agent cheatsheet
Pi is a small coding-agent harness whose defaults are intentionally inspectable: the installed v0.84.2 binary exposes read, bash, edit, and write, while skills, extensions, prompt templates, and packages add capability. This page separates facts read from pi --help from behavior documented in the official repository.
The verification date is 2026-08-18. Treat project-local settings and extensions as executable input: review them before approving or automating a run.
Command drill
16 verified Pi coding agent commands. Read the task, type the command, press Enter. Every answer is on this page's tables - this drill only asks what the verified data already states.
Answer key - all 16 commands
- Print the installed Pi version.
pi --version - Start an interactive session in the current directory.
pi - Continue the previous session for this project.
pi --continue - Choose a session to resume.
pi --resume - Run ephemerally without saving the session.
pi --no-session - Override where sessions are stored and found.
pi --session-dir ./tmp/pi-sessions - Show the active session file, ID, messages, tokens, and cost.
/session - Navigate to an earlier point and continue from that branch.
/tree - Run the line-oriented JSON RPC interface without persisting a session.
pi --mode rpc --no-session - Export a session file to HTML.
pi --export session.jsonl output.html - Print an API key for an external client.
pi auth print-api-key --provider openai - Switch models inside an interactive session.
/model - Enable or disable models used by Ctrl+P cycling.
/scoped-models - Open the TUI for enabling/disabling package resources.
pi config - Edit common interactive settings.
/settings - Show the full active keyboard shortcut list.
/hotkeys