https://github.com/plandex-ai/plandex
AI driven development in your terminal. Designed for large, real-world tasks.
https://github.com/plandex-ai/plandex
ai ai-agents ai-developer-tools ai-tools cli command-line developer-tools git golang gpt-4 llm openai polyglot-programming terminal terminal-based terminal-ui
Last synced: 7 days ago
JSON representation
AI driven development in your terminal. Designed for large, real-world tasks.
- Host: GitHub
- URL: https://github.com/plandex-ai/plandex
- Owner: plandex-ai
- License: agpl-3.0
- Created: 2023-10-24T22:11:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-04T11:46:31.000Z (6 months ago)
- Last Synced: 2024-10-29T15:34:41.507Z (6 months ago)
- Topics: ai, ai-agents, ai-developer-tools, ai-tools, cli, command-line, developer-tools, git, golang, gpt-4, llm, openai, polyglot-programming, terminal, terminal-based, terminal-ui
- Language: Go
- Homepage: https://plandex.ai
- Size: 43 MB
- Stars: 10,731
- Watchers: 90
- Forks: 749
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-devins - GitHub
- awesome-agents - Plandex - ai/plandex?style=social) (Software Development)
- awesome-ai-tools - Plandex - Open source, terminal-based AI programming engine for complex tasks. (Text / Developer tools)
- StarryDivineSky - plandex-ai/plandex
- charm-in-the-wild - Plandex - A terminal-based AI coding engine for complex tasks. (_built with Bubble Tea_) (Applications / AI)
- awesome-ChatGPT-repositories - plandex - AI driven development in your terminal. Designed for large, real-world tasks. (CLIs)
- Linux-Bash-Commands - plandex - world tasks. | (Vim (text editor) / Offline usage <a href="https://github.com/chubin/cheat.sh#installation">install</a> cheat script manually<br>)
- AiTreasureBox - plandex-ai/plandex - 04-05_11419_0](https://img.shields.io/github/stars/plandex-ai/plandex.svg)|An AI coding engine for complex tasks| (Repos)
- trackawesomelist - Plandex (⭐11k) - Open source, terminal-based AI programming engine for complex tasks. (Recently Updated / [Feb 16, 2025](/content/2025/02/16/README.md))
- awesome-langchain - Plandex - ai/plandex?style=social) (Other LLM Frameworks / Videos Playlists)
- my-awesome-starred - plandex-ai/plandex - Open source AI coding agent. Designed for large projects and real world tasks. (Go)
- awesome-langchain-zh - Plandex - ai/plandex?style=social): 复杂任务的ai编码引擎 (其他LLM框架 / 文章)
- jimsghstars - plandex-ai/plandex - AI driven development in your terminal. Designed for large, real-world tasks. (Go)
- awesome-code-ai - Plandex
- awesome-AI-driven-development - plandex - AI driven development in your terminal. (Uncategorized / Uncategorized)
- awesome-llm-projects - Plandex
- project-awesome - plandex-ai/plandex - AI driven development in your terminal. Designed for large, real-world tasks. (Go)
- awesome-agents - plandex - world tasks. | coding | 11,009 | 762 | 39 | 19 | 3 days, 11 hrs, 43 mins | 26 | GNU Affero General Public License v3.0 | (Table of Open-Source AI Agents Projects)
- definitive-opensource - Plandex
- awesome-agents - plandex - world tasks. | coding | 11,009 | 762 | 39 | 19 | 3 days, 11 hrs, 43 mins | 26 | GNU Affero General Public License v3.0 | (Table of Open-Source AI Agents Projects)
README
![]()
30-Second Install
·
Website
·
Docs
·
Examples
·
Local Self-Hosted Mode
[](https://discord.gg/plandex-ai)
[](https://github.com/plandex-ai/plandex)
[](https://twitter.com/PlandexAI)
An AI coding agent designed for large tasks and real world projects.
💻 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 can handle up to 2M tokens of context directly (~100k per file), and can index directories with 20M tokens or more using tree-sitter project maps.
🔬 **A cumulative diff review sandbox** keeps AI-generated changes separate from your project files until they are ready to go. Command execution is controlled so you can easily roll back and debug. Plandex helps you get the most out of AI without leaving behind a mess in your project.
🧠 **Combine the best models** from Anthropic, OpenAI, Google, and open source providers to build entire features and apps with a robust terminal-based workflow.
🚀 Plandex is capable of full autonomy—it can load relevant files, plan and implement changes, execute commands, and automatically debug—but it's also highly flexible and configurable, giving developers fine-grained control and a step-by-step review process when needed.
💪 Plandex is designed to be resilient to large projects and files. If you've found that others tools struggle once your project gets past a certain size or the changes are too complex, give Plandex a shot.
## Smart context management that works in big projects
- 🐘 **2M token effective context window** with default model pack. Plandex loads only what's needed for each step.
- 🗄️ **Reliable in large projects and files.** Easily generate, review, revise, and apply changes spanning dozens of files.
- 🗺️ **Fast project map generation** and syntax validation with tree-sitter. Supports 30+ languages.
- 💰 **Context caching** is used across the board for OpenAI and Anthropic models, reducing costs and latency.
## Tight control or full autonomy—it's up to you
- 🚦 **Configurable autonomy:** go from full auto mode to fine-grained control depending on the task.
- 🐞 **Automated debugging** of terminal commands (like builds, linters, tests, deployments, and scripts). If you have Chrome installed, you can also automatically debug browser applications.
## Tools that help you get production-ready results
- 💬 **A project-aware chat mode** that helps you flesh out ideas before moving to implementation. Also great for asking questions and learning about a codebase.
- 🧠 **Easily try + combine models** from multiple providers. Curated model packs offer different tradeoffs of capability, cost, and speed, as well as open source and provider-specific packs.
- 🛡️ **Reliable file edits** that prioritize correctness. While most edits are quick and cheap, Plandex validates both syntax and logic as needed, with multiple fallback layers when there are problems.
- 🔀 **Full-fledged version control** for every update to the plan, including branches for exploring multiple paths or comparing different models.
- 📂 **Git integration** with commit message generation and optional automatic commits.
## Dev-friendly, easy to install
- 🧑💻 **REPL mode** with fuzzy auto-complete for commands and file loading. Just run `plandex` in any project to get started.
- 🛠️ **CLI interface** for scripting or piping data into context.
- 📦 **One-line, zero dependency CLI install**. Dockerized local mode for easily self-hosting the server. Cloud-hosting options for extra reliability and convenience.
## Workflow 🔄
## Examples 🎥
## Install 📥
```bash
curl -sL https://plandex.ai/install.sh | bash
```**Note:** Windows is supported via [WSL](https://learn.microsoft.com/en-us/windows/wsl/install). Plandex only works correctly on Windows in the WSL shell. It doesn't work in the Windows CMD prompt or PowerShell.
[More installation options.](https://docs.plandex.ai/install)
## Hosting ⚖️
| Option | Description |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Plandex Cloud (Integrated Models)** | • No separate accounts or API keys.
• Easy multi-device usage.
• Centralized billing, budgeting, usage tracking, and cost reporting.
• Quickest way to [get started.](https://app.plandex.ai/start?modelsMode=integrated) |
| **Plandex Cloud (BYO API Key)** | • Use Plandex Cloud with your own [OpenRouter.ai](https://openrouter.ai) and [OpenAI](https://platform.openai.com) keys.
• [Get started](https://app.plandex.ai/start?modelsMode=byo) |
| **Self-hosted/Local Mode** | • Run Plandex locally with Docker or host on your own server.
• Use your own [OpenRouter.ai](https://openrouter.ai) and [OpenAI](https://platform.openai.com) keys.
• Follow the [local-mode quickstart](./hosting/self-hosting.md) to get started. |## Provider keys 🔑
If you're going with a 'BYO API Key' option above (whether cloud or self-hosted), you'll need to set the `OPENROUTER_API_KEY` and `OPENAI_API_KEY` environment variables before continuing:
```bash
export OPENROUTER_API_KEY=...
export OPENAI_API_KEY=...
```
## Get started 🚀
First, `cd` into a **project directory** where you want to get something done or chat about the project. Make a new directory first with `mkdir your-project-dir` if you're starting on a new project.
```bash
cd your-project-dir
```For a new project, you might also want to initialize a git repo. Plandex doesn't require that your project is in a git repo, but it does integrate well with git if you use it.
```bash
git init
```Now start the Plandex REPL in your project:
```bash
plandex
```or for short:
```bash
pdx
```☁️ _If you're using Plandex Cloud, you'll be prompted at this point to start a trial._
Then just give the REPL help text a quick read, and you're ready go. The REPL starts in _chat mode_ by default, which is good for fleshing out ideas before moving to implementation. Once the task is clear, Plandex will prompt you to switch to _tell mode_ to make a detailed plan and start writing code.
## Docs 🛠️
### [👉 Full documentation.](https://docs.plandex.ai/)
## Discussion and discord 💬
Please feel free to give your feedback, ask questions, report a bug, or just hang out:
- [Discord](https://discord.gg/plandex-ai)
- [Discussions](https://github.com/plandex-ai/plandex/discussions)
- [Issues](https://github.com/plandex-ai/plandex/issues)## Follow and subscribe
- [Follow @PlandexAI](https://x.com/PlandexAI)
- [Follow @Danenania](https://x.com/Danenania) (Plandex's creator)
- [Subscribe on YouTube](https://x.com/PlandexAI)
## Contributors 👥
⭐️ Please star, fork, explore, and contribute to Plandex. There's a lot of work to do and so much that can be improved.
[Here's an overview on setting up a development environment.](https://docs.plandex.ai/development)