What is Plandex?
Plandex is a terminal-based AI development tool that can plan and execute large coding tasks that span many steps and touch dozens of files. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in Go and licensed MIT. To get started: install the CLI.
Overview
Plandex is a terminal-based AI development tool that can plan and execute large coding tasks that span many steps and touch dozens of files. It handles up to 2M tokens of context directly (around 100k per file) and can index larger directories using tree-sitter project maps, so it stays useful even when a project grows past the point where other tools struggle.
A cumulative diff review sandbox keeps AI-generated changes separate from your project files until they are ready to go in. Command execution is controlled, so you can roll back and debug easily. You can run Plandex with full autonomy or keep tight, step-by-step control, and combine models from Anthropic, OpenAI, Google, and open-source providers through curated model packs.
It installs as a one-line, zero-dependency CLI and runs in a REPL inside any project directory. On Windows it works only inside WSL, not the Windows command prompt or PowerShell.
What it does
- 2M token effective context window with the default model pack; Plandex loads only what each step needs and stays reliable in large projects and files
- Fast project map generation and syntax validation with tree-sitter, supporting 30+ languages
- Cumulative diff review sandbox that isolates AI changes until they are ready, plus full version control with branches for the plan
- Configurable autonomy, from full auto mode to fine-grained, step-by-step control
- Automated debugging of terminal commands like builds, linters, tests, and scripts, plus browser app debugging when Chrome is installed
- Project-aware chat mode, git integration with commit message generation, and a REPL with fuzzy auto-complete for commands and file loading
Getting started
Install the CLI with one line, set a provider key, then start the REPL inside any project directory. On Windows, run these inside WSL.
Install the CLI
Run the one-line, zero-dependency install script. See the docs for more installation options.
curl -sL https://plandex.ai/install.sh | bashSet a provider key
For self-hosted or bring-your-own-key mode, set the key for the model provider you are using, for example an OpenRouter.ai key. If you have a Claude Pro or Max subscription, Plandex can use it for Anthropic models and will ask to connect it on first run.
export OPENROUTER_API_KEY=...Start in your project
Change into your project directory (optionally initialize a git repo, which Plandex integrates with well), then start the REPL. It opens in chat mode by default for fleshing out ideas before implementation.
cd your-project-dir
git init
plandexCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Implementing large features that span many steps and touch dozens of files in a single coordinated plan
- Working in big projects and large files where other AI tools break down once the codebase grows
- Reviewing AI-generated changes in an isolated diff sandbox before applying them, with easy rollback and version control
- Exploring and asking questions about an unfamiliar codebase using project-aware chat mode before writing code
How Plandex compares
Plandex alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| opencode | ★ 230k | OpenCode is an open source AI coding agent that runs in your terminal, with built-in build and plan agents and an optional desktop app. |
| Claude Code | ★ 158k | Anthropic's agentic coding tool for the terminal, IDE and GitHub: it understands your codebase, executes routine tasks, explains code and handles git workflows from natural-language commands. |
| Orca | ★ 147k | Open-source desktop workspace that runs Claude Code, Codex, OpenCode and other CLI coding agents in parallel, each in its own git worktree, with a mobile companion app. |
| OpenAI Codex | ★ 137k | OpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel. |
| Pi | ★ 125k | Minimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks. |
| Gemini CLI | ★ 109k | An open-source command-line AI agent from Google that connects your terminal to Gemini models for reading code, editing files, running shell commands, and searching the web. |
| autoresearch | ★ 101k | Karpathy's minimal harness that hands a coding agent a single-GPU LLM training script and lets it run fixed five-minute experiments, keeping or discarding each change on its own. |
| Plandex | ★ 15.9k | Terminal AI coding agent built for large tasks and real-world projects |

