Code & DeveloperOpen source codeplandex-ai/plandex

Plandex: Open Source AI Repository & Self-Hosting Guide

Open-source terminal AI coding agent built in Go for multi-file codebase changes, featuring tree-sitter repo maps, cumulative diffs, and sandbox rollback.

GitHub Stars
15,939 stars
Repository License
MIT
Last Push (UTC)
Oct 3, 2025
Check the repo's license. Model weights may have a different license.
git clone https://github.com/plandex-ai/plandex.git
View on GitHub
Installcurl -sL https://plandex.ai/install.sh | bash

Plandex: Architecture & Practical Workflow

Plandex breaks complex engineering tasks into structured plans, loads relevant files via tree-sitter context selection, applies edits inside a staging sandbox before touching disk, and integrates directly with Anthropic, OpenAI, or OpenRouter models.

Recommended End-to-End Pipeline

Initialize `plandex new` inside large TypeScript/Go repositories, describe a cross-module refactor, review each staged file diff, and apply cleanly with `plandex apply`.

Runtime Target
Cross-Platform CLI (GitHub)
Primary Users
Senior Developers, CLI Power Users, Maintainers
Code License
MIT
Focus Topics
open-source, github, terminal-agent, coding, refactoring

Quick Setup & Installation Steps

Platform target: Cross-Platform CLI (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/plandex-ai/plandex.git && cd plandex`.
  2. 2Review the MIT license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `curl -sL https://plandex.ai/install.sh | bash` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Initialize `plandex new` inside large TypeScript/Go repositories, describe a cross-module refactor, review each staged file diff, and apply cleanly with `plandex apply`.)

Hardware & VRAM Notes

Runs on standard developer workstations without specialized hardware unless loading large local weights.

CPU & Memory

Modern multi-core CPU with 8 GB–16 GB RAM for orchestration, CLI agents, OCR/document parsing, or UI workflows (32 GB+ if co-hosting large local LLMs).

GPU / VRAM

Optional unless running local neural weights; pairs cleanly with local inference servers (Ollama / llama.cpp) or remote endpoints.

Runtime Target

Cross-Platform CLI (GitHub)

Strengths & Best For

  • Handles complex multi-file tasks across large repositories
  • Tree-sitter intelligent context loading and cumulative diff sandbox
  • Works with OpenAI, Anthropic, Google, and local Ollama models
  • Best suited for: Senior Developers, CLI Power Users, Maintainers

Limitations & Caveats

  • Terminal-only workflow (not a GUI IDE)
  • Large context plans use more LLM tokens if unfiltered
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Code)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted Plandex vs. Hosted Alternatives (Gemini CLI & Roo Code)
FactorPlandex (Self-Hosted)Gemini CLIRoo Code
Execution & PrivacyRuns locally via Cross-Platform CLI (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaMIT code; bound only by local CPU/GPU hardware.Free; subject to vendor free-tier limits or paid plans.Open Source; subject to vendor free-tier limits or paid plans.
Primary FitHandles complex multi-file tasks across large repositories; Tree-sitter intelligent context loading and cumulative diff sandboxGoogle's open-source terminal AI coding agent providing generous free daily requests directly from your command line.Open-source autonomous VS Code coding agent (fork of Cline) with specialized Architect, Code, and Debug modes plus BYOK.
Key Trade-offTerminal-only workflow (not a GUI IDE)Requires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for Plandex workflows.

More Open Source Code & Developer Repositories

Frequently Asked Questions

What does Plandex do and how does it work?

Plandex (plandex-ai/plandex) is an open-source code & developer project with 15,939 stars on GitHub. Open-source terminal AI coding agent built in Go for multi-file codebase changes, featuring tree-sitter repo maps, cumulative diffs, and sandbox rollback. Plandex breaks complex engineering tasks into structured plans, loads relevant files via tree-sitter context selection, applies edits inside a staging sandbox before touching disk, and integrates directly with Anthropic, OpenAI, or OpenRouter models.

Is Plandex free to self-host and use commercially?

Plandex provides open source code licensed under MIT. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does Plandex require?

Plandex targets Cross-Platform CLI (GitHub). Typical installation runs via `curl -sL https://plandex.ai/install.sh | bash`. Terminal-only workflow (not a GUI IDE)

How does self-hosting Plandex compare to hosted tools like Gemini CLI?

Self-hosting Plandex gives you full local data control, zero per-usage vendor fees, and customizable Cross-Platform CLI (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, Gemini CLI (Free) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is Plandex actively maintained and what workflow fits it best?

Repository metadata records 15,939 stars on GitHub with the latest recorded push on Oct 3, 2025. Initialize `plandex new` inside large TypeScript/Go repositories, describe a cross-module refactor, review each staged file diff, and apply cleanly with `plandex apply`.