Plandex CLI Cheatsheet - Terminal Planning AI Coding Agent (pdx)
Plandex (alias pdx) is a planning-first open-source terminal AI coding agent, for developers who prefer the AI to break a large change into a clear multi-step plan, execute incrementally, and track progress. Unlike modify-directly agents it stresses planning-first and branch-based iteration, suiting big refactors. This sheet covers install/auth, new/load planning, tell execution, and branch iteration.
Install & Auth 4
curl -sL https://plandex.ai/install.sh | bashexport OPENAI_API_KEY=...plandexpdxPlan & Load 6
plandex newplandex load some-file.ts another-file.tsplandex load src/components -rplandex load src --treeplandex load src/**/*.tsplandex load https://raw.githubusercontent.com/.../README.mdExecute & Iterate 4
plandex tell "add a new line chart..."plandex tell -f prompt.txtplandex helpplandex <command> --helpTips
- Plandex core is plan-then-implement: changes accumulate in a protected sandbox for review before applying to project files, with built-in version control to roll back anytime.
- `plandex load -r` loads a directory recursively, `--tree` loads structure only, and `**/*.ts` uses glob — control context precisely and avoid wasting tokens.
- It defaults to OpenAI but also works with Anthropic Claude, Gemini, Mixtral, Llama, and more via OpenRouter.ai or any OpenAI-compatible endpoint.
FAQ
How is Plandex different from ordinary AI chat coding?
Plandex targets large tasks: changes accumulate in a sandbox for your review before applying; built-in version control rolls back, branches try multiple approaches in parallel, and context stays current automatically.
Must Plandex use OpenAI?
It defaults to OpenAI (needs OPENAI_API_KEY) but also supports Anthropic Claude, Google Gemini, Mixtral, Llama, and more via OpenRouter.ai or any OpenAI-compatible provider.
Official References
Each command links to its official documentation below, so you can verify the latest usage and read deeper.
Maintained by LaoHand
Publicly updated on Aug 26, 2026, continuously proofread against official docs.
Contact Us
Wrong command or description? Send us corrections, business inquiries or product feedback by email.
Contact Us