Plandex: safety, autonomy levels and how to run it
Plandex's autonomy levels, command execution and auto-debug settings, the end of Plandex Cloud in October 2025, and how to run the self-hosted agent safely.
- Made by
- Plandex (plandex-ai)
- Runs in
- Terminal (CLI and REPL)
- Platforms
- macOS, Linux, Windows (WSL only)
- Licence
- MIT, open source
1 public advisory
Security advisories and reported issues since 2025, from vendor advisories, NVD and public reports. Checked December 2, 2026.
On this page
What Plandex is
Plandex is a terminal-based AI coding agent with a client and server design: a CLI talks to a server that you run locally in Docker or on a host you control. It plans a task, loads context, and keeps generated changes in a pending diff that you review before they reach your project files. It can also write shell commands for you to run, and at full autonomy it applies changes, runs commands and debugs failures on its own. The README marks Plandex Cloud as winding down since October 3, 2025 and closed to new users.
Install Plandex
CLI (documented in the README; the plandex.ai domain did not resolve on 2026-12-02):
curl -sL https://plandex.ai/install.sh | bashLocal mode server (needs git, docker and docker-compose):
git clone https://github.com/plandex-ai/plandex.git && cd plandex/app && ./start_local.shPlandex news and advisories
Releases and announcements, with public security advisories on the same line.
NVD published CVE-2026-85690, a path traversal in the Plandex 2.2.1 apply step. The date shown is NVD's publication date.
NVD- CVE-2026-85690
Plandex up to 2.2.1 has a path traversal in the ApplyFiles function. Poisoned repository files or attacker-controlled context can influence model output so that files are written outside the project directory, for example shell rc or cron files, leading to code execution.
NVD The repo marked Plandex Cloud as winding down as of 10/3/2025 and no longer accepting new users, and linked a wind-down post. The post itself could not be fetched because the plandex.ai domain did not resolve.
Plandex READMEThe CLI version was bumped to 2.2.1, the latest version the repo shows.
Plandex repoThe project moved to the MIT license.
Plandex repo
How Plandex keeps itself in bounds
Out of the box, semi autonomy on a fresh v2 install: loads context and builds changes itself, but you apply changes and approve commands.
| Mode | How to turn it on | Asks you | What it allows |
|---|---|---|---|
None | plandex --no-auto or plandex set-auto none | Before each action | Manual context loading, manual continuation and building, manual apply, and command execution disabled. |
Basic | plandex --basic or set-auto basic | Before each action | Auto-continues and builds changes into pending updates. You load context and apply changes, and commands stay off. |
Plus | plandex --plus or set-auto plus | For some actions | Adds smart context handling, auto-commit when changes are applied, and lets it propose commands that you run by hand. |
Semi (default) | plandex --semi or set-auto semi | For some actions | Also loads context itself from the project map. You still apply changes and approve commands. |
Full | plandex --full or set-auto full | Never | Auto-applies changes to project files, runs commands after apply, debugs failures and commits to git without prompts. |
Execution switches | plandex set-config can-exec false, auto-exec, auto-debug | For some actions | can-exec controls whether commands are written for you at all. auto-exec runs them after apply, and the debug command reruns a command and applies fixes until it passes. |
Where its settings live
| Path | What it holds |
|---|---|
OPENROUTER_API_KEY (environment) | Model provider key the quickstart tells you to export for local mode |
- Plandex keeps generated changes in a cumulative pending diff that stays apart from your project files until you apply them, and command execution is held back with those changes so you can roll back.
- Its autonomy setting decides how much happens without you. Semi is the default, while Full auto-applies, auto-executes commands and auto-debugs.
- The docs warn to be extremely careful with full auto mode, auto-exec, auto-debug and the debug command, since commands can be destructive to your system, and they recommend a clean git state and an isolated branch.
- A 2026 CVE report describes a path traversal in the apply step that lets a poisoned repo file steer model output into writing outside the project, such as shell rc or cron files. No patched version is listed, and the project's cloud service is closed.
- In local mode a Plandex server on localhost:8099 holds plans, pending changes and version history. Shell commands the model wants to run are written to a _apply.sh file in the plan and held with the pending changes until you apply them.
Security incidents and advisories
| Date | Advisory | What happened |
|---|---|---|
CVE-2026-85690High | Plandex up to 2.2.1 has a path traversal in the ApplyFiles function. Poisoned repository files or attacker-controlled context can influence model output so that files are written outside the project directory, for example shell rc or cron files, leading to code execution.No fixed version published |
How to run Plandex safely
- Run only a self-hosted server in local mode, and treat Plandex as an unmaintained project: there is no listed fix for its 2026 path traversal CVE.
- Use the None, Basic, Plus or Semi levels and avoid Full, which applies changes and runs commands with no review.
- Set can-exec to false when you only want file edits, and leave auto-exec off so you read each command before it runs.
- Start from a clean git state on an isolated branch, as the docs advise, and review the pending diff before you apply it.
- Do not load repositories or context from sources you do not trust, since the CVE report says poisoned files can steer writes outside the project.
- Run the Docker local server and the CLI on a machine or VM where your shell rc files and cron entries are not valuable.
- Use a provider key with a spending cap, and keep it in an environment variable rather than a file in the repo.
- Check that the installer URL is still the one you expect before you pipe it to a shell, since the plandex.ai domain did not resolve on the check date.
Where Excellent fits
| What Excellent does | With Plandex |
|---|---|
Reads its session logs (free scan) | Yes |
Its key finder reads its key files | Yes |
Live check before risky actions (Pro) | No |
Excellent's sandbox | Claude Code and Codex only |
Rule sharing | Claude Code and Codex only |
Excellent reads Plandex's session logs on your Mac. The free scan shows what it did: your email in request commands or form inputs, keys sitting in logs, secrets files read, history overwritten, checks skipped. Each finding says which agent and where.
Excellent's sandbox and rule sharing are for Claude Code and Codex only. The check reads what a command says, so it isn't a wall around your Mac.
Questions
Is Plandex still maintained?
The README says Plandex Cloud was winding down as of 10/3/2025 and no longer accepting new users. The repo's last commit is dated Oct 3, 2025, and the code stays available under the MIT license.
Can I still use Plandex Cloud?
No new users are accepted. The README points to self-hosting in local mode with Docker and your own model provider keys.
What are Plandex's autonomy levels?
None, Basic, Plus, Semi and Full. Semi is the default on a fresh v2 install, and only Full applies changes and runs commands without you.
Does Plandex run commands in a container?
The server can run in Docker, but commands the agent writes run on your own machine when they execute. Turn them off with can-exec false.
Does Plandex work on Windows?
Only through WSL. The README says it does not work in the Windows CMD prompt or PowerShell.
Sources
Checked December 2, 2026. Plandex changes often, so its own docs win where they differ from this page.