Plandex in 2026: Cloud Shut Down, Self-Hosting and Setup
Plandex stopped in 2025: Cloud wound down, last release 2.2.1. How to install the CLI now, run the Docker server safely, add model keys and use plan/apply.
Plandex is an open-source (MIT) terminal coding agent built for large tasks: it plans the work, keeps every change in a sandbox you review with plandex diff, and writes to your files only when you run plandex apply. Development has stopped. Plandex Cloud began winding down on October 3, 2025, the last release is 2.2.1 from July 16, 2025, and the last commit was the wind-down notice. On December 1, 2026 the plandex.ai domain, which serves the install script and the docs, was not answering. What still works is the CLI from GitHub’s releases and a self-hosted server in Docker, with your own model keys, along with unfixed problems: a reported way for a plan to write outside your project, and a server that prints Anthropic keys to its output.
Is Plandex still maintained?
No. The README lists Plandex Cloud as “Winding down as of 10/3/2025 and no longer accepting new users”, and the two commits that added that line on October 3, 2025 are the last on the main branch. The newest release is CLI 2.2.1 with server 2.2.1, both July 16, 2025, and the plandexai/plandex-server:latest image on Docker Hub is that same build. The repository is not archived, and people still file issues: 46 issues and 25 pull requests were open on December 1, 2026, among them unmerged fixes for two of the bugs below.
The README links the shutdown post at plandex.ai/blog/winding-down, but on December 1, 2026 neither plandex.ai nor docs.plandex.ai resolved: public DNS returned a server failure because the domain’s name servers refused to answer. That breaks the documented one-line install, which fetches both the script and the version number from plandex.ai, and the docs site. The docs themselves are Markdown in the repository, under docs/docs, and still read there.
Open problems in Plandex 2.2.1
Nobody is fixing these, so weigh them before you set anything up.
- Writes outside the project. Issue 352 (June 2026, against 2.2.1) reports that the file paths in a plan come from the model’s output and are joined to the project folder with no containment check, so a path with
..can write anywhere your user can, while the apply prompt shows only a count of files. A fix sits in an unmerged pull request. - Keys printed to the server’s output. Plandex’s security page says keys are “never written to disk, logged, or stored in a database.” In the 2.2.1 source, the model proxy inside the server runs
print(f"api_key: {api_key}")on every Anthropic call, whether the credential is an API key or a Claude subscription token, and that output goes to the server’s own, so it can appear indocker compose logs. - The database does not start as shipped, and the shipped compose file publishes every port to the network; both need an edit, covered below.
Neither of the first two reports has a reply from the maintainers.
Install the Plandex CLI
The CLI is a single Go binary for macOS, Linux and FreeBSD on amd64 or arm64; on Windows the README says it “only works correctly on Windows in the WSL shell”. With the install script’s host down, take the binary from the 2.2.1 release, the manual route the install docs describe. For Linux on x86-64 (swap linux_amd64 for linux_arm64, darwin_arm64 and so on):
curl -fsSLO https://github.com/plandex-ai/plandex/releases/download/cli/v2.2.1/plandex_2.2.1_linux_amd64.tar.gz
tar xzf plandex_2.2.1_linux_amd64.tar.gz
sudo install -m 755 plandex /usr/local/bin/plandex
plandex versionCopiedThe release publishes no checksums, so there is nothing to verify the download against beyond GitHub itself. The official script does the same thing (it downloads that tarball, moves the binary to /usr/local/bin and links pdx to it), but it asks plandex.ai for the version number first unless PLANDEX_VERSION is set. If you would rather build it, the install docs give a go build in app/cli of the repository.
Each time it starts, the CLI checks plandex.ai/v2/cli-version.txt for an update. In the source a failed check is logged and skipped after a timeout of up to five seconds, so it does not stop Plandex, but PLANDEX_SKIP_UPGRADE=1 turns the check off.
Run the Plandex server locally with Docker
The CLI cannot work alone: plans, their history and the model calls live on a server. With the Cloud gone, that server is yours. The local-mode quickstart needs git and Docker with Compose, and is meant for one user on one machine:
git clone https://github.com/plandex-ai/plandex.git
cd plandex/appCopiedBefore you run ./start_local.sh, two things in app/docker-compose.yml need changing.
The database does not start as shipped. The file asks for postgres:latest and mounts its volume at /var/lib/postgresql/data. From PostgreSQL 18 the official image keeps its data under /var/lib/postgresql instead (the image’s docs say mounts “should be targeted at the updated location”), and with the old mount the container refuses to start. Users report it in issue 305:
plandex-postgres-1 exited with code 1 (restarting)
Error: in 18+, these Docker images are configured to store database data in a ...CopiedThe project never shipped a fix. Our edit below pins the image to postgres:17, which keeps the mount the file already uses and stays closer to what Plandex was written for (its self-hosting docs ask for PostgreSQL “ideally v14”). The commenters on the issue moved the mount instead.
Every port is open to the network. The file publishes 8099 (the Plandex server), 4000 (the model proxy inside it) and 5432 (Postgres, user and password both plandex) with no address, and Docker’s docs say that publishes to “all host addresses”. The server runs in development mode, which the docs describe as single-user with email and verification pins switched off, and the model proxy checks no credentials. On a laptop behind a router that may not matter; on a server with a public address it does, and Docker notes that its published ports skip ufw, “effectively ignoring your firewall configuration.” Bind them to localhost.
With both changes, the lines that differ in docker-compose.yml read as below. The database password stays the shipped plandex, which is safe only while port 5432 is bound to localhost; if anything else must reach the database, change POSTGRES_PASSWORD and the password inside the server’s DATABASE_URL to match, before the first start (Postgres sets the password only when it creates the database).
plandex-postgres:
image: postgres:17
ports:
- "127.0.0.1:5432:5432"
plandex-server:
ports:
- "127.0.0.1:8099:8099"
- "127.0.0.1:4000:4000"CopiedThen start it from plandex/app:
./start_local.shCopiedThe script pulls the server image and runs docker compose up in the foreground, so the server stops when you press Ctrl-C or close the terminal. To keep it running, start it in a tmux session, or run docker compose up -d from the same folder (what the flag does is in docker compose up -d). Plans are kept in the plandex-db and plandex-files volumes, so they survive a restart.
Sign in and add a model key
In another terminal, sign the CLI in to your own server:
plandex sign-inCopiedAt “Use Plandex Cloud or another host?” choose Local mode host and accept http://localhost:8099. The Cloud takes no new users.
Keys are not stored on the server. The model docs say they “are set through environment variables when running the Plandex CLI”, which sends them with each request: OPENROUTER_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, DEEPSEEK_API_KEY, PERPLEXITY_API_KEY, and the Azure, Vertex AI and Bedrock variables. Where a model is available both directly and through OpenRouter, Plandex uses the direct provider and falls back to OpenRouter on errors, so one OpenRouter key is the shortest setup (the OpenRouter API key guide covers making one). To set it for the current shell without it reaching your history:
printf 'OpenRouter API key: '; read -rs OPENROUTER_API_KEY; echo
export OPENROUTER_API_KEYCopiedTo keep it across sessions, write it to a file only you can read and load that file from your ~/.bashrc or ~/.zshrc with a line . ~/.plandex-keys:
(umask 077; printf 'export OPENROUTER_API_KEY=%s\n' "$OPENROUTER_API_KEY" >> ~/.plandex-keys)CopiedIf you use an Anthropic key or a Claude subscription, treat docker compose logs as holding it (the key-printing problem above).
The built-in model packs date from mid-2025: the REPL’s flags name Anthropic Opus 4, Gemini 2.5 Pro, OpenAI o3 and DeepSeek R1 as planners, with --daily, --strong, --cheap and --oss packs beside them. For a newer model, define it yourself with plandex models custom, which opens a JSON file of providers and models. Local models through Ollama need no key; the compose file already points the server at http://host.docker.internal:11434.
A Claude Pro or Max subscription
Release 2.2.1 added plandex connect-claude, and the CLI asks on first run whether to connect a Claude subscription for Anthropic models. When the subscription’s quota runs out it falls back to an Anthropic key if one is set, or returns “a rate limit error until your quota resets.” Anthropic’s legal page for Claude Code says: “Anthropic does not permit third-party developers to offer Claude.ai login into their own applications, or to route requests through Free, Pro, Max, or Ultra plan credentials on behalf of their users.” How that reads across other tools is set out in using a Claude subscription in other tools.
Plans, the sandbox and plandex apply
Run plandex (or pdx) in a project folder to open the REPL. It starts in chat mode, for talking the task through without changes, and offers to switch to tell mode, where it plans the work and writes code. Commands inside the REPL take a backslash (\chat, \tell, \multi for multi-line input), and @path/to/file loads a file. Under the default autonomy level it loads the files it needs itself, skipping anything in .gitignore or a .plandexignore.
Nothing touches your files while it works. Edits pile up in the plan’s sandbox, and so do the commands it wants to run, in a script called _apply.sh. From the review docs:
plandex diff
plandex diff --ui
plandex reject file1.ts file2.ts
plandex applyCopiedplandex diff prints the pending changes as a git diff, --ui opens them in a browser, plandex reject drops files (--all drops everything), and plandex apply writes them to your project. After applying, Plandex asks before it runs the commands; if they fail, the changes are rolled back. At the default level, apply also commits the result to your git repo (--skip-commit stops that).
Plandex keeps its own history of each plan. plandex log lists it and plandex rewind goes back, and since 2.0 a rewind past an apply also reverts your project files. Rewinding discards the later history for good; plandex checkout to a new branch first keeps it.
Autonomy levels and full auto
How much Plandex does without asking is one of five autonomy levels, set with plandex set-auto <level> for the current plan, plandex set-auto default <level> for new ones, or a flag such as --semi when you start the REPL:
| Level | What it adds |
|---|---|
none | Nothing automatic; you drive each step |
basic | Continues the plan and builds file changes on its own |
plus | Updates context, may propose commands, commits on apply |
semi (default) | Also chooses which files to load |
full | Applies changes, runs commands and debugs failures without asking |
Full auto is the one level that writes to your files and runs commands with no review. The autonomy docs warn: “Be extremely careful with full auto mode!”, since it “can run commands that could potentially be destructive to your system”, and ask for a clean git state and a separate branch first. With that in place:
git switch -c plandex-work
plandex --fullCopiedplandex debug 'npm test' is the same loop aimed at one command: it runs it, has the model fix what fails, and repeats up to five times. Commands run as your user with no sandbox around them, so on a server run Plandex as an ordinary user, never root.
One more open report bears on these settings, with no reply from the maintainers: issue 369 says that choosing “Debug in full auto mode” from the menu after a failed apply switches the whole plan to full auto for every later session, not just that run; if you pick it, plandex set-auto semi afterwards sets it back. Because of the path problem above, full auto writes whatever paths the model names; reading plandex diff before every apply is the check the tool leaves you.
Plandex on a server over SSH
Plandex runs over SSH like any terminal program, and the simplest layout keeps the server and the CLI on the same machine: start the server with the localhost-only ports above, sign in to http://localhost:8099, and work in tmux so a dropped connection does not end the session. The plain plandex diff suits a remote terminal better than the browser view.
If the server runs on one machine and the CLI on another, the CLI talks to it over plain HTTP, so carry it through SSH rather than opening port 8099: ssh -L 8099:localhost:8099 you@server from the machine with the CLI, then sign in to http://localhost:8099 there.
One reported snag inside tmux: issue 320 describes Plandex failing at its interactive prompts with “Unsupported terminal” when the terminal app sets TERMINFO (Ghostty does). The reporter’s fix is a line in ~/.tmux.conf: set-environment -g -u TERMINFO. For picking the machine itself, choosing a VPS for a coding agent applies here as well.
Alternatives to Plandex
Plandex 2.2.1 still runs, but it will not learn new models or get fixes, and the self-hosted server is now part of the job. The nearest in spirit, Aider, is also a terminal tool that works by API key and keeps a reviewable history, through git commits rather than a sandbox, though its own releases have paused since February 2026. Roo Code shut down in May 2026, and Cline is the editor-based agent its makers pointed users to. The agents with active releases are set side by side in Claude Code alternatives and OpenCode alternatives.